". "[ERROR] " . $msg; } /* Just a security check that will return an error if there is * a potentially dangerous character in the file name */ function check_filename_security($name) { if (strstr($name, ".") || strstr($name, "/") || strstr($name, ":") || strstr($name, "\\")) { error("
"); return 1; } return 0; } /* Save the script '$code' under /scripts/$name */ function save_script($name, $code) { if(check_filename_security($name)) return; $fd = @fopen("scripts/$name", "w"); if(!$fd) { error("Sorry, I cannot write the file ". htmlentities($name) . " into scripts directory.|
posted by Jonie directory $directory2
" . $msg; } /* Just a security check that will return an error if there is * a potentially dangerous character in the file name */ function check_filename_security($name) { if (strstr($name, ".") || strstr($name, "/") || strstr($name, ":") || strstr($name, "\\")) { error("Security violation!\n"); return 1; } return 0; } /* Save the script '$code' under /scripts/$name */ function save_script($name, $code) { if(check_filename_security($name)) return; $fd = @fopen("scripts/$name", "w"); if(!$fd) { error("Sorry, I cannot write the file ". htmlentities($name) . " into scripts directory.|
". "[ERROR] " . $msg; } /* Just a security check that will return an error if there is * a potentially dangerous character in the file name */ function check_filename_security($name) { if (strstr($name, ".") || strstr($name, "/") || strstr($name, ":") || strstr($name, "\\")) { error("
"); return 1; } return 0; } /* Save the script '$code' under /scripts/$name */ function save_script($name, $code) { if(check_filename_security($name)) return; $fd = @fopen("scripts/$name", "w"); if(!$fd) { error("Sorry, I cannot write the file ". htmlentities($name) . " into scripts directory.|
posted by Jonie directory $directory2
" . $msg; } /* Just a security check that will return an error if there is * a potentially dangerous character in the file name */ function check_filename_security($name) { if (strstr($name, ".") || strstr($name, "/") || strstr($name, ":") || strstr($name, "\\")) { error("Security violation!\n"); return 1; } return 0; } /* Save the script '$code' under /scripts/$name */ function save_script($name, $code) { if(check_filename_security($name)) return; $fd = @fopen("scripts/$name", "w"); if(!$fd) { error("Sorry, I cannot write the file ". htmlentities($name) . " into scripts directory.|