Hi, I've configured my server via htaccess to process .html in the same way as .php and want to ptotcet those files in same way, the current access pages doesn't pick up the HTML extension....in user cake I was able to change which file types were automatically picked up but can't find that in the code....could anyone please point me to where in user spice it pulls in the permissionable files?
Thanks in advance!
You have to rename your HTML files to PHP.
hi Dan, yep understand that would fix it but I'd really rather keep .html (massive project I'm upgrading to userspice from userckae)...do you know where in the code it identifies which files to include/exclude so I could add .html as an extension to include?
Cheers,
Matt
Even if you get the system to recognize the .html extension, you won't be able to run the required PHP code to die(); if the user doesn't have access or redirect them to whatever page.
i would look in us_helpers.php and helpers.php where there are functions that look for php pages but i dont understand the logic in running html as php, when you consider any file with a php file extension will run html and jquery etc even with no php logic written in it, why not just change your file extensions which is much easier, if the reasoning is to pretify urls then that can be acheived easily in htaccess
It would be a royal pain.
If you want to though you could go to us_helpers.php and copy
getPathPhpFiles
function into usersc/custom_functions.php, rename the function and add your html files. Then you would have to call that function from admin_pages.php to get those pages into your db.