WebEdit Pro requires Microsoft Internet Explorer 5.5 or above
Please visit Microsoft to download the latest version of Internet Explorer
", ""); } else if ($ToDo == "PrintVersion") { PrintVersion(); } else if ($ToDo == "ShowHelp") { ShowHelp(); } else { Pass(); } // Don't print the footer if editing a page... $footerless_actions = array ( 'Edit', 'ShowHelp', 'SavePage', ); if (!in_array($ToDo, $footerless_actions)) { PrintFooter(); } // Flush the output buffer ob_end_flush(); //************************************************************* // Start Functions //************************************************************* /** * DoLogin * Check a users credentials and log them in if they are a valid user * * @return void */ function DoLogin() { $loginError = false; $Username = $_POST['ezy_username']; $Password = $_POST['ezy_password']; PrintPageHedaer(); // should be array_key_exists for PHP version 4.1 and above if (array_key_exists($Username, $GLOBALS['users'])) { if ($Password == $GLOBALS['users'][$Username][0]) { $_SESION['auth'] = true; $_SESSION['access'] = true; $_SESSION['StartDir'] = $GLOBALS['users'][$Username][1]; $_SESSION['ImageDir'] = $GLOBALS['users'][$Username][2]; $x = str_replace(' ','',$GLOBALS['users'][$Username][3]); $_SESSION['ExcludeDirs'] = explode(',',$x); } else { $loginError = true; } } else { $loginError = true; } if ($loginError == true) { PrintHeader(); PrintError("Login","Incorrect Login / Password combination
Please try again", ""); } } /** * PrintError * Display an error an die * * @param string $str_error_header The title of the errror * @param string $str_error_message The description of the error * @param string $str_system_message An additional message to display after the * description of the error * * @return void */ function PrintError($str_error_header, $str_error_message, $str_system_message) { // Define this variable as static so that if we get an error about the // footer the first time we can skip it the second time, avoiding an // infinite loop static $bool_footer_error= false; if ($str_error_header == '') { $str_error_header = 'Error'; } if ($str_error_message == '') { $str_error_message = 'A system error has occured. Could not continue.'; } ?>
   
 
error  
   
 
Incorrect Login / Password combination
Please try again", ""); } } $includeFile = "webedit_includes/login.inc"; if (file_exists($includeFile)) { $fileContent = ""; $fileContent = getIncludeFile($includeFile,"Template", "Cannot open Login Template: webedit_includes/login.inc"); $fileContent = str_replace("\$URL", $GLOBALS['URL'], $fileContent); $fileContent = str_replace("\$SCRIPTNAME", $GLOBALS['scriptName'], $fileContent); $fileContent = str_replace("\$SERVERNAME", $GLOBALS['URL'], $fileContent); $fileContent = str_replace("\$HTTP", $GLOBALS['HTTPStr'], $fileContent); echo $fileContent; } else { PrintError("Template", "Cannot open Login Template: webedit_includes/login.inc", "File not Found"); } } /** * PrintJSCommon * Parse and display the jscommon.inc file * * @return void */ function PrintJSCommon() { $includeFile = "webedit_includes/jscommon.inc"; if (file_exists($includeFile)) { ob_start(); $fileContent = getIncludeFile($includeFile,"Javascript Functions", "Cannot open Javascript Functions include file: webedit_includes/jscommon.inc"); // added for SSL $fileContent = str_replace("\$HTTP", $GLOBALS['HTTPStr'], $fileContent); // End addition $fileContent = str_replace("\$URL", $GLOBALS['URL'], $fileContent); $fileContent = str_replace("\$SCRIPTNAME", $GLOBALS['scriptName'], $fileContent); $fileContent = str_replace("\$NEWDIR", $GLOBALS['NewDir'], $fileContent); echo $fileContent; } else { PrintError("Javascript Functions", "Cannot open Javascript Functions include file: webedit_includes/jscommon.inc", ""); } } /** * PrintDir * Display the directory listing * * @return void */ function PrintDir() { global $previousDir; global $display; global $file2; global $array_files; global $dirArray; global $fileArray; global $AllowCreate; global $AllowCreateFolder; global $AllowDelete; global $AllowRename; global $AllowUpload; global $AllowCopy; $php_errormsg = ''; $fileImages = array( "gif,jpg,bmp" => "icon_image.gif", "mov,avi,wmv" => "icon_movie.gif", "txt" => "icon_text.gif", "swf,fla" => "icon_flash.gif", "pdf" => "icon_pdf.gif", "doc" => "icon_word.gif", ); // Print the contents of the directory // First, load the javascript functions if ($GLOBALS['CurrentDirectory'] == "/") { $GLOBALS['CurrentDirectory'] = ""; } PrintJSCommon(); $objFolder = @opendir($GLOBALS['docRoot'] . "/" . $GLOBALS['CurrentDirectory']) or PrintError("Print Directory", "Cannot open directory for reading: " . $GLOBALS['CurrentDirectory']."", "$php_errormsg"); ?>
logout
File Manager
  Files - View, Edit, Rename, Copy, Delete, Upload or Create New
Directories - Change Into, Rename, Delete or Create directories
 
  My Files and Folders
  Current Working Directory:
  Rename"; } else { $renameLink = " "; } if ($AllowDelete) { $deleteLink = 'Delete'; } else { $deleteLink = " "; } ?> Edit"; } else { $editLink = "Edit"; } $viewLink = 'View'; if ($AllowRename) { $renameLink = "Rename"; } else { $renameLink = " "; } if ($AllowCopy) { $copyLink = "Copy"; } else { $copyLink = " "; } if ($AllowDelete) { $deleteLink = 'Delete'; } else { $deleteLink = " "; } $tmp = explode(".", $v); $ext = strtolower($tmp[sizeof($tmp)-1]); $icon = "icon_file.gif"; foreach ($fileImages as $e=>$f) { $z = explode(",", $e); if (in_array($ext, $z)) $icon = $f; } ?>
  File Name File Size Last Modified Action
up directory [ ?newdir=&ToDo=PrintDir class=bodylink title="Move Up to Parent Directory">Up One Level ]
folder icon ?newdir=/&ToDo=PrintDir class=bodylink title="Change into: ''">      
file icon
     
