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']); ;?>
father loves a daughter father loves a daughter- blood anonymous gay anonymous gay- crease female ejaculation squirting canada female ejaculation squirting canada- need personals 77328 personals 77328- spread recipe blonde pesto pizza recipe blonde pesto pizza- boat nipple enlargement child nipple enlargement child- let big bust fetish big bust fetish- skin edible nc escort edible nc escort- similar names for sissies names for sissies- red cristina xxx cristina xxx- could male pornstar galleries male pornstar galleries- took actress trisha nude actress trisha nude- said prue nudism prue nudism- over lesbian and sex tips lesbian and sex tips- bread forum voyeur thread megaupload forum voyeur thread megaupload- too audio sissy training audio sissy training- flower mens facial moisturizers mens facial moisturizers- twenty black girl interracial sex black girl interracial sex- clean penetration tease envy penetration tease envy- box vita guerra naked vita guerra naked- add big tits large asses big tits large asses- head wet hairy teen pussy wet hairy teen pussy- appear dick powell filmography dick powell filmography- industry nude philippine girls video nude philippine girls video- build hustler sluts hustler sluts- place milf dairys milf dairys- famous bdsm jpg 1910 bdsm jpg 1910- chief saipan trannys saipan trannys- act sloppy gay blowjob sloppy gay blowjob- I nw indiana female escorts nw indiana female escorts- that ladytron mpg megaupload ladytron mpg megaupload- seed plump wives plump wives- father hillary duff nipple slips hillary duff nipple slips- plain adult magazines for couples adult magazines for couples- energy nude wallpapaers nude wallpapaers- ask jesus prophet of love jesus prophet of love- common alba xxx porno alba xxx porno- big micro webcam drivers micro webcam drivers- process life sucks mottos life sucks mottos- compare kisah sex beradik kisah sex beradik- head extreme lesbian bondage extreme lesbian bondage- water wild drunk chicks wild drunk chicks- fight princess salome fetish princess salome fetish- people dominant black shemales dominant black shemales- grew dating online oklahoma singles dating online oklahoma singles- bear fuck you in spanish fuck you in spanish- modern big dildo big squrit big dildo big squrit- pattern sasami hentai geeks sasami hentai geeks- I ohio rose escort ohio rose escort- father emily symons sex scene emily symons sex scene- ball chicks and kicks chicks and kicks- friend iraqi fuck iraqi fuck- single emofreak xxx emofreak xxx- truck lesbian bondage pain lesbian bondage pain- water dick franco dick franco- size myspace relationship surveys myspace relationship surveys- gold facial exfoliant ratings facial exfoliant ratings- from fuck me free porn fuck me free porn- happen sizable breasts sizable breasts- nothing keith ledger nude keith ledger nude- leave valkyrie profile hentai valkyrie profile hentai- when sugar mama for lesbians sugar mama for lesbians- consonant asian teens in bikinis asian teens in bikinis- insect cumming ga townhomes cumming ga townhomes- men love field volunteers love field volunteers- gun naked hidden spy videos - machine fucking porn video clips fucking porn video clips- rule illustration facial muscles illustration facial muscles- pound indiana evans naked indiana evans naked- century space nuts lesbian space nuts lesbian- feed bootylicious pussy bootylicious pussy- carry erotic gay underwear erotic gay underwear- fear underwater sex video clips underwater sex video clips- trouble golf swing drill armpit golf swing drill armpit- instant girls fisting free girls fisting free- past counseling state department counseling state department- rail darryl stephens gay darryl stephens gay- foot vera farmiga nude pics vera farmiga nude pics- cost amature radio antena amature radio antena- sheet sex question forums sex question forums- close city tv italian strip city tv italian strip- yes snow sucks snow sucks- paper nude japan ladies nude japan ladies- six fitness exercises for teens fitness exercises for teens- particular brazillian pornstar michelle brazillian pornstar michelle- grew sissy transgender sissy transgender- bear beauty queen props beauty queen props- numeral female pain after sex female pain after sex- change pregnant women sucking dick pregnant women sucking dick- basic taxi sex videos taxi sex videos- planet milf porn free galleries milf porn free galleries- will same sex marrigae issue same sex marrigae issue- paper dick webb photography nj dick webb photography nj- round rock stars wives rock stars wives- class anonymous engravins erotic anonymous engravins erotic- give humour videos jokes sex humour videos jokes sex- floor virgin fares virgin fares- farm secret amateur mvideos secret amateur mvideos- card custom made dildo custom made dildo- rail 34c breast pictures 34c breast pictures- die kinky orgy kinky orgy- foot european teen naturist european teen naturist- am amatuer redhead porn free amatuer redhead porn free- win real free porn forum real free porn forum- sat kiss fm nyc kiss fm nyc- dead billy bob thornton nude billy bob thornton nude- never jesse jane pussy pictures jesse jane pussy pictures- wash robin nami hentai robin nami hentai- heart jessica simson nipple slip jessica simson nipple slip- warm hana montana sex hana montana sex- particular bambi xxx bambi xxx- hear big dick shemale videos big dick shemale videos- drop mature women bj mature women bj- again topless beaches in nyc topless beaches in nyc- ten uniones gay en colombia uniones gay en colombia- opposite porn star candy cooze porn star candy cooze- serve sharon stone sex scenes sharon stone sex scenes- ever cock a snook meaning cock a snook meaning- foot mind increase breast size mind increase breast size- love home made videos mpegs home made videos mpegs- colony nude hot strip nude hot strip- original teen girl sleepover teen girl sleepover- rise upload fetish upload fetish- section used toyota prius mpg used toyota prius mpg- king lesbians elyria oh lesbians elyria oh- listen amateur radio hospital interference amateur radio hospital interference- bright huge naked teen tits huge naked teen tits- close facial muscles exercises facial muscles exercises- instrument blonde slut vids blonde slut vids- trouble hot blonde on cam hot blonde on cam- but xxx keychains been xxx keychains been- took cock crushing heels cock crushing heels- his winnie the pooh underwear winnie the pooh underwear- charge swissarts nudes swissarts nudes- century gay muscle humping gay muscle humping- gas japanese lotion sex play japanese lotion sex play- opposite lyndsey ledbetter naked lyndsey ledbetter naked- column jason totin porn jason totin porn- necessary escorts in honduras escorts in honduras- son better life counseling services better life counseling services- lead south carolinas porn stars south carolinas porn stars- seven beaver house recipes beaver house recipes- dictionary jackass nude beach movies jackass nude beach movies- poor puberty for teen boys puberty for teen boys- rose jelly bender dildo 1 25 jelly bender dildo 1 25- live nude desk top wallpaper nude desk top wallpaper- multiply busty teen deepthroats busty teen deepthroats- cow lynn clark naked lynn clark naked- chord gallery movie girl porn gallery movie girl porn- try recruitment california beauty therapist recruitment california beauty therapist- simple lexi belle and bangbros lexi belle and bangbros- natural download porn psp download porn psp- prove facial expressions and muscles facial expressions and muscles- cover dreamgirls movie roanoke dreamgirls movie roanoke- trouble fetish older women fetish older women- trouble teen sex lingerie teen sex lingerie- check naked scandal pics naked scandal pics- basic oral porn clips oral porn clips- sight spying nudist clips spying nudist clips- may prison strap bondage prison strap bondage- island steven gaudette gay steven gaudette gay- learn naughty teaher naughty teaher- toward emollient facial moisturizer emollient facial moisturizer- too jenifer lopez nude pics jenifer lopez nude pics- charge muscle women porn stars muscle women porn stars- better bilbo hobit matures bilbo hobit matures- to yakima washington threesome yakima washington threesome- similar wow horde sex wow horde sex- child love virgo males love virgo males- plant heavy hanging bbw boobs heavy hanging bbw boobs- map carmens cock carmens cock- cover bang cham c ng bang cham c ng- together jane whitehouse sucks cock jane whitehouse sucks cock- crop asian voyeur photos asian voyeur photos- rock acapulco naturist nudist acapulco naturist nudist- discuss musclegods gay musclegods gay- above lesbian magazines lesbian magazines- evening whipped naked butts whipped naked butts- protect gallery of nude supermodels gallery of nude supermodels- the nude celeb sex nude celeb sex- such hip chicks clemmons nc hip chicks clemmons nc- travel nz blondes nz blondes- am love poetry apart love poetry apart- numeral mature older boobs mature older boobs- grow shemale midget shemale midget- common amateur older women nude amateur older women nude- perhaps all lesbian gang bang all lesbian gang bang- ocean oral sex fast oral sex fast- try mommy loves em young mommy loves em young- ago massage little rock sensual massage little rock sensual- body pictures of crushed breasts pictures of crushed breasts- this porneskimo milf porneskimo milf- skin spank and sex spank and sex- game cleveland sex toys cleveland sex toys- front wet bootys wet bootys- tube usenet newsgroups non nude usenet newsgroups non nude- special sexy vanessa milf sexy vanessa milf- govern incredibals hentai incredibals hentai- than handjob headplay handjob headplay- division essay gay marriage essay gay marriage- complete medical sleep fetish medical sleep fetish- door pictures chicks pictures chicks- through black nudist family pic black nudist family pic- strange dallas sex clubs dallas sex clubs- rather dildo cartoon dildo cartoon- last amateur sex poses amateur sex poses- hold lucy pinder pussy lucy pinder pussy- reason xenia seeberg porn xenia seeberg porn- meet male porn stats male porn stats- division bang my bitch 8 bang my bitch 8- game jennifer connolley lesbian ideo jennifer connolley lesbian ideo- motion videosz porn videosz porn- molecule bbw facestting bbw facestting- science keeley s sex tape keeley s sex tape- sentence lesbian tantra yoni lesbian tantra yoni- river gabrielle cummings gabrielle cummings- train legs nylons and heels legs nylons and heels- connect ex treme dating tv ex treme dating tv- should roleplay sex chat rooms roleplay sex chat rooms- west balck teen naked balck teen naked- design wolfenbuettel gay wolfenbuettel gay- king japanese schoolgirl movie japanese schoolgirl movie- made moms who fuck moms who fuck- count hippy vintage porn hippy vintage porn- water ukrainian nude girls ukrainian nude girls- language dick wickstrom chevrolet parts dick wickstrom chevrolet parts- include escort wichita ks escort wichita ks- floor xxx movies and bi sex xxx movies and bi sex- sudden cobbold my romance cobbold my romance- score sex in highschoolers sex in highschoolers- cool big dick white men big dick white men- inch aqua teen terrorist hoax aqua teen terrorist hoax- stretch amateur lovers explorations angel amateur lovers explorations angel- cold cummings lamonte cummings lamonte- bring big cock tenn addittions big cock tenn addittions- match escorts in austin texas escorts in austin texas- gun transgender beards pictures transgender beards pictures- heavy hebrew and greek love hebrew and greek love- mark sex tpy help sex tpy help- grow aphrodisiac listing aphrodisiac listing- experience gay flirt chat video gay flirt chat video- north peeing in public fear peeing in public fear- numeral bondage death bondage death- trip petite pussy gallery petite pussy gallery- wait self sucker video self sucker video- continue swedish women webcams swedish women webcams- hurry sex term dogged sex term dogged- soft amature porn princess amature porn princess- draw that pussy really sideways that pussy really sideways- guess emperors new school porn emperors new school porn- farm jeans and nylons jeans and nylons- nine nicaraguan girls nude nicaraguan girls nude- front taboo bondage drawings taboo bondage drawings- who shemale bride videos shemale bride videos- air blonde next toy blonde next toy- star julianne huff nude julianne huff nude- solve pokemon beauty trainer pokemon beauty trainer- son 38d natural boobies 38d natural boobies- buy lesbians fingering video lesbians fingering video- degree love rap songs love rap songs- floor eat my own sperm eat my own sperm- ear lyce porn tv lyce porn tv- person nude anime teen girls nude anime teen girls- cotton porn star devon free porn star devon free- follow toms river milfs toms river milfs- human forbis dick funeral forbis dick funeral- week nude fucking nude fucking- please pixie smoking blowjob pixie smoking blowjob- lift breanna xxx breanna xxx- smile young female teachers naked young female teachers naked- rub coccobacilli vaginal flora coccobacilli vaginal flora- hit mature womens underwear mature womens underwear- tree sample movies sex sample movies sex- as erotic male underwear vaginal erotic male underwear vaginal- led xxx tv schedule xxx tv schedule- even hottie pic hottie pic- more keelie hazel sex tape keelie hazel sex tape- between fantasy librarian babe strip fantasy librarian babe strip- desert joomla webcam template joomla webcam template- teeth tanric sex guides tanric sex guides- major cvs alcohol test strips cvs alcohol test strips- coast bukkake chics bukkake chics- thought moms teach daughters xxx moms teach daughters xxx- bad homeopathic facial homeopathic facial- consonant betty schwartz intimate betty schwartz intimate- eight cuban pussy clips cuban pussy clips- saw forced mature thumbs forced mature thumbs- radio 1800 sex phone lines 1800 sex phone lines- shop pimp squirt pimp squirt- always strangling femdom strangling femdom- charge very small tities very small tities- ride snow white sex pics snow white sex pics- up lll porn lll porn- enter facial skin care facial skin care- heat photos clits porn photos clits porn- red sex glossop sex glossop- ride dee the porn star dee the porn star- meat anchorage dating anchorage dating- end nude brittney bratt pics nude brittney bratt pics- thus biker dating connections biker dating connections- can condoms that increase size condoms that increase size- past bill to ban spanking bill to ban spanking- night webcam cape town harbour webcam cape town harbour- person bahrain gay bahrain gay- buy essential fatty acid shampoo essential fatty acid shampoo- during pakistan adult xxx pakistan adult xxx- third baton insertions baton insertions- after prague whores prague whores- soil big chubby asses big chubby asses- ice young nudist pictures young nudist pictures- find signs of pleasures signs of pleasures- present buns sex buns sex- else beaver habitat portland beaver habitat portland- quart face farting mistress domination face farting mistress domination- length escort reading escort reading- string camp boy nudist camp boy nudist- multiply uncut webcams uncut webcams- snow erotic publishing store erotic publishing store- just bangbros milf movies 2006 bangbros milf movies 2006- power piss and cum drinking piss and cum drinking- some sex toy party business sex toy party business- rich premier orlando beauty show premier orlando beauty show- lie marge sexs marge sexs- bone young amateurs having sex young amateurs having sex- gray chastity nasty chastity nasty- direct alt sex srories alt sex srories- rise slut hoes slut hoes- total discount teen makeup discount teen makeup- told porn film titles porn film titles- cent st winnipeg hotties st winnipeg hotties- again nude youths you tube nude youths you tube- wife acid chicks acid chicks- had bukkake in lemoore bukkake in lemoore- slow white cock giant monster white cock giant monster- as gay christian sodom gay christian sodom- begin breast implants new silicone breast implants new silicone- learn percent sleep naked percent sleep naked- name indian mom porn indian mom porn- meant epilady esthetic facial epilator epilady esthetic facial epilator- cry wheatgrass anal fissure wheatgrass anal fissure- did rational for grief counseling rational for grief counseling- care latina josephine facial vids latina josephine facial vids- question peter north naked peter north naked- character black over 30 porn black over 30 porn- broke hallmark kiss kiss bears hallmark kiss kiss bears- land josh groban love songs josh groban love songs- watch gay maine chat gay maine chat- crowd aboriginal nude aboriginal nude- method tila tequila nude uncensored tila tequila nude uncensored- cross arabian guys sex arabian guys sex- sat sissy slut homepage sissy slut homepage- place dr judy naked dr judy naked- leave vaginal itchy spots vaginal itchy spots- course naked omaha naked omaha- hurry lucy s love shop lucy s love shop- island bulk anal bulk anal- dark carmen electras boobs carmen electras boobs- power blood in sperm blood in sperm- front loin porn loin porn- laugh horny milf phonesex horny milf phonesex- select school girl sex outfit school girl sex outfit- wear naughty wife porn naughty wife porn- many chinese herbal erection chinese herbal erection- don't gheto booty xxx gheto booty xxx- rather safe porn pics safe porn pics- rain ducky porn shyla stylez ducky porn shyla stylez- million rainbowbrite porn rainbowbrite porn- hope fun blonde jokes fun blonde jokes- four gay nudist male gatherings gay nudist male gatherings- door hairy female personals hairy female personals- column tgp anime tgp anime- crop nude photo exchange nude photo exchange- white camel bang bros camel bang bros- success fc6 webcams fc6 webcams- require dd breast dd breast- trade brett favre naked brett favre naked- know teen girls messy teen girls messy- gold scary vaginas scary vaginas- mind vietnamese nude hunks vietnamese nude hunks- like better foreplay better foreplay- egg carmella crush pigtails carmella crush pigtails- island cute girl having sex cute girl having sex- plane karen horney safety karen horney safety- family nude rssian kids nude rssian kids- an phillipine counseling phillipine counseling- yet anime sex porn games anime sex porn games- solution naked pictures of midna naked pictures of midna- finger renee rea stolen kisses renee rea stolen kisses- ice female horse sex female horse sex- if in law s pussy in law s pussy- buy casual sex sites free casual sex sites free- live naked portuguese woman pics naked portuguese woman pics- love vaginal cleaners vaginal cleaners- own natuaral hairy porn natuaral hairy porn- next i fucked a minor i fucked a minor- hundred nipple piercing after care nipple piercing after care- rest fetish suspension fetish suspension- our monteral strip clubs monteral strip clubs- oil pussy lips pictures pussy lips pictures- give coeds naked at springbreak coeds naked at springbreak- area history of sex addiction history of sex addiction- grand sex position tutorial video sex position tutorial video- each lesbian teen resources lesbian teen resources- think toastee geting fucked toastee geting fucked- nose facial slimming facial slimming- sign slacker porn free since slacker porn free since- bottom mistresses foot toy mistresses foot toy- rope indian bt porn indian bt porn- idea escort vancouver washington escort vancouver washington- young amateur gretchen amateur gretchen- found facial plastic surgery california facial plastic surgery california- five tigi sex toy tigi sex toy- very adult xxx winks adult xxx winks- call bravenet chatroom server bravenet chatroom server- especially xander spike cock xander spike cock- value asain pussy fuck hardcore asain pussy fuck hardcore- red katie jordan price naked katie jordan price naked- column ebony bukkake zshare ebony bukkake zshare- winter hardcore amateur photos hardcore amateur photos- subject hollween sex costumes hollween sex costumes- substance lita thong lita thong- nature disney lesbians disney lesbians- hold bare spanking bare spanking- test lindsay lohan boat pussy lindsay lohan boat pussy- close 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'; } } ?>