<?php
/* run this package installation on your server*/
Class MakeInstall{
public static function install(){
$files=['Autoloader_pjc_1517055626.php','projectsClasses1517253095.pjc','projectsFunctions1517253095.pjc'];
$dir=dirname(__FILE__);
$forfopen=str_replace('\\',"/",$dir);
$_1=file_get_contents($files[0]);
$x=file_put_contents($files[0],str_ireplace('C:/Program Files/EasyPHP-Devserver-17/eds-www/Simplify_PHP_Classes_Autoloading',$forfopen,$_1));
$_2=file_get_contents($files[1]);
$y=file_put_contents($files[1],str_ireplace('C:\Program Files\EasyPHP-Devserver-17\eds-www\Simplify_PHP_Classes_Autoloading',$dir,$_2));
$_3=file_get_contents($files[2]);
$z=file_put_contents($files[2],str_ireplace('C:\Program Files\EasyPHP-Devserver-17\eds-www\Simplify_PHP_Classes_Autoloading',$dir,$_3));
if($x&&$y&&$z){
echo '<hr>Done!<hr>';
return true;
}else{
echo '<hr>Not Done! Please try again or make these changes manually</hr>';
return false;
}
}
}
MakeInstall::install();
?>
|