انا عندي حل لمشكله سيف مود ،،
هذا كود ملف index.php تبع تنصيب السكربت مو مشفر الفكره هي قبل تنصيب الجداول وتركيب البرنامج لازم يكون سيف مود مقفل رحت اللغيت هذا الخيار من ملف التنصيب وراح ينصب لك برنامج بدون مشاكل ان شاء الله هذا مجرد فكره 
الكود :
كود PHP:
<?
/*======================================*/
/*= This Script is Decrypt by VoDanh =*/
/*======================================*/
class checker
{
var $errors = null;
var $rows = null;
function checker ()
{
$this->errors = array ();
$rows = array ();
//$rows[] = $this->getRow ('Safe mode off:', $this->safeModeOn ());
$rows[] = $this->getRow ('Enabled FTP:', $this->ftpOn ());
$rows[] = $this->getRow ('DB config file:', $this->ftpOn ());
$rows[] = $this->getRow ('GD library:', $this->gdOn ());
$this->rows = $rows;
}
function getrow ($title, $passed = true)
{
$css = 'green';
$img = 'passed.gif';
$msg = 'Passed';
if (!$passed)
{
$css = 'red';
$img = 'failed.gif';
$msg = 'Failed';
}
return '<tr>
<td><span class="texts_normal"> ' . $title . '</b></td>
<td class="' . $css . '" align="middle">' . $msg . '</td>
<td align="middle"><img src="images/' . $img . '" alt=""/></td>
</tr>';
}
/*function safemodeon ()
{
if ((((ini_get ('safe_mode') == 1 OR ini_get ('safe_mode') == 'On') OR ini_get ('safe_mode') == 'on') OR ini_get ('safe_mode') == 'ON'))
{
$this->errors[] = 'Safe mode is on';
return false;
}
else
{
return true;
}
} */
function ftpon ()
{
return extension_loaded ('ftp');
}
function dbfile ()
{
$db_file = '../cowadmin/siteconfig/commons.php';
if (!file_exists ($db_file))
{
$this->errors[] = 'Database config file doesn\'t exists';
return false;
}
if (!is_writable ($db_file))
{
$this->errors[] = 'Database config file is not writable, please CHMOD file to 666';
return false;
}
return true;
}
function gdon ()
{
if (!extension_loaded ('gd'))
{
$this->errors[] = 'GD library is not installed';
return false;
}
$funcs = array_flip (get_extension_funcs ('gd'));
if (!isset ($funcs['imagejpeg']))
{
$this->errors[] = 'GD library is not installed correctly, JPEG support is not enabled';
return false;
}
return true;
}
function getrows ()
{
return implode ('
', $this->rows);
}
function geterrors ()
{
return $this->errors;
}
}
error_reporting (0);
session_name ('is');
session_start ();
$check = &new checker ();
echo '<!DOCtype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>PHPCow Installer</title>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta content="NOFOLLOW" NAME="ROBOTS">
<link rel="stylesheet" type="text/css" href="./css/style.css">
</head>
<body>
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><div class="border_di';
echo 'v"><img src="images/header.gif" alt=""></div></td>
</tr>
<tr><td> </td></tr>
<tr>
<td class="header_td">
System check
</td>
</tr>
<tr>
<td bgcolor="#EFEFEF" class="border_div">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr bgcolor="#666666">
<td align="left" width="60%">';
echo '<s';
echo 'pan class="texts_normal_bold"> Feature</span></td>
<td align="middle" width="20%">';
echo '<s';
echo 'pan class="texts_normal_bold">Message</span></td>
<td align="middle" width="20%">';
echo '<s';
echo 'pan class="texts_normal_bold">Status </span></td></tr>
<tr>
';
echo $check->getRows ();
if (!$check->getErrors ())
{
$GLOBALS['_SESSION']['allowed'] = true;
echo ' <tr><td bgcolor="#666666" height="1px" colspan="3"></td></tr>
<tr>
<td align="center" colspan="3">
<a href="step1.php">
<img src="images/install.gif" class="img_border" vspace="12" hspace="48" alt="Install"/>
</a>
</td>
<tr>
';
}
echo ' </table>
</td>
</tr>
</table>
<p align="center">
PHPCow, Inc. © 2003-2006 All rights reserved.
</p>
</body>
</html>
';
?>
التغير بس في اللغاء داله تاكد من السيف مود قبل تنصيب البرنامج اللغيت هذا الكود :
كود PHP:
//$rows[] = $this->getRow ('Safe mode off:', $this->safeModeOn ());
بعلامه // ،،
وداله التاكد :
كود PHP:
/*function safemodeon ()
{
if ((((ini_get ('safe_mode') == 1 OR ini_get ('safe_mode') == 'On') OR ini_get ('safe_mode') == 'on') OR ini_get ('safe_mode') == 'ON'))
{
$this->errors[] = 'Safe mode is on';
return false;
}
else
{
return true;
}
} */
وسلام عليكم