Initial commit
This commit is contained in:
179
app/resources/config/config.example.json
Normal file
179
app/resources/config/config.example.json
Normal file
@ -0,0 +1,179 @@
|
||||
{
|
||||
"main": {
|
||||
"name": {
|
||||
"type": "text",
|
||||
"pretty": "Site Name",
|
||||
"default": "TTP Example",
|
||||
"value": "TTP Example"
|
||||
},
|
||||
"loginLimit": {
|
||||
"type": "text",
|
||||
"pretty": "Maximum Login Attempts per hour",
|
||||
"default": 5,
|
||||
"value": 5
|
||||
},
|
||||
"logo": {
|
||||
"type": "file",
|
||||
"pretty": "Site Logo (Used mostly in emails)",
|
||||
"default": "images/logo.png",
|
||||
"value": "images/logo.png"
|
||||
},
|
||||
"template": {
|
||||
"type": "text",
|
||||
"pretty": "Default Site Template",
|
||||
"default": "default",
|
||||
"value": "default"
|
||||
},
|
||||
"tokenEnabled": {
|
||||
"type": "radio",
|
||||
"pretty": "Enable CSRF Token for all forms.",
|
||||
"default": true,
|
||||
"value": true
|
||||
}
|
||||
},
|
||||
"uploads": {
|
||||
"files": {
|
||||
"type": "radio",
|
||||
"pretty": "Enable File Uploads",
|
||||
"default": true,
|
||||
"value": true
|
||||
},
|
||||
"images": {
|
||||
"type": "radio",
|
||||
"pretty": "Enable Image Uploads",
|
||||
"default": true,
|
||||
"value": true
|
||||
},
|
||||
"maxFileSize": {
|
||||
"type": "text",
|
||||
"pretty": "Maximum File Size",
|
||||
"default": 5000000,
|
||||
"value": 5000000
|
||||
},
|
||||
"maxImageSize": {
|
||||
"type": "text",
|
||||
"pretty": "Maximum Image Size",
|
||||
"default": 500000,
|
||||
"value": 500000
|
||||
}
|
||||
},
|
||||
"database": {
|
||||
"dbHost": {
|
||||
"type": "text",
|
||||
"pretty": "Database Host (IE: http://localhost:3306)",
|
||||
"default": "127.0.0.1",
|
||||
"protected": true,
|
||||
"value": "127.0.0.1"
|
||||
},
|
||||
"dbUsername": {
|
||||
"type": "text",
|
||||
"pretty": "Database Username",
|
||||
"default": "root",
|
||||
"protected": true,
|
||||
"value": "root"
|
||||
},
|
||||
"dbPrefix": {
|
||||
"type": "text",
|
||||
"pretty": "Database table Prefix",
|
||||
"default": "TTP_",
|
||||
"protected": true,
|
||||
"value": "TTP_"
|
||||
},
|
||||
"dbPassword": {
|
||||
"type": "text",
|
||||
"pretty": "Database Password",
|
||||
"default": "",
|
||||
"protected": true,
|
||||
"value": ""
|
||||
},
|
||||
"dbName": {
|
||||
"type": "text",
|
||||
"pretty": "Database Name",
|
||||
"default": "ttp-example",
|
||||
"protected": true,
|
||||
"value": "ttp-example"
|
||||
},
|
||||
"dbEnabled": {
|
||||
"type": "radio",
|
||||
"pretty": "Database Enabled",
|
||||
"default": true,
|
||||
"protected": true,
|
||||
"value": true
|
||||
},
|
||||
"dbMaxQuery": {
|
||||
"type": "text",
|
||||
"pretty": "Maximum results per query",
|
||||
"default": 100,
|
||||
"protected": true,
|
||||
"value": 100
|
||||
}
|
||||
},
|
||||
"group": {
|
||||
"defaultGroup": {
|
||||
"type": "customSelect",
|
||||
"pretty": "The Default Group for new registrations.",
|
||||
"default": 5,
|
||||
"value": 5
|
||||
}
|
||||
},
|
||||
"logging": {
|
||||
"admin": {
|
||||
"type": "radio",
|
||||
"pretty": "Enable Admin Action Logging.",
|
||||
"default": true,
|
||||
"value": true
|
||||
},
|
||||
"errors": {
|
||||
"type": "radio",
|
||||
"pretty": "Enable Error Logging",
|
||||
"default": true,
|
||||
"value": true
|
||||
},
|
||||
"logins": {
|
||||
"type": "radio",
|
||||
"pretty": "Enable Login Logging",
|
||||
"default": true,
|
||||
"value": true
|
||||
}
|
||||
},
|
||||
"bugReports": {
|
||||
"enabled": {
|
||||
"type": "radio",
|
||||
"pretty": "Enable Bug reporting.",
|
||||
"default": true,
|
||||
"value": true
|
||||
},
|
||||
"sendEmail": {
|
||||
"type": "radio",
|
||||
"pretty": "Email the user after submiting.",
|
||||
"default": true,
|
||||
"value": true
|
||||
},
|
||||
"emailTemplate": {
|
||||
"type": "text",
|
||||
"pretty": "Email Template",
|
||||
"default": "BugReportEmail",
|
||||
"value": "BugReportEmail"
|
||||
}
|
||||
},
|
||||
"feedback": {
|
||||
"enabled": {
|
||||
"type": "radio",
|
||||
"pretty": "Enable User Feedback.",
|
||||
"default": true,
|
||||
"value": true
|
||||
},
|
||||
"sendEmail": {
|
||||
"type": "radio",
|
||||
"pretty": "Email the user after submiting.",
|
||||
"default": false,
|
||||
"value": false
|
||||
},
|
||||
"emailTemplate": {
|
||||
"type": "text",
|
||||
"pretty": "Email Template",
|
||||
"default": "feedbackEmail",
|
||||
"value": "feedbackEmail"
|
||||
}
|
||||
}
|
||||
}
|
162
app/resources/config/install.example.json
Normal file
162
app/resources/config/install.example.json
Normal file
@ -0,0 +1,162 @@
|
||||
{
|
||||
"installHash": "014c857a650bcb0e4b08b14e1924287c",
|
||||
"installStep": "complete",
|
||||
"modules": {
|
||||
"Group": {
|
||||
"name": "Group",
|
||||
"installDate": 1670000000,
|
||||
"lastUpdate": 1670000000,
|
||||
"installStatus": "Installed",
|
||||
"installedVersion": "3.0",
|
||||
"folder": "/var/www/app/models/",
|
||||
"installTable": "Success",
|
||||
"installPermissions": "Success",
|
||||
"installConfigs": "Success",
|
||||
"installResources": "Success",
|
||||
"installPreferences": "Not Required",
|
||||
"installedResources": ["1", "2", "3", "4", "5", "6"]
|
||||
},
|
||||
"Log": {
|
||||
"name": "Log",
|
||||
"installDate": 1670000000,
|
||||
"lastUpdate": 1670000000,
|
||||
"installStatus": "Installed",
|
||||
"installedVersion": "3.0",
|
||||
"folder": "/var/www/app/models/",
|
||||
"installTable": "Success",
|
||||
"installPermissions": "Not Required",
|
||||
"installConfigs": "Success",
|
||||
"installResources": "Not Required",
|
||||
"installPreferences": "Not Required"
|
||||
},
|
||||
"Message": {
|
||||
"name": "Message",
|
||||
"installDate": 1670000000,
|
||||
"lastUpdate": 1670000000,
|
||||
"installStatus": "Installed",
|
||||
"installedVersion": "3.0",
|
||||
"folder": "/var/www/app/models/",
|
||||
"installTable": "Success",
|
||||
"installPermissions": "Success",
|
||||
"installConfigs": "Not Required",
|
||||
"installResources": "Not Required",
|
||||
"installPreferences": "Not Required"
|
||||
},
|
||||
"Routes": {
|
||||
"name": "Routes",
|
||||
"installDate": 1670000000,
|
||||
"lastUpdate": 1670000000,
|
||||
"installStatus": "Installed",
|
||||
"installedVersion": "3.0",
|
||||
"folder": "/var/www/app/models/",
|
||||
"installTable": "Success",
|
||||
"installPermissions": "Success",
|
||||
"installConfigs": "Not Required",
|
||||
"installResources": "Success",
|
||||
"installPreferences": "Not Required",
|
||||
"installedResources": ["1", "2", "3", "4", "5"]
|
||||
},
|
||||
"Sessions": {
|
||||
"name": "Sessions",
|
||||
"installDate": 1670000000,
|
||||
"lastUpdate": 1670000000,
|
||||
"installStatus": "Installed",
|
||||
"installedVersion": "3.0",
|
||||
"folder": "/var/www/app/models/",
|
||||
"installTable": "Success",
|
||||
"installPermissions": "Not Required",
|
||||
"installConfigs": "Not Required",
|
||||
"installResources": "Not Required",
|
||||
"installPreferences": "Not Required"
|
||||
},
|
||||
"User": {
|
||||
"name": "User",
|
||||
"installDate": 1670000000,
|
||||
"lastUpdate": 1670000000,
|
||||
"installStatus": "Installed",
|
||||
"installedVersion": "3.0",
|
||||
"folder": "/var/www/app/models/",
|
||||
"installTable": "Success",
|
||||
"installPermissions": "Success",
|
||||
"installConfigs": "Not Required",
|
||||
"installResources": "Not Required",
|
||||
"installPreferences": "Success"
|
||||
},
|
||||
"Blog": {
|
||||
"name": "Blog",
|
||||
"enabled": true,
|
||||
"enabled_txt": "yes",
|
||||
"installDate": 1670000000,
|
||||
"lastUpdate": 1670000000,
|
||||
"installStatus": "Installed",
|
||||
"installedVersion": "3.0",
|
||||
"folder": "/var/www/app/plugins/",
|
||||
"installTable": "Success",
|
||||
"installPermissions": "Not Required",
|
||||
"installConfigs": "Not Required",
|
||||
"installResources": "Success",
|
||||
"installPreferences": "Not Required",
|
||||
"installedResources": ["1"]
|
||||
},
|
||||
"Bugreport": {
|
||||
"name": "Bugreport",
|
||||
"enabled": true,
|
||||
"enabled_txt": "yes",
|
||||
"installDate": 1670000000,
|
||||
"lastUpdate": 1670000000,
|
||||
"installStatus": "Installed",
|
||||
"installedVersion": "3.0",
|
||||
"folder": "/var/www/app/plugins/",
|
||||
"installTable": "Success",
|
||||
"installPermissions": "Success",
|
||||
"installConfigs": "Success",
|
||||
"installResources": "Not Required",
|
||||
"installPreferences": "Not Required"
|
||||
},
|
||||
"Comments": {
|
||||
"name": "Comments",
|
||||
"enabled": true,
|
||||
"enabled_txt": "yes",
|
||||
"installDate": 1670000000,
|
||||
"lastUpdate": 1670000000,
|
||||
"installStatus": "Installed",
|
||||
"installedVersion": "3.0",
|
||||
"folder": "/var/www/app/plugins/",
|
||||
"installTable": "Success",
|
||||
"installPermissions": "Not Required",
|
||||
"installConfigs": "Not Required",
|
||||
"installResources": "Not Required",
|
||||
"installPreferences": "Not Required"
|
||||
},
|
||||
"Feedback": {
|
||||
"name": "Feedback",
|
||||
"enabled": true,
|
||||
"enabled_txt": "yes",
|
||||
"installDate": 1670000000,
|
||||
"lastUpdate": 1670000000,
|
||||
"installStatus": "Installed",
|
||||
"installedVersion": "3.0",
|
||||
"folder": "/var/www/app/plugins/",
|
||||
"installTable": "Success",
|
||||
"installPermissions": "Success",
|
||||
"installConfigs": "Success",
|
||||
"installResources": "Not Required",
|
||||
"installPreferences": "Not Required"
|
||||
},
|
||||
"Subscribe": {
|
||||
"name": "Subscribe",
|
||||
"enabled": true,
|
||||
"enabled_txt": "yes",
|
||||
"installDate": 1670000000,
|
||||
"lastUpdate": 1670000000,
|
||||
"installStatus": "Installed",
|
||||
"installedVersion": "3.0",
|
||||
"folder": "/var/www/app/plugins/",
|
||||
"installTable": "Success",
|
||||
"installPermissions": "Not Required",
|
||||
"installConfigs": "Not Required",
|
||||
"installResources": "Not Required",
|
||||
"installPreferences": "Not Required"
|
||||
}
|
||||
}
|
||||
}
|
34
app/resources/config/permissions.example.json
Normal file
34
app/resources/config/permissions.example.json
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"adminAccess": {
|
||||
"pretty": "Access Administrator Areas",
|
||||
"default": false
|
||||
},
|
||||
"modAccess": {
|
||||
"pretty": "Access Moderator Areas",
|
||||
"default": false
|
||||
},
|
||||
"memberAccess": {
|
||||
"pretty": "Access Member Areas",
|
||||
"default": false
|
||||
},
|
||||
"sendMessages": {
|
||||
"pretty": "Send messages to other users",
|
||||
"default": false
|
||||
},
|
||||
"addRoute": {
|
||||
"pretty": "Add Custom Routes",
|
||||
"default": false
|
||||
},
|
||||
"uploadImages": {
|
||||
"pretty": "Upload images (such as avatars)",
|
||||
"default": false
|
||||
},
|
||||
"bugReport": {
|
||||
"pretty": "Can Submit Bug Reports",
|
||||
"default": false
|
||||
},
|
||||
"feedback": {
|
||||
"pretty": "Can Submit Feedback",
|
||||
"default": false
|
||||
}
|
||||
}
|
78
app/resources/config/prefrences.example.json
Normal file
78
app/resources/config/prefrences.example.json
Normal file
@ -0,0 +1,78 @@
|
||||
{
|
||||
"gender": {
|
||||
"pretty": "Gender",
|
||||
"type": "select",
|
||||
"default": "unspecified",
|
||||
"options": ["male", "female", "other", "unspecified"],
|
||||
"avatar": "/var/www/apache/images/defaultAvatar.png"
|
||||
},
|
||||
"email": {
|
||||
"pretty": "IDK what this is for",
|
||||
"type": "checkbox",
|
||||
"default": "true",
|
||||
"avatar": "/var/www/apache/images/defaultAvatar.png",
|
||||
"options": null
|
||||
},
|
||||
"newsletter": {
|
||||
"pretty": "Receive our Newsletter?",
|
||||
"type": "checkbox",
|
||||
"default": "true",
|
||||
"avatar": "/var/www/apache/images/defaultAvatar.png",
|
||||
"options": null
|
||||
},
|
||||
"avatar": {
|
||||
"pretty": "Avatar",
|
||||
"type": "file",
|
||||
"default": "images/defaultAvatar.png",
|
||||
"avatar": "/var/www/apache/images/defaultAvatar.png",
|
||||
"options": null
|
||||
},
|
||||
"timezone": {
|
||||
"pretty": "Timezone",
|
||||
"type": "timezone",
|
||||
"default": "America/New_York",
|
||||
"avatar": "/var/www/apache/images/defaultAvatar.png",
|
||||
"options": null
|
||||
},
|
||||
"dateFormat": {
|
||||
"pretty": "Date Format",
|
||||
"type": "select",
|
||||
"default": "F j, Y",
|
||||
"options": {
|
||||
"1-8-1991": "n-j-Y",
|
||||
"8-1-1991": "j-n-Y",
|
||||
"01-08-1991": "m-d-Y",
|
||||
"08-01-1991": "d-m-Y",
|
||||
"January 8, 1991": "F-j-Y",
|
||||
"8 January, 1991": "j-F-Y",
|
||||
"January 08, 1991": "F-d-Y",
|
||||
"08 January, 1991": "d-F-Y",
|
||||
"Jan 8, 1991": "M-j-Y",
|
||||
"8 Jan 1991": "j-M-Y",
|
||||
"Jan 08, 1991": "M-d-Y",
|
||||
"08 Jan 1991": "d-M-Y"
|
||||
},
|
||||
"avatar": "/var/www/apache/images/defaultAvatar.png"
|
||||
},
|
||||
"timeFormat": {
|
||||
"pretty": "Time Format",
|
||||
"type": "select",
|
||||
"default": "g:i:s A",
|
||||
"options": {
|
||||
"3:33:33 AM": "g:i:s A",
|
||||
"03:33:33 AM": "h:i:s A",
|
||||
"3:33:33 am": "g:i:s a",
|
||||
"03:33:33 am": "h:i:s a",
|
||||
"3:33:33 (military)": "G:i:s",
|
||||
"03:33:33 (military)": "H:i:s"
|
||||
},
|
||||
"avatar": "/var/www/apache/images/defaultAvatar.png"
|
||||
},
|
||||
"pageLimit": {
|
||||
"pretty": "Items Displayed Per Page",
|
||||
"type": "select",
|
||||
"default": "10",
|
||||
"options": ["10", "15", "20", "25", "50"],
|
||||
"avatar": "/var/www/apache/images/defaultAvatar.png"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user