المشاركة الأصلية كتبت بواسطة ابو راشد
هذا محتويات ملف cmps_index.php للسيرفر المحلي :
كود PHP:
<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.2.0 (vB 3.6) - 22074
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 01:04, Sat Jun 17th 2006
// ||
// ++ ========================================================================++
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
define('VBA_SCRIPT', 'CMPS');
// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================
$forumpath = 'c:\appserv\www';
// ============================================
// No Further Editing Necessary!
// ============================================
if (!is_dir($forumpath))
{
echo '<center>المسار الذي وضعته غير صحيح ... فضلا راجع الشرح وصحح المسار<br>';
echo 'المسار المطلوب تصحيحة موجود في الملف<br><br>';
echo 'cmps_index.php <br><br>';
echo 'في السطر الثاني والعشرون<br><br>';
echo 'المزيد من المعلومات والمساعدة في العنوان التالي<br><br>';
echo 'www.mwadah.com<br><br>';
echo 'علما بأن المسار الصحيح كالتالي<br><br>';
if ($_SERVER['PATH_TRANSLATED'])
{
$path = $_SERVER['PATH_TRANSLATED'];
}
else if ($_SERVER['SCRIPT_FILENAME'])
{
$path = $_SERVER['SCRIPT_FILENAME'];
}
else
{
echo 'المعذرة ... لم نتمكن من تحديد المسار الصحيح';
}
echo substr($path, 0, (strlen($path) - 14));
exit;
}
chdir($forumpath);
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');
print_portal_output($home);
?>
تحياتي .
مواقع النشر (المفضلة)