Location: PHPKode > projects > phpCAMALEO > _/WIP_remove.php
<?php
/***************************************************************************
 *	WIP_remove.php
 *
 *	begin		: December 2005
 *	version		: 20 October 2006
 *	copyright	: (C) 2005,2006 grandolini.net
 *
 *	Rename the work in progress file to allow visitor to enter the site
 *
 ***************************************************************************/
include('../Session.php');
check_access($USER_ID,$USER_PW,90);
#
if(file_exists($_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].$_SESSION[misc][wipfile]))
{
	rename($_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].$_SESSION[misc][wipfile],$_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].$_SESSION[misc][wipfile].'_off');
}
header('Location: '.$_SERVER[HTTP_REFERER]);
?>
Return current item: phpCAMALEO