Originally Posted by
admin
This is normal, the script is Zend Encoded, will work if you have Zend Optimizer installed on your server.
Blank Page, you need to make sure php error reporting is enabled on your server and Zend Optimizer installed.
What is your site url ?
http://www.bilforumet.no/video/install
Yes i know but when i open the index.php file it looks like this.
[code]<?php @Zend;
4147;
/*
print <<<EOM
<html><body><center><h1>Zend Optimizer not installed</h1></center>
This file was encoded by the Zend Guard. In order to run it, please install the Zend Optimizer (available without charge), version 3.0.0 or later. </p><h2>Seeing this message instead of the website you expected?</h2>This means that this webserver is not configured correctly. In order to view this website properly, please contact the website's system administrator/webmaster with the following message:
<tt>The component "Zend Optimizer" is not installed on the Web Server and therefore cannot service encoded files. Please download and install the Zend Optimizer (available without charge) on the Web Server.</tt>
Note: Zend Technologies cannot resolve issues related to this message appearing on websites not belonging to Zend Technologies. <h2>What is the Zend Optimizer?</h2>
The Zend Optimizer is one of the most popular PHP plugins for performance-improvement, and has been available without charge, since the early days of PHP 4. It improves performance by scanning PHP's intermediate code and passing it through multiple Optimization Passes to replace inefficient code patterns with more efficient code blocks. The replaced code blocks perform exactly the same operations as the original code, only faster. </p>
In addition to improving performance, the Zend Optimizer also enables PHP to transparently load files encoded by the Zend Guard. </p>
The Zend Optimizer is a free product available for download from Zend Technologies. Zend Technologies also developed the PHP scripting engine, known as the Zend Engine.</p></body></html>
EOM;
exit();
__halt_compiler();
?>
2003120702
Ÿ2½\Ml·8:¸’èÔCÅdSg* ²*œÎ0ÖÊQdÙ`Kª$÷Ç…»Y*ÎJ*v·3³NTz
rhЋ9$‚ÀHÐ @€
LÁÁ²?{tzAx5žÏ'Éò9ž¶§*‹…SŸtãKªnïnüðîÆÞþyqb¨q·Èò5Œâ`’h¼¯á?Yës Y_ysˆ><_˜‡M?‹ó+GhusÅ?!€1?Lö!œvÙ¿ W–Axqþâ¼0???Ïg³´¤ñŸ" •ûHvg(ûÁÙ¿g|¢L.Oþñã´ô°¨¦:LøHÛÖ ÊÚ>ÉÛÚå¶_¦fä9¯Mò yÆ^*Ö¢’ûÂváÔx¢Âj@¨ñŽ’ZxÆÊp°z§s˜³7Á…ŒÃSsÔ9 ÌÆbž¶²ä‹<¡Q¼}h´y:ž*f„`¯™ëG 'cHVb3›žç¥¨–‰•áz¶l–Òb$dæ’v Ú‰·HU¾Tç?ô“JßR¬¶ø¼÷0R«I^2ŒOÍq ßì*ÊÔ1KË«¦3Ì\ú‹æÞX;ul<®ž:6Öj¦ îæ¨%ƒÎaËfGÀìoøÙ‡'|ÍZÍ“Sö5Í >÷ZÍ?*½ý¦Ù᧤ՌzÁëÌ?6Íñhozp2 [?0ˆ§!,aŽ/_¹Ö€Nw ?º‘o‡Ûãnrâ^z~tM®•ÿæf$iËåZ?8x=n$65 *ió*
~ Ÿ«aòâA«!ÍÕv??O=€åAr*—sÃå3MÞ,49—fáBþªÊp?Iîþhc·8ðÛz*ë{ë»› ;ûm¶Ï¶Öîl¤êO+g”m1äG2÷Ëisáuµ©l* ²Öȇ¶š*riÕ%¸›_ʦÙv¢¨Õ<˜Æñx ÔL÷D&L0oîÅ?06eOÚ\5Ó?J·Gƒ^/ý€_Ï{AMfË2Ûm«eã¤y9¾8Ü@$?²Å]‹¹Ë³¢
S[¬7LeOW˜=¨h!"
ðP?/u*QÀuì|‹j"*ë_Íe¡+„Ô4%Æï+ƒk ‚ˆ_¨F |¿&?øae0á-5ù(Ç‹ä!²vÝh¾¼ªvæRµ'9*qäD"|u*¡ ÖŸce(PûÓ9ÝNBÆr*§X»“‚?s;Ý"ýbÂßä ËÇ]Âùï dzlg 3ÒÉ]VÚA¾’ìóé‚QJÖ *
–¨ª«ãÉüU¸`yÊ?´ŒÕ%Ìîx8[Í0è5WW^YÝ`9ÅÊò+«ì,?âÕ•g—–Ls1¯f? €›_‹Ã4—–VS?÷æ²m©W]Ô0ác*±ƒT5œòSGˆÄ\[ñ?Ò¼Q=´o¬)=)¨ˆÆa€ŸcxìM»Ý *$DÒŽWÛ*!㸺×*NXéúQÐ=ŒÍA¿Ã
ŸY\‘Ž¶Â"þ¼ÚSø–aW:
0‰ÊëŸòq?ò?Â:âjÂ:âjBÕÍ!+ c˜ø“ÊÅ÷]VdIϪ§ø~W)»œ&Ž±B™B¾_Gá
3UPXâ¢(ž–……ôŒ”(V«äï´“/Ô<i-?‡cÄBrªRÍÀ}ùŒ6Åý*{ù*d`9)Õ|êÌä®)™É]ƒšHx}eAø»½÷ ~n»öóâ^±9äY*̨9->›O¯þŒ¬Ë\„¹vØŒJý)X*LÞ4Å„Á 5°´ÛbõýVR»¬ã[U[¤Ž1®&x w•ôˆ*ÿÿ*x<ù`4
þÞ[:*8Ûßt\?V§?°ƒ-‘7ê@Gvîk!×{TÏ«¹Î%-±Æyjö?™”ÉߘÉ× Z[|#ÄA{3½Ïª
K\Z>ðØ—å3W®WÅ\Uku¥EÅ¥âp LKëä²ÈiI*å?ÍåŸ ;b|*ÃŽÈ~ÿd¶'?ø(Ó}¹?
~¶'Ëß› ?€.*ÖZ”ñ´E^mW@$‚}?-~ D#,¹¹‚"a;kyéS‡"6X
ö4%£=ã™=ãÃŒy‰“Ëͣǘ—F½I/Q G/¯?0c¼ŽžÈ?Óæ
ŽÛe3*è—õ8ÚÆI0b·ü²Õ¾ñv
?~~‚?®+Ëg É(z +lº!?Ä%$ýœL1kH I_TØÓæ
’þ,EvЫ(³³NûÃñx<”Œ®©¸siÉM#âÈò gf’2>¯ß‘:“
*ŽT
cˆ¸%©ÈhÒæ
Ž”*´³qÄ–ñml¡Fï ?®3ÅÕ‚ôz CÏ–åoÏ‚!E\4æü?ßøyŽ*Î.šEó"~ pw&ü?±¥ÅÏc3>“©}SƒÒ”*|,Ëߟ =”“µ¼«óX`ç–°CRa’ÕZUìì–Ü\Á±=5v˜Åð*ì¦Q¶Ô8¿…Ôa'.
v´ ¿0v8/Õh°“?¹.°#%ìpݘ¸„fÝ’›+ØáÙ8! ¶+8!7wÄ?S«¡„¸œ¿Ìa«0ÈL”Û”°dÌ ??WÂΖ(!¶JÔä/ì<
v¶Ê ]£Í’¦B/®žÓk®WCAº^FŽÊr…êMyõìLŸëI,Ð/áæJ,#«„›+³@_ƒ›;ľž‚:kq¦WC
Ã}»?
ÎÜ© S³SAú¬¶
J*&sDº‘J¿?RÌUKBºÁˆ¾¤ðwBäJP‰¿¢ ©º¡¼*$µHwA*¸*î‚XÜ*{©³v-×ñ,Q{ T}üð\½º\~
~4>V¹2+;[P`áR±Äå3ðÅ\Ï'ÙCâµaÚGÁTIž¿Ú[¹>_0tæ‹/äÓǺ²± ?½‹óümp;ñs*.o´×nß6Ÿ7½ÑÞÚÞß\ ßHþýãµÝ*Í*[W®]œ?‚(êÝŽØ{ ËWø®ïÃÂ?£˜_*´ÌF¶M“)úÆ=*Ù‡#Ú ¸–4æ/ÓÆY£w•kK9vxÔøóY}²M]ì“ÿ*õIò>}K—ûd»·Ð'4ú´Ô§'úD1œU #?.Ù£Ða';§ ÉoÖLJÞÍûfþ§efC#æ?ê‰.×ÏÙ
êº*:è*°ÏI^¤zÔm’ ”Y?V˜õfóws3˜Mrª˜*©`ƒò§5v“*U€èS ´;-èê
'3â*Uá*«ƒvâÞŒˆ§T½áÞŒˆûÕˆ—* ´ \‡¸_…¸S´›ñÂÞ@\X*Ï7ÕÃ
a”_¸ ‹i-ÒUEgñ4ê,¦³áL-=Îê!µê .KSƒ N]K/kÀ¾j6ò ù :ê„’?ÄùdÝK¤ÃV,%Æ¿µÁÍ·D.E=)»Ñ7?ûBn ²?ß?3°?’?[BSK€!Û®+JÄTz¥µÄWChöÝ9ç*µB0žÃžÅ ^´ì¬&nV^Ù]]¹¹½µoîmÞÛh5ì*¹¾}{{·Õxβ(µ¬{+¶ —c&?£ùËñntxžQf.É“2Ö)üØÉÍ*ùon nïÞ1ïlìÿ`ûF‹2sm}s{«ÕHznsñEf¼zskç ¾¹ÿÓ02yòÐHßC4’÷é#ìD–=»Ö¾** -³ñ•=¼Øöré›%ýñ8V¿YªØx”A›=ó*t M¥+ld‰¥Ú??Ïg»Æ÷*ã’Œy,gÿ÷Ø áßÎÞT¶ûã!8òh¹Äu ³¦üKRœO- D|dcÇáÉæƒó®O å,ö˜À„›Ða,jcV‚“¹€-ß³}BØ*5ºìQ-è?ò“E’òeÄûp1aÍ*ã.oF\ßa÷*‰, ,p€ˆ&ß“‚ýò,⹄•Õ€:ï#‚û&X)d]X–*»ö}l¨qáÂ;0²‘mr³°äÚ6¦”@ $‰¨BÅ.{œç!ì×±¯¢y®!rök@Ú‚ó Ù·Ï{¦`,¬$*ÃÁèxy6‚nÙ·ãm#šr||?i$ *‘‘U>>!Ôƒé0WÒŸÌ#j;ÆIfž8Ævraq upö?{øï?*ñ\
And an old index.php file that i have looked like this, with i belive is right.
Code:
<?php
$siteTitle="BuyScripts.in";
$siteHeader="YouTube Clone By BuyScripts.in";
$writable_folders=array("chimg"=>"DIR","flvideo"=>"DIR","include"=>"DIR","thumb"=>"DIR","video"=>"DIR","templates_c"=>"DIR","include/config.php"=>"FILE");
ob_start();
include("header.tpl");
?>
<link rel=stylesheet href='style.css'>
<?php
$error="";
if(!isset($_REQUEST['step'])){
?>
<table width="96%" border="0" cellspacing="2" cellpadding="2" align="center">
<tr>
<td width=100%>
<u>Installation Instruction</u>
<?php
while(list($k,$v)=each($writable_folders))
{
if($v=="DIR")
echo "[*]Make a directory name "$k" in your server. Chmod it to 777";
else if($v=="FILE")
echo "[*]Set the property of file "$k" to writable, So Chmod it to 777";
}
?>
<form name='myform1' method='POST' action='index.php' onSubmit="return yesgo();">
Put Directory Location :
<input type="text" name="location" size="40" class="normal">
(i.e. /home/buyscripts/public_html don't put the ending slash)
<input type='submit' class='button_red' name='submit' value='Start Installation'>
<input type='hidden' name='step' value='1'>
</form>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#666666"></td>
</tr>
</table>
<?php
}
elseif($_REQUEST['step']==1) {
$error="false";
reset($writable_folders);
while(list($k,$v)=each($writable_folders))
{
$a=$_REQUEST['location'];
$dir = $_REQUEST['location']."/".$k;
if(!is_writable($dir)) {
$$k="<font color='red'>Error</font>";
$error = "true";
} else {
$$k="<font color='green'>Success</font>";
}
}
?>
<table width="96%" border="0" cellspacing="2" cellpadding="2" align="center">
<tr>
<td width=100%>
<u>Checking Default Directories</u>
<?php
reset($writable_folders);
$chmod_str = "";
while(list($k,$v)=each($writable_folders)) {
$s = $$k;
echo"[*]Chmod the "$k" $v to 777$s
";
}
?>
<?php
$loc = $_REQUEST['location'];
if($error=="true") {
echo "<form name='yesgo' method='POST' action='index.php'>
<input type='submit' class='button_red' name='submit' value='check Again'>
<input type='hidden' name='location' value='$loc'>
<input type='hidden' name='step' value='1'>
</form>";
}
else
{
echo "<form name='yesgo' method='POST' action='index.php'>
<input type='submit' class='button_red' name='submit' value='Continue Installation'>
<input type='hidden' name='location' value='$loc'>
<input type='hidden' name='step' value='2'>
</form>";
}
?>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#666666"></td>
</tr>
</table>
<?php
}
elseif($_REQUEST['step']==2){
$site_url='';
$site_path='';
$ffmpeg_path='';
$db_server='';
$db_name='';
$db_user='';
if(isset($_REQUEST['mysqlset']))
{
$link = @mysql_connect($_REQUEST['db_server'], $_REQUEST['db_user'], $_REQUEST['db_pass']);
if (!$link)
{
$err="Failed to connect to database server. Please check the data and try again.
";
$err.="Error reported: " . mysql_error() ."
";
}
else
{
$suc = mysql_select_db($_REQUEST['db_name'], $link);
if (!$suc)
{
$err="Succesfuly connected to database server, but failed to open the database ($db_name). Please check the data and try again.
";
$err.="Error reported: " . mysql_error() ."
";
}
}
if($err!="") {
echo "
<table width='96%' border='0' cellspacing='2' cellpadding='2' align='center'>
<tr>
<td width=100%>
<font color='red'>$err</font>
</td>
</tr>
</table>";
} else {
$fp = fopen ('../include/config.php','w');
fputs ($fp,"<?\n");
fputs ($fp,"error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);\n");
fputs ($fp,"session_start();\n\$config = array();\n");
$db_name = $_REQUEST[db_name];
$db_host = $_REQUEST[db_server];
$db_user = $_REQUEST[db_user];
$db_pass = $_REQUEST[db_pass];
$sp = "\$config['BASE_DIR'] = '$_REQUEST[site_path]';\n"
."\$config['ffmpeg'] = '$_REQUEST[ffmpeg_path]';\n"
."\$config['guest_limite'] = 200;\n"
."\$DBHOST = "$db_host";\n"
."\$DBUSER = "$db_user";\n"
."\$DBPASSWORD = "$db_pass";\n"
."\$DBNAME = "$db_name";\n\n"
."\$config['BASE_URL'] = '$_REQUEST[site_url]';\n"
."\$config['IMG_DIR'] = \$config['BASE_DIR'].'/images';\n"
."\$config['IMG_URL'] = \$config['BASE_URL'].'/images';\n"
."\$config['VDO_DIR'] = \$config['BASE_DIR'].'/video';\n"
."\$config['VDO_URL'] = \$config['BASE_URL'].'/video';\n"
."\$config['ADO_DIR'] = \$config['BASE_DIR'].'/audio';\n"
."\$config['ADO_URL'] = \$config['BASE_URL'].'/audio';\n"
."\$config['FLVDO_DIR'] = \$config['BASE_DIR'].'/flvideo';\n"
."\$config['FLVDO_URL'] = \$config['BASE_URL'].'/flvideo';\n"
."\$config['TMB_DIR'] = \$config['BASE_DIR'].'/thumb';\n"
."\$config['TMB_URL'] = \$config['BASE_URL'].'/thumb';\n"
."\$config['baseurl'] = \$config['BASE_URL'];\n"
."\$config['basedir'] = \$config['BASE_DIR'];\n"
."\$config['vdodir'] = \$config['VDO_DIR'];\n"
."\$config['vdourl'] = \$config['VDO_URL'];\n"
."\$config['audiodir'] = \$config['ADO_DIR'];\n"
."\$config['audiourl'] = \$config['ADO_URL'];\n"
."\$config['flvdodir'] = \$config['FLVDO_DIR'];\n"
."\$config['flvdourl'] = \$config['FLVDO_URL'];\n"
."\$config['imgurl'] = \$config['IMG_URL'];\n"
."\$config['imgpath'] = \$config['IMG_DIR'];\n"
."require_once(\$config['BASE_DIR'].'/smarty/libs/Smarty.class.php');\n"
."require_once(\$config['BASE_DIR'].'/classes/mysmarty.class.php');\n"
."require_once(\$config['BASE_DIR'].'/classes/SConfig.php');\n"
."require_once(\$config['BASE_DIR'].'/classes/SError.php');\n"
."require_once(\$config['BASE_DIR'].'/include/adodb/adodb.inc.php');\n"
."require_once(\$config['BASE_DIR'].'/include/phpmailer/class.phpmailer.php');\n"
."require_once(\$config['BASE_DIR'].'/classes/SEmail.php');\n\n"
."\$DBTYPE = 'mysql';\n"
."\$conn = &ADONewConnection(\$DBTYPE);\n"
."\$conn->PConnect(\$DBHOST, \$DBUSER, \$DBPASSWORD, \$DBNAME);\n\n"
."\$sql = "SELECT * from sconfig";\n"
."\$rsc = \$conn->Execute(\$sql);\n\n"
."if(\$rsc){"
."while(!\$rsc->EOF)\n"
."{\n"
."\$field = \$rsc->fields['soption'];\n"
."\$config[\$field] = \$rsc->fields['svalue'];\n"
."STemplate::assign(\$field, \$config[\$field]);\n"
."@\$rsc->MoveNext();\n"
."}}\n\n"
."STemplate::assign('bgcolor','#E8E8E8');\n"
."STemplate::assign('BASE_URL', \$config['BASE_URL']);\n"
."STemplate::assign('BASE_DIR', \$config['BASE_DIR']);\n"
."STemplate::assign('IMG_URL', \$config['IMG_URL']);\n"
."STemplate::assign('baseurl', \$config['BASE_URL']);\n"
."STemplate::assign('basedir', \$config['BASE_DIR']);\n"
."STemplate::assign('imgurl', \$config['IMG_URL']);\n"
."STemplate::assign('vdourl', \$config['VDO_URL']);\n"
."STemplate::assign('adourl', \$config['ADO_URL']);\n"
."STemplate::assign('flvdourl', \$config['FLVDO_URL']);\n"
."STemplate::assign('tmburl', \$config['TMB_URL']);\n"
."STemplate::setCompileDir(\$config['basedir']."/templates_c");\n"
."STemplate::setTplDir(\$config['basedir']."/templates");\n";
fputs ($fp,$sp);
fputs ($fp,"?>");
fclose ($fp);
header("Location: index.php?step=3");
}
}
include("database.tpl");
} elseif ($_REQUEST['step']==3) {
include("../include/config.php");
include("../classes/SFile.php");
echo "<table width='96%' border='0' cellspacing='2' cellpadding='2' align='center'>
<tr>
<td width=100%>
<u>Configuring Database</u>
";
include("run_sql.php");
if($error=="true") {
echo "Sorry, error occured during installing database defination.
Please check database settings in conn.php file again.
<font color='red'>
It may occur also if the tables already present in the database.</font>
";
echo "
<form name='yesgo' method='POST' action='index.php'>
<input type='submit' class='button_red' name='submit' value='Retry Installing'>
<input type='hidden' name='step' value='2'>
</form>";
} else {
echo "Database has been set up successfully.
Your admin username and password is :
Username : admin
Password : buyscripts
You can login to the admin area $config[baseurl]/siteadmin.";
$server_vars = <<<EOT
BuyScripts YouTube Clone installed at:
SERVER_NAME : {$_SERVER["SERVER_NAME"]}
HTTP_HOST : {$_SERVER["HTTP_HOST"]}
SERVER_ADDR: {$_SERVER["SERVER_ADDR"]}
EOT;
mail("[email protected]","YouTube clone installed","$server_vars");
}
echo "
</td></tr>";
echo "<tr>
<td colspan='2' bgcolor='#666666'></td>
</tr></table>";
}
include("footer.tpl");
ob_end_flush();
?>
Bookmarks