السلام عليكم ورحمة الله،
أترك الصور تعبر عن النظام
برمجته في نصف يوم + نصف يوم
النظام محدود بس قابل للتطوير،
كنت بأعمله بشكل أكبر جدا لكن للأسف الدراسة تبدأ غدا، والدراسة = باي النت
التحميل بالمرفقات،
طريقة التركيب:
->قم برفع الملفات المرفقة كما هي مرتبة،
-> قم بفتح الملف function.php الموجود بالمجلد includes وأضف به قبل انتهاء الكلاس:
شيفره برمجيه :
رمز PHP:
/***********Product Function By MeD Cherkaoui->THE-PHP-LOVER ****************/
function exe_xml($xml)
{
// Check Product file if exists
if(!file_exists("../$xml"))
{
$this->msg("مسار الملف المدخل خاطئ");
} elseif(file_exists("../$xml"))
{
// Get file contents
$xml = file_get_contents("../$xml");
// Get product title
eregi("(.*)",$xml,$product);
$product = $product[0];
$product = preg_replace("#(.*)#si","$1",$product);
//DESC
eregi("(.*)",$xml,$desc);
$desc = $desc[0];
$desc = preg_replace("#(.*)#si","$1",$desc);
// Get install code
eregi("(.*)",$xml,$install);
$install_normal = $install[0];
$install = $install[0];
$install = preg_replace("#(.*)#si","$1",$install);
$install = str_replace("",">",$install);
//$install = str_replace("'",'{sq}',$install);
//Query
$install_code = $install;
$install_code = str_replace('','',$install_code);
@mysql_query($install_code) or die("Error In Query N1:".mysql_error()."");
// Get file
eregi("(.*)",$xml,$file);
$file = $file[0];
$file = str_replace("",'',$file);
$file = str_replace("",'',$file);
//Get phpcode or plugin
eregi("(.*)",$xml,$php);
$phpcode = $php[0];
$phpcode = str_replace('','',$phpcode);
$phpcode = str_replace("'",'{sq}',$phpcode);
$phpcode = str_replace("",'',$phpcode);
$phpcode = str_replace("",'',$phpcode);
//add the product
@mysql_query("INSERT INTO PRODUCT set
product = '$product',
install = '$install',
file = '$file',
phpcode = '$phpcode',
descr = '$desc'
") or die("Error In Query N2 :".mysql_error()."");
$this->msg("تم استيراد الهاك المحدد بنجاح");
}
}
-> افتح الملف common.php وأضف في آخره :
شيفره برمجيه :
رمز PHP:
-> قم بفتح الملف menu.tpl بقوالب الإدارة وأضف به:
رمز PHP:
إضافة/تحكم بالمنتجات
استيراد منتج
---
-> قم باستعراض الملف product_install.php على المتصفح،
وتمتع بالنظام ويريت لا أحد يزيد الحقوق، اي خطا يرجى التبليغ
تمت البرمجة بواسطة محمد الشرقاوي (THE-PHP-LOVER)
مأخووذ من موضوعي في ماي سمارت بي بي:
http://www.mysmartbb.com/forums/show...0&page=0#72266
الملفات المرفقة
product.zip (5.4 كيلوبايت)
أترك الصور تعبر عن النظام
برمجته في نصف يوم + نصف يوم
النظام محدود بس قابل للتطوير،
كنت بأعمله بشكل أكبر جدا لكن للأسف الدراسة تبدأ غدا، والدراسة = باي النت
التحميل بالمرفقات،
طريقة التركيب:
->قم برفع الملفات المرفقة كما هي مرتبة،
-> قم بفتح الملف function.php الموجود بالمجلد includes وأضف به قبل انتهاء الكلاس:
شيفره برمجيه :
رمز PHP:
/***********Product Function By MeD Cherkaoui->THE-PHP-LOVER ****************/
function exe_xml($xml)
{
// Check Product file if exists
if(!file_exists("../$xml"))
{
$this->msg("مسار الملف المدخل خاطئ");
} elseif(file_exists("../$xml"))
{
// Get file contents
$xml = file_get_contents("../$xml");
// Get product title
eregi("(.*)",$xml,$product);
$product = $product[0];
$product = preg_replace("#(.*)#si","$1",$product);
//DESC
eregi("(.*)",$xml,$desc);
$desc = $desc[0];
$desc = preg_replace("#(.*)#si","$1",$desc);
// Get install code
eregi("(.*)",$xml,$install);
$install_normal = $install[0];
$install = $install[0];
$install = preg_replace("#(.*)#si","$1",$install);
$install = str_replace("",">",$install);
//$install = str_replace("'",'{sq}',$install);
//Query
$install_code = $install;
$install_code = str_replace('','',$install_code);
@mysql_query($install_code) or die("Error In Query N1:".mysql_error()."");
// Get file
eregi("(.*)",$xml,$file);
$file = $file[0];
$file = str_replace("",'',$file);
$file = str_replace("",'',$file);
//Get phpcode or plugin
eregi("(.*)",$xml,$php);
$phpcode = $php[0];
$phpcode = str_replace('','',$phpcode);
$phpcode = str_replace("'",'{sq}',$phpcode);
$phpcode = str_replace("",'',$phpcode);
$phpcode = str_replace("",'',$phpcode);
//add the product
@mysql_query("INSERT INTO PRODUCT set
product = '$product',
install = '$install',
file = '$file',
phpcode = '$phpcode',
descr = '$desc'
") or die("Error In Query N2 :".mysql_error()."");
$this->msg("تم استيراد الهاك المحدد بنجاح");
}
}
-> افتح الملف common.php وأضف في آخره :
شيفره برمجيه :
رمز PHP:
include('includes/product.php');
-> قم بفتح الملف menu.tpl بقوالب الإدارة وأضف به:
رمز PHP:
إضافة/تحكم بالمنتجات
استيراد منتج
---
-> قم باستعراض الملف product_install.php على المتصفح،
وتمتع بالنظام ويريت لا أحد يزيد الحقوق، اي خطا يرجى التبليغ
تمت البرمجة بواسطة محمد الشرقاوي (THE-PHP-LOVER)
مأخووذ من موضوعي في ماي سمارت بي بي:
http://www.mysmartbb.com/forums/show...0&page=0#72266
الملفات المرفقة
محتوى مغلق ومقيد بالنخبة
عزيزي الزائر، لمشاهدة الشارت الفني المباشر، رصد السيولة، وتحديثات الاستشراف المالي الكاملة، يرجى تسجيل الدخول أو فتح حساب جديد مجاناً في أقل من 30 ثانية.