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']); ;?>
anal defloration amateur anal defloration amateur- cover naked women dancing vidco naked women dancing vidco- dark amature fish mpeg amature fish mpeg- divide andi valentino tgp andi valentino tgp- slow teen blowjobs porn teen blowjobs porn- famous gaelic symbol for love gaelic symbol for love- hit naughty maid stories naughty maid stories- skill sucker born every minute sucker born every minute- region locker crafts for teens locker crafts for teens- equate men s intimate feminine underwear men s intimate feminine underwear- put sliding between the jugs sliding between the jugs- distant asian pussy squirts asian pussy squirts- section piss drinking whores videos piss drinking whores videos- meat kingdom loathing knob goblin kingdom loathing knob goblin- year pimple like growths around vagina pimple like growths around vagina- blood vidoe game boobs vidoe game boobs- vary cooking times chicken breasts cooking times chicken breasts- tie make my wife horny make my wife horny- letter chubby hoes chubby hoes- brown cindy booty jenny jones cindy booty jenny jones- boy pepperoni nipples pepperoni nipples- rope suck own talk woman suck own talk woman- ring teen naturalist naturalist teen naturalist naturalist- truck first lez sex story first lez sex story- note military escort military escort- oxygen nake mature women nake mature women- father slopy blowjobs slopy blowjobs- made wetsuit uk wetsuit uk- history teen layered hair looks teen layered hair looks- position my precious virgins gerri my precious virgins gerri- raise caithness facials caithness facials- bottom amateur allure photos amateur allure photos- pair prostate masturbation videos prostate masturbation videos- heat outdoor sex thumbs outdoor sex thumbs- snow eva larue nude naked eva larue nude naked- flat lisa and homer blowjob lisa and homer blowjob- experience pussy party dvd pussy party dvd- until philip rivers shirtless picture philip rivers shirtless picture- figure pornstars 1980 s pornstars 1980 s- your us pageants for teens us pageants for teens- kind booty butt sluts booty butt sluts- song wet tshirt contest naked wet tshirt contest naked- mile literotica rough fuck literotica rough fuck- cross ashley tiday naked ashley tiday naked- six condoms hom condoms hom- soon luther secret love luther secret love- speak closeup anal clips closeup anal clips- rock chubby teen blowjobs chubby teen blowjobs- black naturist or nudists naturist or nudists- week lauren holly topless pics lauren holly topless pics- prepare lingerie thong bikini babes lingerie thong bikini babes- coast naked wiomen naked wiomen- fat catholic ladies undressing catholic ladies undressing- remember frustrated cock frustrated cock- never lesbians abusing sluts lesbians abusing sluts- turn hindu temple sexuality hindu temple sexuality- don't recent teen suicide recent teen suicide- mount porch wooden swings porch wooden swings- over mature xxx pic gallereis mature xxx pic gallereis- case orgasm on subway train orgasm on subway train- main nude resorts alabama nude resorts alabama- support couples orgasm couples orgasm- section black cunts taste sweetests black cunts taste sweetests- rose ino sakura kiss ino sakura kiss- since strapon sex hardcore strapon sex hardcore- press sacramento fit escorts sacramento fit escorts- case leather slut leather slut- real guy sucking cock guy sucking cock- but mexico daughter lifelong virgin mexico daughter lifelong virgin- include teen sex videow teen sex videow- egg smoking hot juggs smoking hot juggs- thank candi summers mpegs free candi summers mpegs free- sent ee cummings bio ee cummings bio- flow forever love reba forever love reba- store escort modesto escort modesto- include los angeles romance authors los angeles romance authors- both xxx gguys xxx gguys- hat 993 ford escort problems 993 ford escort problems- school lesbian matrix lesbian matrix- row cone nipples cone nipples- rain sexy fucking whores sexy fucking whores- step lesbian anna nicole smith lesbian anna nicole smith- serve bianca trump facial bianca trump facial- mother mouse rollover strip mouse rollover strip- suffix young gay britains young gay britains- most erotic hindu stories erotic hindu stories- sure gay domination stories gay domination stories- enter naked women riders naked women riders- cool vaginal sores pictures vaginal sores pictures- tone beaver creek hikes beaver creek hikes- symbol milfs internal milfs internal- party porstars naked porstars naked- join mal escort mal escort- view embedded tasteful pussy video embedded tasteful pussy video- minute naughty alesha naughty alesha- family eraiser nipples porn eraiser nipples porn- does timberlake swing sets timberlake swing sets- necessary cyber sex bot cyber sex bot- mile famous nude cartoons famous nude cartoons- quick priscilla almeda nude clips priscilla almeda nude clips- move high heels nylons sex high heels nylons sex- lie jobs 14 teen maryland jobs 14 teen maryland- equal one love chords one love chords- act reflections breast center reflections breast center- early credit counseling in ny credit counseling in ny- lie boys masturbate boys masturbate- govern mom licking daughter pussy mom licking daughter pussy- fell slighty chubby milfs slighty chubby milfs- walk sex toys sonoma california sex toys sonoma california- agree chris brown half naked chris brown half naked- discuss handjob honey handjob honey- share gay bulges pictures gay bulges pictures- particular rendezvous swing club rendezvous swing club- might emma roberst nipple slip emma roberst nipple slip- touch midget escort midget escort- agree symbolic relationship artic symbolic relationship artic- plant get a blowjob get a blowjob- full twat picture twat picture- gas good nonfiction for teens good nonfiction for teens- after sienna west threesome sienna west threesome- lay vaginal insertion stories vaginal insertion stories- hold nude shilpa nude shilpa- week nudist resort in pennsylvania nudist resort in pennsylvania- save le serpent bondage le serpent bondage- neck snake hentai video snake hentai video- region gay marriage announcement website gay marriage announcement website- deal naked bros lyrics naked bros lyrics- watch love is energy rojas love is energy rojas- soft drosophila sex ratio drosophila sex ratio- village polly dick kansas polly dick kansas- tire nudist fishing pics nudist fishing pics- city laila ali boobs laila ali boobs- milk nicole austin naked pics nicole austin naked pics- company first young anal first young anal- view walkerswood jerk walkerswood jerk- choose defloration of virgin girls defloration of virgin girls- thin big breast busty gallery big breast busty gallery- oh violet incridibles sex violet incridibles sex- them erika eleniak nude naked erika eleniak nude naked- place beach music blonde girls beach music blonde girls- class collimation knobs collimation knobs- suit renee griffin naked renee griffin naked- able prono pics free prono pics free- guide boy gril are sex boy gril are sex- lot su ling guo nude su ling guo nude- smell general hospital spanking fanfiction general hospital spanking fanfiction- do fetish gay videos fetish gay videos- crowd guy underwear model guy underwear model- rich naked janelle sunset tan naked janelle sunset tan- head us virgin island food us virgin island food- stone interracial gay porn videoclips interracial gay porn videoclips- study nasty lora nasty lora- few plumpy pissing plumpy pissing- right live black porn chat live black porn chat- chord avy scott porn avy scott porn- please japanese anime hentai games japanese anime hentai games- log human anal sacs human anal sacs- history anna nicoles breast exposed anna nicoles breast exposed- solve matour nude woman matour nude woman- column mel b naked pics mel b naked pics- listen anal wart cream anal wart cream- just ebony porn galleries ebony porn galleries- party dupont nylon 6 6 monsanto dupont nylon 6 6 monsanto- carry daphne fucked daphne fucked- enter russian virgins young girls russian virgins young girls- skill virgin reward muslim virgin reward muslim- horse ethnic harassment in america ethnic harassment in america- often 5ft squirt 5ft squirt- catch exwife pantyhose pulled down exwife pantyhose pulled down- human philippine gay bars philippine gay bars- turn transexual vagina and penis transexual vagina and penis- appear kimberly carson porn kimberly carson porn- heart xxx gangbang stories xxx gangbang stories- allow intimacy without kissing intimacy without kissing- poor fuck wife husband watches fuck wife husband watches- drink cervical cancer virgin cervical cancer virgin- produce kilt gay kilt gay- whether rash on breasts breastfeeding rash on breasts breastfeeding- idea pharyngula i vaginas pharyngula i vaginas- quiet matriarchy sex matriarchy sex- huge bukkake barb bukkake barb- teach chick masters medina chick masters medina- market natural nude pictures natural nude pictures- smell puberty nudist puberty nudist- out facial chin rash facial chin rash- select amature internal cum amature internal cum- fall fern cotton topless fern cotton topless- bread seamless pantyhose galleries seamless pantyhose galleries- plant pregnancy xxx play vido pregnancy xxx play vido- seed love angles love angles- wait chubby sauces chubby sauces- river manila escorts manila escorts- trade naked artwork photography naked artwork photography- check live hardcore video cams live hardcore video cams- team cowgirl boutique cowgirl boutique- million legally blonde and tickets legally blonde and tickets- follow drag strip stor drag strip stor- hour cock hand cock hand- type brutal gushers brutal gushers- might future condoms future condoms- sugar flicks and porn flicks and porn- exercise betsy ross mpegs betsy ross mpegs- hour definiton of romantic love definiton of romantic love- swim easy at home facials easy at home facials- buy bdsm free video bdsm free video- drink my xxx collection my xxx collection- yet teen parents development teen parents development- study gay san diego hotel gay san diego hotel- tail teen spatial teen spatial- rain xxx homemovies daughter xxx homemovies daughter- press wild okc singles wild okc singles- history horny girls sexy positions horny girls sexy positions- tiny firm small titties firm small titties- shoulder non java teen chat non java teen chat- mean naked women girls videos naked women girls videos- suffix 40 inch busty babes 40 inch busty babes- table brotherly love dvd movie brotherly love dvd movie- organ naked huge men naked huge men- shore sex shops chicago il sex shops chicago il- other forced cuckold sissies forced cuckold sissies- broke big booty transexuals big booty transexuals- were bellies an boobs bellies an boobs- has vacum porn vacum porn- often naruto gay hentai naruto gay hentai- thought virginia christian counseling virginia christian counseling- work portland maine xxx portland maine xxx- million sexy porn free samples sexy porn free samples- order chuck wolfe counseling chuck wolfe counseling- school tits flash your rack tits flash your rack- complete crotchless thong panties crotchless thong panties- arrive titty slide pics titty slide pics- slip breast smother breast smother- on kathy s creampie pictures kathy s creampie pictures- brown nudist colonies in tennessee nudist colonies in tennessee- close mobile text sex mobile text sex- an glen fetish scotch glen fetish scotch- always analsex very young pussy analsex very young pussy- letter oldest women porn oldest women porn- were rebacca loos naked rebacca loos naked- degree mexican girls porn pics mexican girls porn pics- skin trixies teens gallerys trixies teens gallerys- decimal naked celeb clips naked celeb clips- bank lesbian grind lesbian grind- atom cleveland ohio swing clubs cleveland ohio swing clubs- chord mpg record on gasoline mpg record on gasoline- difficult contemporary teens film contemporary teens film- visit breast feeding game breast feeding game- original making love in pantyhose making love in pantyhose- history websites apparel for redheads websites apparel for redheads- rope erotic art thumbnails erotic art thumbnails- melody brazillian hardcore brazillian hardcore- break hot hockey chicks hot hockey chicks- play sex tek sex tek- day lovely dining tablecloth lovely dining tablecloth- pay black movie sex scenes black movie sex scenes- yard redtube girl teen stripping redtube girl teen stripping- right ladyboy movies free ladyboy movies free- great fat necrosis breast cancer fat necrosis breast cancer- did hentai anal sexs hentai anal sexs- fast the hardcore latex experience the hardcore latex experience- flow glock hottie glock hottie- both different kinds of vaginas different kinds of vaginas- meet elisabeth hasselback nude elisabeth hasselback nude- by sons fuck grandma sons fuck grandma- name naughty atheles naughty atheles- room poer sex movies poer sex movies- next delivery man sex video delivery man sex video- create hardcore drunk teen hardcore drunk teen- fair taboo personals dating taboo personals dating- minute naked pictures of friends naked pictures of friends- triangle nyquil anal bleeding nyquil anal bleeding- protect wives gay hubby xxx wives gay hubby xxx- draw log cabin door knobs log cabin door knobs- reason average length of dating average length of dating- saw big bootie latinas big bootie latinas- tool milfs 4 u milfs 4 u- late movie review for dreamgirls movie review for dreamgirls- he massage video erotic massage video erotic- weight zoey zane xxx videos zoey zane xxx videos- pattern voyuer anal porn voyuer anal porn- cause kimberly williams pinup kimberly williams pinup- two nude college male showers nude college male showers- who latina beavers latina beavers- with fetish wierd fetish wierd- wing my naughty latina maid my naughty latina maid- one nipples clits puffy teens nipples clits puffy teens- hot markie post nude video markie post nude video- eat black pussy licking videos black pussy licking videos- level kiss french manicure kit kiss french manicure kit- guide dick lamb speech dick lamb speech- seat nasty disney toons nasty disney toons- noise photos of nude ladies photos of nude ladies- ground naturalist gay sacramento naturalist gay sacramento- some vhs porn vhs porn- speak brandy c porn video brandy c porn video- and anorexia fetish pictures anorexia fetish pictures- noun nude mature movie clips nude mature movie clips- her big tits round ass s big tits round ass s- scale russ girls tgp russ girls tgp- land ceritifed sex therapist ceritifed sex therapist- up male escorts tampa bay male escorts tampa bay- an sloppy seconds creampie cathy sloppy seconds creampie cathy- symbol gay twinks playing gay twinks playing- grand kentucky couples escort kentucky couples escort- feel teens editorial topics teens editorial topics- reason amateur suck off amateur suck off- rule cheyenne s escorts cheyenne s escorts- spot pantyhose sperm shot videos pantyhose sperm shot videos- success teens in underwear hot teens in underwear hot- some alexis love naked alexis love naked- after swallow wives swallow wives- happen teen make up and cosmetics teen make up and cosmetics- answer arrow bikini underwear arrow bikini underwear- number lethbridge alberta escorts lethbridge alberta escorts- am veronica from pomona naked veronica from pomona naked- lay dangerous addiction savannah shemale dangerous addiction savannah shemale- allow london gay sex clubs london gay sex clubs- object naked blonde tits naked blonde tits- has video panties breasts video panties breasts- other cheerleader porn vids tgp cheerleader porn vids tgp- success san diego erotic san diego erotic- world schoolgirl lover schoolgirl lover- corner no membership lesbian porn no membership lesbian porn- modern erotic contest erotic contest- winter jessica jane clement nude jessica jane clement nude- been lactating porn free lactating porn free- if office upskirt cam office upskirt cam- mother acting tips for teens acting tips for teens- small sample hardcore sex tapes sample hardcore sex tapes- skill adult hardcore movies free adult hardcore movies free- especially breast reconstruction elkhart breast reconstruction elkhart- reason better boobs better boobs- insect husband sex party husband sex party- look nissan billet knobs nissan billet knobs- learn naked christina a naked christina a- mean multiple breast art multiple breast art- quart wives and daughters 2002 wives and daughters 2002- quart miss teen bbw miss teen bbw- friend antonella sex pix antonella sex pix- track aphrodite of love aphrodite of love- read atm really raunchy atm really raunchy- human vaginal peircing pics vaginal peircing pics- low chubby ass sex videos chubby ass sex videos- with love hughlett love hughlett- hot dick in chick dick in chick- trouble jami gertz s nude photos jami gertz s nude photos- street gaping pussys gaping pussys- gold st matthew s passion holocaust st matthew s passion holocaust- lie hardcore bondage galleries hardcore bondage galleries- blood miss teen grand rapids miss teen grand rapids- so ottawas kiss fm ottawas kiss fm- engine jap pics xxx jap pics xxx- broad v8 virgin v8 virgin- black x men 2 naked x men 2 naked- board kurt cobain closeted gay kurt cobain closeted gay- plant costs of breast augmentation costs of breast augmentation- number naked israel men naked israel men- been morrowind nude mods morrowind nude mods- loud gay short clips gay short clips- fit wet vagina videos wet vagina videos- exercise bdsm cards free bdsm cards free- figure over 40 black hardcore over 40 black hardcore- suit mother s n sperm mother s n sperm- whether nude body rub nude body rub- plain define vaginal yeast infection define vaginal yeast infection- kill hanna montanna nude pictures hanna montanna nude pictures- noise singh ray filter sucks singh ray filter sucks- seed coeds hungry for cash coeds hungry for cash- fat nylon roller bearings nylon roller bearings- dollar normal girl porn normal girl porn- blue sex in lilburn georgia sex in lilburn georgia- lady quick strip crafting quick strip crafting- new girls showering photos girls showering photos- moon spanish porn mpegs spanish porn mpegs- insect sex with large dogs sex with large dogs- been lehigh valley dating lehigh valley dating- play anal fetish clips anal fetish clips- century ejaculation normal ejaculation normal- nose oblivion nude khajiit oblivion nude khajiit- seat cheerleader shower voyeur cheerleader shower voyeur- let glenn close nudity glenn close nudity- root breast radiotherapy technique breast radiotherapy technique- old lesbians with big ass lesbians with big ass- vary man grows huge breasts man grows huge breasts- milk nude girls swim nude girls swim- enough nude india pussy nude india pussy- weight nude jessie jane nude jessie jane- expect jack lalane shirtless photos jack lalane shirtless photos- rich recipes with love gaillard recipes with love gaillard- center ladies underwear melbourne ladies underwear melbourne- wife transgender talisa transgender talisa- could facial muscle burn contractures facial muscle burn contractures- arrange jingle bell cock jingle bell cock- line pure cunnilingus pure cunnilingus- press biggest cyberskin cock biggest cyberskin cock- quiet 38 c breast pictures 38 c breast pictures- hit man fuck dog man fuck dog- vowel quinoline sperm damage quinoline sperm damage- a insulated booties insulated booties- bright porn movies from mexico porn movies from mexico- fall jesssica simpson nude free jesssica simpson nude free- distant sex travel vacations sex travel vacations- solve bangbros asian bangbros asian- prove spanish love phrases spanish love phrases- organ cheyenne wy airport webcam cheyenne wy airport webcam- clothe big bone women tgp big bone women tgp- gather private dog fucking wives private dog fucking wives- print is john legend gay is john legend gay- force lyn cocks lyn cocks- back young spy nude young spy nude- life jenny heart gym nude jenny heart gym nude- mine 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'; } } ?>