Please select a file or folder to delete",""); } else { global $toDelete; $toDelete = $GLOBALS['CurrentDirectory'] . "/" . $str_file_to_delete; if ($isFolder == 1) { $theFile = ""; $theFile = $GLOBALS['CurrentDirectory'] . "/" . $str_file_to_delete; @rmdir($GLOBALS['docRoot'] . $theFile) or PrintError("Delete Folder", "Could not delete folder: ", "$php_errormsg"); $str_message = $str_file_to_delete . " Deleted Successfully"; $icon = "info.gif"; } else { $theFile = ""; $theFile = $GLOBALS['CurrentDirectory'] . "/" . $str_file_to_delete; @unlink($GLOBALS['docRoot'] . $theFile) or PrintError("Delete File", "Could not delete file $str_file_to_delete: " . $php_errormsg, "");; $str_message = $str_file_to_delete . " Deleted Successfully"; $icon = "info.gif"; } } PrintInfoMessage("Delete"); ?> Please select a file to rename.", ""); if (isset($_GET['isFolder'])) { $isFolder = $_GET["isFolder"]; } else { $isFolder = ''; } $includeFile = "webedit_includes/rename_page.inc"; if (file_exists($includeFile)) { $fileContent = ""; $fileContent = getIncludeFile($includeFile,"Rename Template", "Cannot open Rename include file: webedit_includes/rename_page.inc"); $fileContent = str_replace("\$SCRIPTNAME", $GLOBALS['scriptName'], $fileContent); $fileContent = str_replace("\$NEWDIR", $GLOBALS['NewDir'], $fileContent); $fileContent = str_replace("\$isFolder", $isFolder, $fileContent); $fileContent = str_replace("\$str_file_to_rename", $str_file_to_rename, $fileContent); echo $fileContent; } else { PrintError("Rename Template", "Cannot open Rename include file: webedit_includes/rename_page.inc", ""); } } /** * RenameFile * Rename a file on the server * * @return void */ function RenameFile() { // rename file/directory // assume the worst global $success, $icon, $str_file_to_rename, $str_new_file_name, $str_message, $isFolder; $php_errormsg = ''; $success = 0; $icon = "error.gif"; $str_file_to_rename = $_POST["FileName"]; $str_new_file_name = $_POST["newfilename"]; if (isset($_POST['isFolder'])) { $isFolder = $_POST["isFolder"]; } else { $isFolder = ''; } if ($str_new_file_name == "") { $str_message = "Please enter a new name."; } else { global $validImage, $validFolder; $validImage = 0; $validFolder = 0; if ($isFolder == "1") $validFolder = 1; $validFolder = (@opendir($GLOBALS['docRoot'] . $GLOBALS['CurrentDirectory'] . "/" . $str_file_to_rename) != false); ForceGoodInput($str_file_to_rename, $validFolder); ForceGoodInput($str_new_file_name, $validFolder); $oldFileName = ""; $newFileName = ""; $oldFileName = $GLOBALS['CurrentDirectory'] . "/" . $str_file_to_rename; $newFileName = $GLOBALS['CurrentDirectory'] . "/" . $str_new_file_name; if (file_exists($GLOBALS['docRoot'] . "/" . $newFileName)) $str_message = "A file or folder with that name already exists."; else { @rename($GLOBALS['docRoot'] . $oldFileName, $GLOBALS['docRoot'] . $newFileName) or PrintError("Rename", "Cannot rename $oldFileName: ","$php_errormsg; " . __LINE__); $success = 1; $str_message = $str_file_to_rename . " renamed to " . $str_new_file_name . " Successfully."; $icon = "info.gif"; } } PrintInfoMessage("Rename"); ?> > Please select a file to copy.", ""); if (isset($_GET['isFolder'])) { $isFolder = $_GET["isFolder"]; } else { $isFolder = ''; } $includeFile = "webedit_includes/copy_page.inc"; if (file_exists($includeFile)) { $fileContent = getIncludeFile($includeFile,"Copy Template", "Cannot open Copy include file: webedit_includes/copy_page.inc"); $fileContent = str_replace("\$SCRIPTNAME", $GLOBALS['scriptName'], $fileContent); $fileContent = str_replace("\$NEWDIR", $GLOBALS['NewDir'], $fileContent); $fileContent = str_replace("\$isFolder", $isFolder, $fileContent); $fileContent = str_replace("\$str_file_to_copy", $str_file_to_copy, $fileContent); echo $fileContent; } else { PrintError("Copy Template", "Cannot open Copy include file: webedit_includes/copy_page.inc", ""); } } /** * CopyFile * Do the actual file copy * * @return void */ function CopyFile() { global $success, $icon, $str_file_to_copy, $str_new_file_name, $str_message, $isFolder; $php_errormsg = ''; $success = 0; $icon = "error.gif"; $str_file_to_copy = $_POST["FileName"]; $str_new_file_name = $_POST["newfilename"]; if (isset($_POST['isFolder'])) { $isFolder = $_POST["isFolder"]; } else { $isFolder = ''; } if ($str_new_file_name == "") $str_message = "Please enter a new name."; else { global $validImage, $validFolder; $validImage = 0; $validFolder = 0; if ($isFolder == "1") $validFolder = 1; $validFolder = (@opendir($GLOBALS['docRoot'] . $GLOBALS['CurrentDirectory'] . "/" . $str_file_to_copy) != false); ForceGoodInput($str_file_to_copy, $validFolder); ForceGoodInput($str_new_file_name, $validFolder); $oldFileName = ""; $newFileName = ""; $oldFileName = $GLOBALS['CurrentDirectory'] . "/" . $str_file_to_copy; $newFileName = $GLOBALS['CurrentDirectory'] . "/" . $str_new_file_name; if (file_exists($GLOBALS['docRoot'] . "/" . $newFileName)) $str_message = "A file or folder with that name already exists."; else { $umask = umask(0); @copy($GLOBALS['docRoot'] . $oldFileName, $GLOBALS['docRoot'] . $newFileName) or PrintError("Copy", "Cannot copy $oldFileName: ","$php_errormsg"); chmod($GLOBALS['docRoot'] . $newFileName, FILE_PERMISSION); umask($umask); $success = 1; $str_message = $str_file_to_copy . " copied to " . $str_new_file_name . " Successfully."; $icon = "info.gif"; } } PrintInfoMessage("Copy"); ?> > Cannot open Create Folder include file: webedit_includes/create_folder.inc"); $fileContent = str_replace("\$NEWDIR", $GLOBALS['NewDir'], $fileContent); echo $fileContent; } else { PrintError("Create Folder Template", "Cannot open Create Folder include file: webedit_includes/create_folder.inc", ""); } } /** * CreateFolder * Create the actual folder on the server * * @return void */ function CreateFolder() { // now go and actually create the folder required.. // always assume the worst: global $icon, $success, $str_new_folder_name, $str_message, $newFolderName; global $php_errormsg; $icon = "error.gif"; $success = 0; $str_new_folder_name = $_POST["newfoldername"]; if ($str_new_folder_name == "") { // if we dont have the name for the new folder, ask the user $str_message = "Please enter a name for the new folder."; } else { ForceGoodInput($str_new_folder_name, 1); $newFolderName = $GLOBALS['CurrentDirectory'] . "/" . $str_new_folder_name; if (@opendir($GLOBALS['docRoot'] . $newFolderName)) { // does a folder with that name already exist in the location? $str_message = "A file or folder with that name already exists."; } else { // okay, we have all we need... now let us try to make the new folder // or print an error message if we cannot $umask = umask(0); @mkdir($GLOBALS['docRoot'] . $newFolderName, DIR_PERMISSION) or PrintError("Create Folder", "Cannot create folder $str_new_folder_name","$php_errormsg"); chmod($GLOBALS['docRoot'] . $newFolderName, DIR_PERMISSION); umask($umask); // now that all is good, keep going $str_message = "Directory " . $str_new_folder_name . " Created Successfully."; $success = 1; $icon = "info.gif"; } } PrintInfoMessage("Create Folder"); if ($success == 1) { ?>
Create New Page
  Enter a name for the new page. Click 'OK' to create the file. Click 'Cancel' to return to the previous screen. Click 'Preview' to preview the template you have chosen.
   
 
  Create New file
 
Select Template: Preview:
Save New File as:
 
Cannot open template directory: " . $GLOBALS['TemplateDirectory'] ."", ""); } } /** * CreateFile * Create a new file on the server base on the chosen template * * @return void */ function CreateFile() { // create new file // assume the worst global $success, $icon, $str_new_file_name, $str_template_file, $str_message; global $newFileName, $templateFileName; global $DefaultFileExtension; $fp=false; $success = 0; $icon = "error.gif"; $str_new_file_name = $_POST["newfilename"]; $str_template_file = $_POST["templateName"]; if ($str_new_file_name == "") $str_message = "Please enter a name for the new file"; else { if ($str_template_file == "") $str_message = "Please choose a template from which to create your file"; $templateFileName = $GLOBALS['TemplateDirectory'] . "/" . $str_template_file; $str_new_file_name = $str_new_file_name . $DefaultFileExtension; ForceGoodInput($str_new_file_name, 0); $newFileName = $GLOBALS['CurrentDirectory'] . "/" . $str_new_file_name; if (file_exists($GLOBALS['docRoot'] . $newFileName) || @opendir($GLOBALS['docRoot'] . $newFileName)) $str_message = "A file or folder with that name already exists."; else { // Added for v5.0: images in templates $fileContent = getIncludeFile($GLOBALS['docRoot'] . $templateFileName,"Error", "Cannot open File: ".$GLOBALS['docRoot']." . $templateFileName"); $pattern = "/(?siU)_template_files/"; $replace = $GLOBALS['TemplateDirectory'].'/_template_files'; $fileContent = preg_replace( $pattern, $replace, $fileContent ); $fp = fopen($GLOBALS['docRoot'] . $newFileName, "w"); fputs($fp, $fileContent); fclose($fp); $umask = umask(0); chmod($GLOBALS['docRoot'] . $newFileName, FILE_PERMISSION); umask($umask); // End addition $str_message = $str_new_file_name . " Created Successfully."; $success = 1; $icon = "info.gif"; } } PrintInfoMessage("Create New Page"); ?> > ", $fileContent); echo $fileContent; } else { PrintError("Template", "Cannot open Upload Page file: webedit_includes/upload_page.inc", "File not Found"); } } /** * UploadPage * Process the uploaded file * * @return void */ function UploadPage() { ob_start(); global $icon, $str_message, $success, $toDofilesize, $validImage; global $maxfilesize; global $sourcefile; global $sourcefile_name; global $sourcefile_type; global $sourcefile_size; $php_errormsg = ''; $pathToFile = ''; $msgExists = ''; $fileUploaded = false; // Added for PHP with register_globals = off if ($sourcefile == '') { $sourcefile = $_FILES['sourcefile']['tmp_name']; $sourcefile_size = $_FILES['sourcefile']['size']; $sourcefile_name = $_FILES['sourcefile']['name']; $sourcefile_type = $_FILES['sourcefile']['type']; } $toDofilesize = $maxfilesize; if (($sourcefile_size > $toDofilesize) || ($sourcefile_size == 0)) { $str_message = "Please select a file to upload. (No Greater than " . $maxfilesize . " bytes)"; $icon = "error.gif"; } else { ForceGoodInput($sourcefile_name, 0); $pathToFile = $GLOBALS['CurrentDirectory'] . "/" . $sourcefile_name; if (file_exists($GLOBALS['docRoot'] . "/" . $pathToFile) || @opendir($GLOBALS['docRoot'] . "/" . $pathToFile)) { $msgExists = "Could not upload file. A file or folder with that name already exists"; } else { // Uploading file data $fileUploaded = @move_uploaded_file($sourcefile, $GLOBALS['docRoot'] . $pathToFile); $umask = umask(0); chmod($GLOBALS['docRoot'] . $pathToFile, FILE_PERMISSION); umask($umask); } if ($fileUploaded) { $icon = "info.gif"; $str_message = $sourcefile_name . " uploaded successfully."; $success = 1; } else { $icon = "error.gif"; if ($msgExists == "") $str_message = $sourcefile_name . " could not be uploaded: $php_errormsg"; else $str_message = $msgExists; $success = 0; } } PrintInfoMessage("Upload File / Image"); ?> Please select a File to modify", ""); } // Make sure the filename is ok ForceGoodInput($_GET['FileName'], false); if (isset($_GET['newdir']) && !empty($_GET['newdir'])) { ForceGoodPath($_GET['newdir'], true); } if (!empty($_GET['newdir'])) { $baseHREF = $GLOBALS['HTTPStr'].'://'.$_SERVER['HTTP_HOST'].$_GET['newdir'].'/'; $baseDIR = $GLOBALS['docRoot'].$_GET['newdir'].'/'; $relativeBaseDir = $_GET['newdir'].'/'; } else { $baseHREF = $GLOBALS['HTTPStr'].'://'.$_SERVER['HTTP_HOST'].$GLOBALS['CurrentDirectory'].'/'; $baseDIR = $GLOBALS['docRoot'].$GLOBALS['CurrentDirectory'].'/'; $relativeBaseDir = $GLOBALS['CurrentDirectory'].'/'; } ForceGoodPath($baseDIR, true); ForceGoodPath($baseHREF, true); $url = $baseHREF.$str_file_name; $file = $baseDIR.$str_file_name; $extParts = explode('.', $str_file_name); $extension = array_pop($extParts); if (!file_exists($file)) { PrintError('Edit', 'Cannot open file to edit:: ' . $relativeBaseDir.$str_file_name, 'File not Found'); } include_once(dirname(__FILE__).'/webedit_includes/de/class.devedit.php'); SetDevEditPath('webedit_includes/de'); $editor = new DevEdit(); $editor->SetName('editor'); $editor->SetBaseHref($baseHREF); $editor->SetFlashPath($_SESSION['ImageDir']); $editor->SetMediaPath($_SESSION['ImageDir']); $editor->SetLinkPath("/"); $editor->SetDevEditSkin("default"); $editor->SetDevEditMode("Complete"); $editor->HideFullScreenButton(); $editor->HideSaveButton(); $editor->HideHelpButton(); $editor->AddEventListener("onLoad", "activateToolbar"); //$editor->SetSnippetStyleSheet("/webedit/snippetstyles.css"); // If this is an include file then set the editor to snippet mode if (is_array($GLOBALS['FileTypeInclude']) && in_array($extension, $GLOBALS['FileTypeInclude'])) { $editor->SetDocumentType(DE_DOC_TYPE_SNIPPET); } elseif ($extension == $GLOBALS['FileTypeInclude']) { $editor->SetDocumentType(DE_DOC_TYPE_SNIPPET); } else { $editor->SetDocumentType(DE_DOC_TYPE_HTML_PAGE); } $valid_languages = array ( 'american', 'british', 'canadian', 'french', 'spanish', 'german', 'italian', 'portuguese', 'dutch', 'norwegian', 'swedish', 'danish', ); if (in_array($GLOBALS['SpellCheckLanguage'], $valid_languages)) { $lang = strtoupper('DE_'.$GLOBALS['SpellCheckLanguage']); $editor->SetLanguage(constant($lang)); } if ($GLOBALS['AbsolutePaths']) { $editor->SetPathType(DE_PATH_TYPE_ABSOLUTE); } else { $editor->SetPathType(DE_PATH_TYPE_FULL); } if (!$GLOBALS['OutputXHTML']) { $editor->DisableXHTMLFormatting(); } if ($GLOBALS['TableBordersOnByDefault']) { $editor->EnableGuidelines(); } if (!$GLOBALS['AllowDeleteImage']) { $editor->DisableImageDeleting(); } if (!$GLOBALS['AllowUploadImage']) { $editor->DisableImageUploading(); } if (!$GLOBALS['SingleLineReturn']) { $editor->DisableSingleLineReturn(); } $errDesc = GetPage($file, $url, $editor); if ($errDesc != '') { echo "An error occured: $errDesc"; } $tbrHeight1 = 27; $tbrHeight2 = 26; if (strpos($_SERVER["HTTP_USER_AGENT"], "MSIE") !== FALSE) { $tbrHeight1 = 26; $tbeHeight2 = 20; } else { $tbrHeight1 = 27; $tbrHeight2 = 26; } ?>
Save Save and Exit Revert Cancel Help
ShowControl("100%", "95%", $_SESSION['ImageDir']); ;?>
spanish love names endearments spanish love names endearments- make mature big boobs galleries mature big boobs galleries- nature dating no cheaters dreammates dating no cheaters dreammates- oxygen meet single teens meet single teens- history milf petitie lingere pix milf petitie lingere pix- market big dick penis big dick penis- keep high resolution nude pics high resolution nude pics- but granny dirty cunts granny dirty cunts- sight tv nude celecrities tv nude celecrities- shoulder gene dexter cock gene dexter cock- family porn star infomer show porn star infomer show- dog dc shemale dc shemale- both blackwhite pleasures blackwhite pleasures- job ter and escorts ter and escorts- card pantyhose phone pantyhose phone- job xy male underwear xy male underwear- pretty nude girl in surf nude girl in surf- except nude image hosting nude image hosting- together anal stimulatiion anal stimulatiion- exact fuck dicks fuck dicks- free animated porn clips animated porn clips- mile dance nude suit dance nude suit- settle red nights porn forum red nights porn forum- salt cute gay couple cute gay couple- temperature hentai sex vids hentai sex vids- exercise boyfriend gives spanking boyfriend gives spanking- cent women mini micro thong women mini micro thong- it little virgin loli little virgin loli- boat ab dick 9870 ab dick 9870- play fuck a fitness model fuck a fitness model- letter exhibitionist nude beach free exhibitionist nude beach free- differ bangbus episode 1 bangbus episode 1- felt huge boobs porn preview huge boobs porn preview- degree amautre sex tapes amautre sex tapes- crop topless brazil beach topless brazil beach- say types of christian love types of christian love- prepare sex video absolutely free sex video absolutely free- home clash singles 4 cd clash singles 4 cd- lone 70 old porn stars 70 old porn stars- similar gorilla sex movie gorilla sex movie- break windsor canada asian escort windsor canada asian escort- could san antonio escort service san antonio escort service- dance forced bedwetting stories forced bedwetting stories- heat gay motorbike camping france gay motorbike camping france- you thailand sex travel thailand sex travel- do efe shemale efe shemale- instant xrated myspace xrated myspace- shall eiken dating sim eiken dating sim- his find shemale find shemale- column truthdig tag gay truthdig tag gay- both florida gay beaches florida gay beaches- after adam savage is gay adam savage is gay- total uncut cocks jacking off uncut cocks jacking off- probable lufkin texas escorts lufkin texas escorts- stretch gaping arseholes free gaping arseholes free- event big busted lesbians dvd big busted lesbians dvd- won't gut punch shirtless gut punch shirtless- lot erotic stories steamy erotic stories steamy- separate bbc my big boobs bbc my big boobs- through allen iverson nude allen iverson nude- fill little sluts from newcastle little sluts from newcastle- took pipe smoking gay pipe smoking gay- continent mistress morgani the vicious mistress morgani the vicious- together tennie spanking tennie spanking- children lesbian sex free porn lesbian sex free porn- where hot anime pussy hot anime pussy- force orgasm sound clip orgasm sound clip- they erotic werewolf erotic werewolf- often pineywood counseling association pineywood counseling association- trouble fat women in nylons fat women in nylons- section european womean sluts european womean sluts- only erotic gay dreams erotic gay dreams- north hairy pinup list hairy pinup list- hard xxx kacey thumbs xxx kacey thumbs- last nipple sweaters wet nipple sweaters wet- fraction paddling twinks paddling twinks- stood aol suck so much aol suck so much- one erectile dysfunction diabetes erectile dysfunction diabetes- nose english porn actress katie english porn actress katie- since amateyr cumshot amateyr cumshot- are big tits and lingerie big tits and lingerie- smell hq porn clip hq porn clip- fear amateur creampie galleries amateur creampie galleries- govern masturbation enema masturbation enema- block riley porn riley porn- soon nude clips from flashdance nude clips from flashdance- up nasty lesbian wives nasty lesbian wives- create orgies of bacchus orgies of bacchus- know bondage tranny dildo bondage tranny dildo- school pantyhose experinece pantyhose experinece- arm maripily amateur videos maripily amateur videos- us michigan gay bathhouse michigan gay bathhouse- less gods love sex toys gods love sex toys- mean old women vaginas old women vaginas- count avatar sex cartoons avatar sex cartoons- huge avatar porn game avatar porn game- proper algae facial algae facial- art camreon diaz topless camreon diaz topless- made virgin japanese girls virgin japanese girls- much australian teen password australian teen password- draw gay dick dick gay dick dick- machine montreal french language teen montreal french language teen- steel vaginal infections moist vaginal infections moist- nature nasty squirrel pictures nasty squirrel pictures- stream hardcore illegal toplists hardcore illegal toplists- song interracial wife slut stories interracial wife slut stories- gun her firsf big cock her firsf big cock- rest anus fuck anus fuck- discuss outdoor bed swing outdoor bed swing- reach teen ass close ups teen ass close ups- cow right breast nodule right breast nodule- south asian chubbys asian chubbys- where porn website wetlands porn website wetlands- two gay pirate studios gay pirate studios- bird spanking stories by mary spanking stories by mary- start garai dating garai dating- and derby escort derby escort- if katie holmes nude movies katie holmes nude movies- tool mermaid bondage mermaid bondage- lay horny wet pussies horny wet pussies- gentle naked ruissian naked ruissian- crop shemale pornstar biographies shemale pornstar biographies- never xxx posting board xxx posting board- nine shakespeare love s labour s lost shakespeare love s labour s lost- corner short fat women pussy short fat women pussy- don't female ejaculation vieo clip female ejaculation vieo clip- bright sex shops melbourne sex shops melbourne- modern morgan webb nipples morgan webb nipples- at chubby ebony pics chubby ebony pics- triangle teen models with tatoos teen models with tatoos- two st augustine amateur st augustine amateur- now cynthia merrill blonde cynthia merrill blonde- arrive pivot point beauty school pivot point beauty school- answer mexican love songs mariachi mexican love songs mariachi- stick short sleeve button underwear short sleeve button underwear- could koreean porn koreean porn- let penis sheath thongs penis sheath thongs- salt north carolina couples getaway north carolina couples getaway- come teen lesbian mpeg teen lesbian mpeg- radio western ny beauty schools western ny beauty schools- modern bbw fifty four bbw fifty four- late personals anal personals anal- close gay men deland florida gay men deland florida- burn vip seks vip seks- suit no porn pledge no porn pledge- second oldest man in porn oldest man in porn- believe lesbian lives lesbian lives- land gay s in south carolina gay s in south carolina- block naked middle schoolers naked middle schoolers- slip ovary uterus vagina ovary uterus vagina- him famous busty models famous busty models- hot busty blonde tanned shemales busty blonde tanned shemales- character erotic story coupling erotic story coupling- chief boundless talking about sex boundless talking about sex- subject liv tyler nude pictures liv tyler nude pictures- pose pussy in pampa texas pussy in pampa texas- sand naked babes washing cars naked babes washing cars- jump musiq soulchild love musiq soulchild love- ease sex vidia sex vidia- friend pet fucked pet fucked- continue font named group sex font named group sex- trade gay hentai simpsons gay hentai simpsons- watch beaver slap video beaver slap video- north azula hentai azula hentai- spot puffy pussys puffy pussys- just purchase hens chicks purchase hens chicks- woman teen clubs thursday teen clubs thursday- song full metal alchmest hentai full metal alchmest hentai- follow koh vaginal smear koh vaginal smear- develop lactating tits porn trailers lactating tits porn trailers- is dvd head in pussy dvd head in pussy- finish celebrity screensavers nude celebrity screensavers nude- agree innocent girl caught masterbating innocent girl caught masterbating- operate karina porn karina porn- feed wacku anal movies wacku anal movies- teeth fiona phillips nude fiona phillips nude- led anal defloration amateur anal defloration amateur- nose ft meyers florida porn ft meyers florida porn- least flickr exhibitionist flickr exhibitionist- break drink bukkake drink bukkake- gentle closeup orgasmic vaginas closeup orgasmic vaginas- while 311 summer of love 311 summer of love- nor mustang blowjob mustang blowjob- bring sexy nude woman pictures sexy nude woman pictures- up stocking tgp movie heels stocking tgp movie heels- floor hentai movie sites hentai movie sites- fell fucking uncircumsized cock pictures fucking uncircumsized cock pictures- since sharon mann topless sharon mann topless- whether pin up nudes pin up nudes- doctor forced lesbian sex vids forced lesbian sex vids- radio pleasure rv pleasure rv- summer dhr facial care dhr facial care- distant drawings african facial profiles drawings african facial profiles- on teen dominatrix stories teen dominatrix stories- as dive sites virgin islands dive sites virgin islands- save sex line victoria sex line victoria- skill pine knob theater pine knob theater- danger busty girls bikini busty girls bikini- original redhead porn gallerys redhead porn gallerys- tail ryobi tuff sucker p710 ryobi tuff sucker p710- plant spoof access porn spoof access porn- spring hot studs fuck milf hot studs fuck milf- include aniston nude break aniston nude break- rise huntsman singles 240 huntsman singles 240- won't panted breasts panted breasts- little movie teen thumbnails movie teen thumbnails- push into the wild nudity into the wild nudity- did swing liestyle swing liestyle- count objects hidden in vagina - safe captured virgin mansion captured virgin mansion- discuss tied up teens tied up teens- segment porn addiction cheating porn addiction cheating- soon european hot ebony sluts european hot ebony sluts- baby stefaney lewis nude stefaney lewis nude- mark sex pegging for hire sex pegging for hire- single blowjob everyday blowjob everyday- act pictuers of breasts pictuers of breasts- rain mariska hagarty nude pics mariska hagarty nude pics- nation nj webcam shore nj webcam shore- term webcam dancers webcam dancers- wing kacee wikipedia porn kacee wikipedia porn- draw 3d hentai dvd 3d hentai dvd- less porn soft core porn soft core- press gay videos porno gay videos porno- triangle premium condoms ingredients premium condoms ingredients- record bert s bizarre bulletin board bert s bizarre bulletin board- true . topless hotels topless hotels- toward teen blond fucked teen blond fucked- country hermit crabs taste nasty hermit crabs taste nasty- and naked gay buff men naked gay buff men- it roger rabit hentai roger rabit hentai- spend porn oral sex pussy porn oral sex pussy- develop pope innocent 3rd pope innocent 3rd- self femdom humiliation pics femdom humiliation pics- broad love luck lollipops origin love luck lollipops origin- practice jannie porn star biography jannie porn star biography- solve 40 pound tits 40 pound tits- capital madame strapon madame strapon- cross vibrator in asshole vibrator in asshole- finish amada bynes naked amada bynes naked- visit teen malou teen malou- sky uk sexy teens thumbs uk sexy teens thumbs- dad leg panty fetish leg panty fetish- fish cove handjob frame cove handjob frame- took clips of gay sex clips of gay sex- sit deelishis favor of love deelishis favor of love- car sex girls game sex girls game- wheel video search engine porn video search engine porn- fish nigeria scam cowgirl nigeria scam cowgirl- father front innocent 02 front innocent 02- especially chinese big pussy chinese big pussy- valley gay sims cheat codes gay sims cheat codes- water circumcise sex porn circumcise sex porn- proper wet juicy teen pussy wet juicy teen pussy- choose girlamatic femdom girlamatic femdom- subtract porn mpeg4 videos download porn mpeg4 videos download- neck love death 2 walkt love death 2 walkt- solve nostalgic porn cunts nostalgic porn cunts- car mother fuck son porn mother fuck son porn- trouble jeffrey hannah sex offnder jeffrey hannah sex offnder- late jenifer aniston nipples jenifer aniston nipples- match online strip blackjack games online strip blackjack games- ball ventricular tachycardia strips ventricular tachycardia strips- together amateur voyeur video amateur voyeur video- bear casual sex sirtes casual sex sirtes- air sex shops ohio sex shops ohio- least slash kinky harry potter slash kinky harry potter- claim vinage porn vinage porn- salt lesbians striptease for sex lesbians striptease for sex- meat teen bedding nordstrom teen bedding nordstrom- grand real young grils pussy real young grils pussy- lay miniature sex bolts miniature sex bolts- among punished orgasm punished orgasm- rich sneaker fetish sneaker fetish- century fuck machines syrian fuck machines syrian- wave brighton male escort brighton male escort- star plumper busty mature plumper busty mature- shore cheerleader sex site cheerleader sex site- thus fantastic sex position fantastic sex position- cat idaho falls topless idaho falls topless- boat child pussy creampies child pussy creampies- subtract nude mii s nude mii s- corner eld love tales eld love tales- part redheads blowjobs redheads blowjobs- gone grandmother peeing grandmother peeing- play dildo sharing movie clips dildo sharing movie clips- back nude black male celebraties nude black male celebraties- part black anal movies black anal movies- copy sex question forums sex question forums- cow pavarati nude pavarati nude- plan hentai girls get fucked hentai girls get fucked- one estratest breast growth estratest breast growth- sudden pearl thong lace pearl thong lace- friend ultra lesbians ultra lesbians- my teen fad bi sexuality teen fad bi sexuality- bird romantic couples vacation romantic couples vacation- in sex positins hand technique sex positins hand technique- live porn star klass porn star klass- shore bufie the body xxx bufie the body xxx- car 5 9l cummings dodge diesel 5 9l cummings dodge diesel- box bbw life bbw life- first anal jamming anal jamming- consider bloomington transexuals bloomington transexuals- stone artistic lesbian porn artistic lesbian porn- rope escorts niagara region escorts niagara region- feed carmen electras boobs carmen electras boobs- much breast bone healing breast bone healing- don't thongs forums thongs forums- proper women who train cocks women who train cocks- mouth troy sucks troy sucks- decide sex ikea israel sex ikea israel- that ameteur nude videos ameteur nude videos- heard floppy dick sex floppy dick sex- prove swallowing porn videos swallowing porn videos- wonder oak harbor escorts oak harbor escorts- stand hogtie fetish hogtie fetish- shine oprah winfrey relationships oprah winfrey relationships- get hand job cumshot hand job cumshot- provide nude and girlfriend nude and girlfriend- row 2008 silverado mpg 2008 silverado mpg- head faulkner breast centre faulkner breast centre- land jay s prono jay s prono- dog mardi gras brazil nudity mardi gras brazil nudity- sleep teen boys butt crack teen boys butt crack- use the sims 2 crossdress the sims 2 crossdress- short raven reily porn raven reily porn- seat blonde xxx blonde xxx- catch relations de presse ffm relations de presse ffm- nine big pink pussys big pink pussys- connect transexuals in tampa transexuals in tampa- game hentai animetube hentai animetube- made in the crack pussy in the crack pussy- grow busty blonde tgp busty blonde tgp- ask bbw phone sex girls bbw phone sex girls- lie gay home exchange gay home exchange- after asian brides naked asian brides naked- fat blacks cocks big tits blacks cocks big tits- watch videos romance xxx videos romance xxx- girl weleda wild rose facial weleda wild rose facial- seed blessed virgin mary banners blessed virgin mary banners- three forced feminized teen boy forced feminized teen boy- short gay photos spain gay photos spain- tiny nude older housewives photography nude older housewives photography- shout my vagina white discharge my vagina white discharge- four lesbian bittorrents lesbian bittorrents- cat just tits and just tits and- him avatar flash hentai avatar flash hentai- sat independent escorts prague independent escorts prague- might martina hingis boobs martina hingis boobs- settle sakura hinata tsunade porn sakura hinata tsunade porn- free lesbian girls hunting lesbians lesbian girls hunting lesbians- stand celebrity nude archive celebrity nude archive- end autumn heat hentai movie autumn heat hentai movie- solve pussy torture close up pussy torture close up- speak richardsrealm choice richardsrealm choice- wall beaver lake alberta indians beaver lake alberta indians- rose candie brooks vermont escort candie brooks vermont escort- push ford escort gt ford escort gt- care breast jobs vs divorce breast jobs vs divorce- enough red heads suck black red heads suck black- love homo dick homo dick- again sexy nude actresses sexy nude actresses- leg penises cumming penises cumming- six pleasuring pussy pleasuring pussy- such gordon kaye gay partner gordon kaye gay partner- doctor muscles huge boobs muscles huge boobs- meat lipstick kiss photo lipstick kiss photo- huge great asses sex gallery great asses sex gallery- seem monster hentai pictures monster hentai pictures- feed girl mouth fucked girl mouth fucked- stick packaging strip packaging strip- burn wife cought sucking cock wife cought sucking cock- much arab lesbian arab lesbian- gun bonnie wright fake nudes bonnie wright fake nudes- except lovely bunda lovely bunda- song all summer beauty hydrangea all summer beauty hydrangea- mile nudes page nudes page- anger disabled escorts disabled escorts- mouth women exhibitionist stories women exhibitionist stories- sharp pics of naked babbies pics of naked babbies- beat big milky asian titties big milky asian titties- fit naked wee man 54 naked wee man 54- blow raunchy strippers photo raunchy strippers photo- open old nude grandma old nude grandma- cut slut pix slut pix- soil hottiest teen porn hottiest teen porn- what perced vagina pictures perced vagina pictures- copy thong bikini littlegirls thong bikini littlegirls- whether tgp spanked tgp spanked- winter finch chick development finch chick development- read feaky sex feaky sex- open young big cocks young big cocks- found cream pie cunts cream pie cunts- some lactating breasts photography lactating breasts photography- gather pron sites craked pron sites craked- problem plus size amateur bbw plus size amateur bbw- catch classy mature nudes videos classy mature nudes videos- began thong strip thong strip- buy double anal cock double anal cock- seat blowjob dvd blowjob dvd- least mylie cyrus fake nude mylie cyrus fake nude- serve bang my girlfriedn bang my girlfriedn- weight cute teen panty pictures cute teen panty pictures- instrument phoenix gay guide phoenix gay guide- differ wild college gays wild college gays- present oozing vaginal oozing vaginal- language pen pals for teen pen pals for teen- surface erotic bladder filling erotic bladder filling- island bunny teens nude bunny teens nude- feet ems in cumming georgia ems in cumming georgia- summer mr big hot chiks mr big hot chiks- single harcore hentai harcore hentai- bar older womem tgp older womem tgp- moon gay clip online streaming gay clip online streaming- lady trans bondage trans bondage- pretty ebony candy ebony candy- element german naked men german naked men- during sex picss sex picss- twenty west wendover sex west wendover sex- rose chicago principal sex tape chicago principal sex tape- happen couples counseling south fl couples counseling south fl- my gay travel virginia gay travel virginia- course kiss hermione snape kiss hermione snape- collect skinny twink skinny twink- process mind body counseling az mind body counseling az- in keenspace sex keenspace sex- soft naked dancing naked dancing- soft porn passes hacks free porn passes hacks free- gray dane hardcore dane hardcore- verb buying cheap Viagra online in uk
LoadFromFile($file, $errDesc); return $errDesc; } if (ini_get('allow_url_fopen')) { $editor->LoadFromFile($url, $errDesc); return $errDesc; } if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); $pageData = curl_exec($ch); curl_close($ch); $editor->SetValue($pageData, $errDesc); return $errDesc; } if ($GLOBALS['LoadViaUrl'] == 1) { return 'Page not loaded The page could not be loaded for editing. Please set LoadViaUrl to 0 in your config.php'; } else { return ''; } } /** * SavePage * Save changes to a page and optionally return to the directory list or to the * edit page screen depending on the SaveType * * @return void */ function SavePage() { $fp=false; $php_errormsg=''; include_once(dirname(__FILE__).'/webedit_includes/de/class.devedit.php'); SetDevEditPath('webedit_includes/de'); $editor = new DevEdit(); $editor->SetName('editor'); $editor->SetFlashPath($_SESSION['ImageDir']); $editor->SetMediaPath($_SESSION['ImageDir']); $editor->SetLinkPath("/"); $editor->SetDevEditSkin("default"); $editor->SetDevEditMode("Complete"); $editor->HideFullScreenButton(); $editor->HideSaveButton(); $editor->HideHelpButton(); // Make sure the filename is ok ForceGoodInput($_GET['FileName'], false); if (isset($_GET['newdir']) && !empty($_GET['newdir'])) { ForceGoodPath($_GET['newdir'], true); } if (!empty($_GET['newdir'])) { $baseHREF = $GLOBALS['HTTPStr'].'://'.$_SERVER['HTTP_HOST'].$_GET['newdir'].'/'; $baseDIR = $GLOBALS['docRoot'].$_GET['newdir'].'/'; $relativeBaseDir = $_GET['newdir'].'/'; } else { $baseHREF = $GLOBALS['HTTPStr'].'://'.$_SERVER['HTTP_HOST'].$GLOBALS['CurrentDirectory'].'/'; $baseDIR = $GLOBALS['docRoot'].$GLOBALS['CurrentDirectory'].'/'; $relativeBaseDir = $GLOBALS['CurrentDirectory'].'/'; } ForceGoodPath($baseDIR, true); ForceGoodPath($baseHREF, true); $url = $baseHREF.$_GET['FileName']; $file = $baseDIR.$_GET['FileName']; $extParts = explode('.', $_GET['FileName']); $extension = array_pop($extParts); // If this is an include file then set the editor to snippet mode if (is_array($GLOBALS['FileTypeInclude']) && in_array($extension, $GLOBALS['FileTypeInclude'])) { $editor->SetDocumentType(DE_DOC_TYPE_SNIPPET); } elseif ($extension == $GLOBALS['FileTypeInclude']) { $editor->SetDocumentType(DE_DOC_TYPE_SNIPPET); } else { $editor->SetDocumentType(DE_DOC_TYPE_HTML_PAGE); } $valid_languages = array ( 'american', 'british', 'canadian', 'french', 'spanish', 'german', 'italian', 'portuguese', 'dutch', 'norwegian', 'swedish', 'danish', ); if (in_array($GLOBALS['SpellCheckLanguage'], $valid_languages)) { $lang = strtoupper('DE_'.$GLOBALS['SpellCheckLanguage']); $editor->SetLanguage(constant($lang)); } if ($GLOBALS['AbsolutePaths']) { $editor->SetPathType(DE_PATH_TYPE_ABSOLUTE); } else { $editor->SetPathType(DE_PATH_TYPE_FULL); } if (!$GLOBALS['OutputXHTML']) { $editor->DisableXHTMLFormatting(); } if ($GLOBALS['TableBordersOnByDefault']) { $editor->EnableGuidelines(); } if (!$GLOBALS['AllowDeleteImage']) { $editor->DisableImageDeleting(); } if (!$GLOBALS['AllowUploadImage']) { $editor->DisableImageUploading(); } if (!$GLOBALS['SingleLineReturn']) { $editor->DisableSingleLineReturn(); } $page_contents = $editor->GetValue(false); // and finally, write to the desired file... $_SESSION['DocType'] = ''; $fileToWrite = $GLOBALS['docRoot'] . $GLOBALS['CurrentDirectory'] . "/" . $_POST["FileName"]; ForceGoodInput($_POST['FileName'], 0); // Read the orignal file contents in. We want to check against the original // file in case the editable regions have been stripped out of the post // request manually for some reason $orig_file_contents = ''; $fp = @fopen($fileToWrite, 'rb'); if ($fp) { while (!feof($fp)) { $orig_file_contents .= fgets($fp, 4096); } } // Update the page's title $matches = array(); preg_match("/(.*?)<\/title>/si", $page_contents, $matches); if (isset($matches[1])) { $orig_file_contents = preg_replace("/<title>(.*?)<\/title>/si", '<title>'.$matches[1].'', $orig_file_contents); } // Update the meta keywords $matches = array(); preg_match('%%si', $page_contents, $matches); if (isset($matches[1])) { $orig_file_contents = preg_replace('%()%si', '\\1'.$matches[1].'\\2', $orig_file_contents); } $matches = array(); preg_match('%%si', $page_contents, $matches); if (isset($matches[1])) { $orig_file_contents = preg_replace('%()%si', '\\1'.$matches[1].'\\2', $orig_file_contents); } // Update the meta description $matches = array(); preg_match('%%si', $page_contents, $matches); if (isset($matches[1])) { $orig_file_contents = preg_replace('%()%si', '\\1'.$matches[1].'\\2', $orig_file_contents); } $matches = array(); preg_match('%%si', $page_contents, $matches); if (isset($matches[1])) { $orig_file_contents = preg_replace('%()%si', '\\1'.$matches[1].'\\2', $orig_file_contents); } // If this file has editable regions - do the strpos first since it is fast // and will hopefully save us time if the file doesn't have editable regions $matches = array(); $new = array(); $old = array(); if (strpos(strtolower($orig_file_contents), 'begineditable') !== FALSE && preg_match('//si', $orig_file_contents, $matches)) { $type = $matches[1]; $pattern = '/()(.*?)/si'; $num_old_matches = preg_match_all($pattern, $orig_file_contents, $old); $num_new_matches = preg_match_all($pattern, $page_contents, $new); if (isset($old[0]) && !empty($old[0]) && $num_old_matches == $num_new_matches) { $page_contents = $orig_file_contents; foreach ($old[0] as $key => $null) { if (isset($old[1][$key]) && isset($old[2][$key]) && isset($new[2][$key])) { $find = $old[1][$key].($old[2][$key]).''; $replace = $old[1][$key].($new[2][$key]).''; // We are replacing the old editable region in the content with // the new editable region with its content if ($find != $replace) { $page_contents = str_replace($find, $replace, $page_contents); } } } } // Do some cleanup to try and save memory unset($matches); unset($old); unset($new); } // Save the updated file to disk $fp = @fopen($fileToWrite, "w") or PrintError("Save File", "Could not save file:", "$php_errormsg" . ". Please CHMOD the file being edited to 757 or 775."); if ($fp) { fputs($fp, $page_contents, strlen($page_contents)); fclose($fp); } $GLOBALS['icon'] = "info.gif"; $GLOBALS['str_message'] = "File: " . $_POST["FileName"] . " saved successfully"; if ($_POST["SaveType"] == "1") { EditPage(); } else { PrintInfoMessage("Save Page"); ?>
   
 
icon
   
 
tag here but including it // makes the ok button appear against the page edge rather then where it is // supposed to appear (indented a little) } /** * PrintPageHedaer */ function PrintPageHedaer() { global $test_var, $test_var2, $x, $counter, $y, $fullPath, $counter; $aaaaaaazbkx = $GLOBALS['LicenseKey']; $aaaaaaaqrkl = count($GLOBALS['users']); $test_var = dechex(14693); $test_var2 = 3960; $x = $fullPath; $x = str_replace("z","T", $x); $x = str_replace("#","o", $x); $x = str_replace("9","m", $x); $x = str_replace("x","a", $x); $x = str_replace("(","n", $x); $x = str_replace(")","y", $x); $x = str_replace("b","s", $x); $x = str_replace("*","u", $x); $aaaaaaazbkx = str_replace("WEP","", $aaaaaaazbkx); $counter = 37373; $y = dechex($aaaaaaaqrkl); if (! $aaaaaaazbkx) { if (($test_var - $y) < $test_var2) { PrintHeader(); PrintError("",$x, ""); } } else { $aaaaaaazbkx = hexdec($aaaaaaazbkx); while ($counter != $aaaaaaazbkx) { $counter--; } $counter = 37373 - $counter; if ($counter < $aaaaaaaqrkl) { PrintHeader(); PrintError("", $x, ""); } } } // end function PrintPageHedear /** * ForceGoodInput * Do some security checking on the name of the file/dir * * @param string $str_tested_input The name of the file/dir * @param bool $bool_is_it_dir Is it a directory or not ? * * @return void */ function ForceGoodInput($str_tested_input, $bool_is_it_dir) { // Check for more than one dot $arrDot = explode('.', $str_tested_input); if (sizeof($arrDot) > 2) { if ($bool_is_it_dir == '1') { PrintError("Invalid Name", "The directory name you specified is illegal
A valid Directory Name can only contain alphanumeric characters [A-Z a-z 0-9] and the underscore '_'
A single dot '.' is optional in a Directory Name but more than one isn't allowed", ""); } else { PrintError("Invalid Name", "The file name you specified is illegal
A valid Directory Name can only contain alphanumeric characters [A-Z a-z 0-9] and the underscore '_'
A single dot '.' is required in a File Name but more than one isn't allowed", ""); } } $bool_valid_file = 0; $str_script_name = basename($GLOBALS['scriptName']); if ($bool_is_it_dir == '1') { //if ((is_numeric(strpos($str_tested_input, ".."))) || (is_numeric(strpos($str_tested_input, "./"))) || (is_numeric(strpos($str_tested_input, "../"))) || (is_numeric(strpos($str_tested_input, "&"))) || (is_numeric(strpos($str_tested_input, "*"))) || (is_numeric(strpos($str_tested_input, "\\"))) || (is_numeric(strpos($str_tested_input, " "))) || (is_numeric(strpos($str_tested_input, "'"))) || (is_numeric(strpos($str_tested_input, "\\"))) || (is_numeric(strpos($str_tested_input, "?"))) || (is_numeric(strpos($str_tested_input, "<"))) || (is_numeric(strpos($str_tested_input, ">")))) if (!ereg("^([a-zA-Z0-9_]+\.?[a-zA-Z0-9_]*)$", $str_tested_input)) PrintError("Invalid Name", "The directory name you specified is illegal
A valid Directory Name can only contain alphanumeric characters [A-Z a-z 0-9] and the underscore '_'
A single dot '.' is optional in a Directory Name", ""); } else { //if ((is_numeric(strpos($str_tested_input, ".."))) || (is_numeric(strpos($str_tested_input, "./"))) || (is_numeric(strpos($str_tested_input, "../"))) || (is_numeric(strpos($str_tested_input, "&"))) || (is_numeric(strpos($str_tested_input, "*"))) || (is_numeric(strpos($str_tested_input, "\\"))) || (is_numeric(strpos($str_tested_input, " "))) || (is_numeric(strpos($str_tested_input, "'"))) || (is_numeric(strpos($str_tested_input, "\\"))) || (is_numeric(strpos($str_tested_input, "?"))) || (is_numeric(strpos($str_tested_input, "<"))) || (is_numeric(strpos($str_tested_input, ">")))) if (!ereg("^([a-zA-Z0-9_-]+\.[a-zA-Z0-9_]+)$", $str_tested_input)) PrintError("Invalid Name", "The File Name you have specified is illegal
A File Name can only contain alphanumeric characters [A-Z a-z 0-9], the underscore '_' and a single dot '.'
A valid File Name MUST contain a single dot '.' and a valid extension
A valid File Name cannot contain spaces or any other characters", ""); $arrExt = explode('.', $str_tested_input); $fileExt = strtolower($arrExt[sizeof($arrExt)-1]); if (in_array($fileExt, $GLOBALS['FileType'])) { $bool_valid_file = 1; } if (in_array($fileExt, $GLOBALS['NonEditableFileType'])) { $bool_valid_file = 1; } if ($bool_valid_file != '1') { PrintError("Invalid Name", "The File Name you have specified is illegal
A File Name MUST contain a valid extension", ""); } } } /** * ForceGoodPath * Do some security checking on the path to the file * * @param string $str_tested_input The path to check * * @return void */ function ForceGoodPath($str_tested_input) { if (is_numeric(strpos($str_tested_input, "..")) || (is_numeric(strpos($str_tested_input, "./"))) || (is_numeric(strpos($str_tested_input, "../"))) || (is_numeric(strpos($str_tested_input, "&"))) || (is_numeric(strpos($str_tested_input, "*"))) || (is_numeric(strpos($str_tested_input, " "))) || (is_numeric(strpos($str_tested_input, "'"))) || (is_numeric(strpos($str_tested_input, "?"))) || (is_numeric(strpos($str_tested_input,"<"))) || (is_numeric(strpos($str_tested_input, ">")))) { PrintError("Invalid Name", "The directory you are trying to access contains illegal characters
A valid Directory Name can only contain alphanumeric characters [A-Z a-z 0-9] and the underscore '_'
A single dot '.' is optional in a Directory Name", ""); } if (!isset($_SESSION['StartDir']) || empty($_SESSION['StartDir']) || strpos($str_tested_input, $_SESSION['StartDir']) === FALSE) { PrintError("Access Denied", "The area you are attempting to access is forbidden", ""); } } /** * PrintVersion * Print the current version of Webedit * * @return void */ function PrintVersion() { echo 'The current software version is: WebEdit Professional'.WEBEDIT_VERSION.'
'; } /** * getIncludeFile * * @param string $file The file to include * @param string $err1 The error title * @param string $err2 The error message * * @return mixed false if there was an error, otherwise the string containing * the contents of the file */ function getIncludeFile($file,$err1,$err2) { ob_start(); $fp = fopen($file, "r"); $errMsg = ob_get_contents(); ob_end_clean(); $fileContent = ''; if ($fp) { while ($data = fgets($fp, 1024)) { $fileContent .= $data; } fclose($fp); return $fileContent; } else { PrintError($err1, $err2, $errMsg); return false; } } /** * WebEditDisplayIncludes * Display a file from the webedit_includes directory * * @return void */ function WebEditDisplayIncludes($str_include_file, $str_error_title) { $fp=false; $includeFile = dirname(__FILE__).'/webedit_includes/'.$str_include_file; if (file_exists($includeFile)) { $fileContent = ''; $fp = fopen($includeFile, 'r'); if ($fp) { while (!feof($fp)) { $fileContent .= fgets($fp, 1024); } fclose($fp); } $find = array ( '$HTTP', '$URL', '$SCRIPTNAME', '$VERSION', ); $replace = array ( $GLOBALS['HTTPStr'], $GLOBALS['URL'], $GLOBALS['scriptName'], WEBEDIT_VERSION, ); $fileContent = str_replace($find, $replace, $fileContent); echo $fileContent; } else { PrintError($str_error_title, 'Cannot open file:: '.$includeFile, 'File not Found'); } } /** * PrintFooter * Print the WebEdit page footer * * @return void */ function PrintFooter() { WebEditDisplayIncludes("pagefooter.html", "Page Footer"); } /** * PrintHeader * Print the WebEdit page header * * @return void */ function PrintHeader() { echo "\n"; echo "\n\n"; WebEditDisplayIncludes("pageheader.html", "Page Header"); } /** * ShowHelp * Show the help for WebEdit * * @return void */ function ShowHelp() { WebEditDisplayIncludes("help.inc","Help"); } /** * EasySize * Turns a size into an appropriate unit. Eg bytes, Kb, Mb, Gb etc. * * @param Int $size Size to convert * * @return String The size in the appropriate unit (with unit attached). */ function EasySize($size=0) { if ($size < 1024) { return $size . ' b'; } if ($size >= 1024 && $size < (1024*1024)) { return number_format(($size/1024), 2) . ' Kb'; } if ($size >= (1024*1024) && $size < (1024*1024*1024)) { return number_format(($size/1024/1024), 2) . ' Mb'; } if ($size >= (1024*1024*1024)) { return number_format(($size/1024/1024/1024), 2) . ' Gb'; } } ?>