Please contact your webhost with this error message.";
exit();
}
if(isset($_GET["admin"]) && $_GET["admin"]==1){
setcookie("ezalink_admin", "true", time()+(60*60*24*365*10), "/", ".about-alcohol-rehab.com");
}
if(isset($_GET["admin"]) && isset($_GET["setup"]) && $_GET["admin"]==1 && $_GET["setup"]>=1){
$testfile="0.txt";
if(!file_exists($testfile)){
$fp = @fopen($testfile,'w');
@fwrite ( $fp , "Ok" );
@fclose( $fp );
}
if(!file_exists($testfile) || file_get_contents('0.txt')!="Ok"){
echo"
One last step before you're done......
Please set the permission of the folder, articles, to
777. (How to set folder permission to 777?)
When done, click here.
";
exit();
}
echo"Setup Completed.
If you can see a default article directory below, setup is completed. You'll customize it later.
Close this window and proceed to the next step.
";
echo"";
if(isset($_GET["setup"]) && $_GET["setup"]==1){
$htaccessfile=".htaccess";
if(!file_exists($htaccessfile)){
$htaccessContent ="";
$htaccessContent .= "Options +FollowSymlinks\r\n";
$htaccessContent .= "RewriteEngine on\r\n";
$htaccessContent .= "RewriteRule ^([a-zA-Z0-9_-]+)\.html$ ?$1 [L]\r\n";
$htaccessContent .= "RewriteRule ^([a-zA-Z0-9_-]+)/([0-9]+)/$ ?c=$2&p=1 [L]\r\n";
$htaccessContent .= "RewriteRule ^([a-zA-Z0-9_-]+)/([0-9]+)$ ?c=$2&p=1 [L]\r\n";
$htaccessContent .= "RewriteRule ^([a-zA-Z0-9_-]+)/([0-9]+)/([0-9]+)/$ ?c=$2&p=$3 [L]\r\n";
$htaccessContent .= "RewriteRule ^([a-zA-Z0-9_-]+)/([0-9]+)/([0-9]+)$ ?c=$2&p=$3 [L]";
$fp = @fopen($htaccessfile,'w');
@fwrite ( $fp , $htaccessContent );
@fclose( $fp );
}
echo"NOTE: If you see Internal Server Error instead, it means
the .htaccess file we've created in your server is causing a problem.
Solutions
1) Inform your server support about this issue and get them to resolve it for
you.
OR
2) Delete the .htaccess file in the directory folder.
You may have to refresh to see the file. If you can't see the .htaccess file,
it may be hidden. If so, only your server support can remove that file.
";
}
exit();
}
if (isset($_GET)){
$post=array_keys($_GET);
if(isset($post[0])){
$start=strripos("$post[0]","-")+1;
$thispost=substr("$post[0]",$start);
}
if(isset($thispost) && is_numeric($thispost) && !isset($_COOKIE['ezalink_admin'])){
$file=$thispost.".txt";
if(isset($file) && file_exists($file) && filemtime($file) > (time()-$xp)){
readfile($file);
exit();
}
ob_start();
}
}
$c="";
$p="";
$r="";
$g="";
if (isset($_GET["c"])){
$c=$_GET["c"];
}
if (isset($_GET["p"])){
$p=$_GET["p"];
}
if (isset($_GET["r"])){
$r=$_GET["r"];
}
if (isset($_GET)){
$g=serialize($_GET);
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_ENCODING, "");
curl_setopt($ch, CURLOPT_URL, "http://ezarticlelink.com/goto.php?d=2388&m=1882&c=".$c."&p=".$p."&r=".$r."&g=".$g);
$html = curl_exec($ch);
curl_close($ch);
echo $html;
if(isset($file) && $file<>""){
$bufferContent = ob_get_contents();
ob_end_flush();
$fp = @fopen($file,'w');
@fwrite ( $fp , $bufferContent );
@fclose( $fp );
}
?>