الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مشكله في شبك قاعدة البيانات

بدأه ghassan2010 في 7 أبريل 2009 · 2 رد · 602 مشاهدة · في منتدى تطوير المواقع بـ PHP
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

اخوني الاعراء خبراء php السلام عليكم ورحمة الله وبركاتة

لن اطيل عليكم لدي مشكلة بملف php هذا هو الكود ارجو الافادة

علما بأن الخطاء بهذا السطر

 $Connect = _obfuscate_d2FvGCEwFSEpEm87Cgےے( $DBHostName, $DBUserName, $DBPassword );

session_start( );
session_destroy( );
$Sub_Level = "Visitor";
session_register( "Sub_Level" );
$TimeOut = time( );
session_register( "TimeOut" );
error_reporting( E_ALL & ~E_NOTICE );
include( "config.php" );
$Connect = _obfuscate_d2FvGCEwFSEpEm87Cgےے( $DBHostName, $DBUserName, $DBPassword );
/$Select = _obfuscate_dV8nHXo4cm0pXD41cWds( $DBName, $Connect );
if ( $Select != 1 )
{
    include( "error_db.php" );
    exit( );
}
$Res = _obfuscate_CXIZARoUBQt7HD8ے( "SELECT * FROM school where ID='1'" );
while ( $row = _obfuscate_O2ZrZHdmeCMoBxN4aCBjPS8ے( $Res ) )
{
    $Crnt_Style_ID = $row[Style];
    $Web_Title = $row[Web_Title];
}
if ( !$Crnt_Style_ID )
{
    $Crnt_Style_ID = 1;
}
$Res = _obfuscate_CXIZARoUBQt7HD8ے( "SELECT * FROM styles where ID='".$Crnt_Style_ID."'" );
while ( $row = _obfuscate_O2ZrZHdmeCMoBxN4aCBjPS8ے( $Res ) )
{
    $folder = $row[Folder_Name];
}
session_register( "folder" );
session_register( "Crnt_Style_ID" );
include( "styles/".$folder."/colors.php" );
include( "functions.php" );
echo "\r\n<script>\r\n//==========================================\r\nfunction viewfile(cellid,file,IndexPopUpWidth,IndexPopUpHeight)\r\n{\r\nvar User='".$Sub_UserName."';\r\nIndexPopUpLeft=((screen.availWidth-IndexPopUpWidth)/2);\r\nIndexPopUpTop=((screen.availHeight-IndexPopUpHeight)/2);\r\nwindow.open (file+'?User='+User,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=no,width=' + IndexPopUpWidth + ',height=' + IndexPopUpHeight + ',left=' + IndexPopUpLeft + ',top= ' + IndexPopUpTop)\r\n}\r\n//==========================================\r\nfunction GoTo(PageID,File)\r\n{\r\nwindow.I1.location='modules.php?File_Name='+File+'&Page_ID='+PageID;\r\n}\r\n//==========================================\r\nfunction movein(CellID)\r\n{\r\nCellID.style.cursor='Hand' \r\n} \r\n//==========================================\r\nfunction movein4(CellID)\r\n{\r\n CellID.style.cursor='Hand';\r\n CellID.style.color='#ffff33';\r\n \r\n} \r\n\r\nfunction moveout4(CellID)\r\n {\r\n CellID.style.color='#000000'\r\n \r\n }\r\n//===========Resize IFrame==================\r\nfunction calcHeight()\r\n{\r\n var the_height=\r\n document.getElementById('the_iframe').contentWindow.\r\n document.body.scrollHeight;\r\n document.getElementById('the_iframe').height=\r\n the_height+20*1;\r\n}\r\n</SCRIPT>\r\n";
$R_Blocks = _obfuscate_NhIpZRcTeGsSdiMwYH1qazQZKWkے( "blocks_r.php" );
$L_Blocks = _obfuscate_NhIpZRcTeGsSdiMwYH1qazQZKWkے( "blocks_l.php" );
$Res = _obfuscate_CXIZARoUBQt7HD8ے( "SELECT * FROM templates where Style_ID='".$Crnt_Style_ID."' order by ID" );
while ( $row = _obfuscate_O2ZrZHdmeCMoBxN4aCBjPS8ے( $Res ) )
{
    $Template_Title = "{$row['Title']}";
    $Template_Title = _obfuscate_JXo0ZGAz( "{$row['Code']}" );
}
echo "\r\n<TITLE>:: ".$Web_Title." ::</TITLE>\r\n<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1256'>\r\n<BODY dir=rtl LEFTMARGIN=0 TOPMARGIN=2 bgcolor={$home_bgcolor} BottomMargin=2 MARGINWIDTH=0 MARGINHEIGHT=0";
if ( $version == "demo" )
{
    echo " onload=\" viewfile('','demo.php',320,380)\" ";
}
echo ">";
echo "{$Home}";
if ( $PageID )
{
    $Res = _obfuscate_CXIZARoUBQt7HD8ے( "SELECT * FROM show_ where ID='".$PageID."'" );
    while ( $row = _obfuscate_O2ZrZHdmeCMoBxN4aCBjPS8ے( $Res ) )
    {
        $Page_To_Go = "{$row['Page_To_Go']}";
    }
    echo "<script>GoTo('".$PageID."','{$Page_To_Go}')</script>";
}
?>

تم تعديل هذه المشاركة بواسطة bastr3 في 30 ديسمبر 2011 في 10:21

#2

المشكلة في الاتصال بقاعدة البيانات

Obfuscation شي مزعج!

php5-zce-logo-new.gif

CCNA, CCNA Security, CCNP

#3

$Connect = _obfuscate_d2FvGCEwFSEpEm87Cgےے( $DBHostName, $DBUserName, $DBPassword ); ===

أخي الكريم استبدله بهذا السطر

$Connect = mysql_connect( $DBHostName, $DBUserName, $DBPassword );

أما هذا:

$Select = _obfuscate_dV8nHXo4cm0pXD41cWds( $DBName, $Connect );

فاستبدله بهذا

$Select = mysql_select_db( $DBName, $Connect );

أعتقد هذا من ملف انديكس سكربت المدرسة إن لم أكن محطئ؟

تم تعديل هذه المشاركة بواسطة Fi®e W@ll في 30 ديسمبر 2011 في 01:37

مواضيع مشابهة