Please have a look at the following picture for developing a plugin

Admin Plugin files initialization
You may need to initialize each php files for admin plugin with the following code
< br />
<?php
//////////////////////////////////////////////////////////
session_start();
include ("../../../include/file40.php");
$lang_code=$_SESSION[lang_code];
include("../../../languages/".$lang_code.".inc.php");
include_once("../../../config.php");
include_once("../../../include/file51.php");
//////////////////////////////////////////////////////////
$filename="lang/".$lang_code.".inc.php";
if(file_exists($filename)){
include($filename);
}
else
{
include('lang/en.inc.php');
}
/////////////////////////////////////////////////////////
?>
User Plugin files initialization
You may need to initialize each php files for user plugin with the following code
<?php
//////////////////////////////////////////////////////////
session_start();
include ("../../../include/file70.php");
$lang_code=$_SESSION[lang_code];
$userid=$_SESSION[uid];
include("../../../languages/".$lang_code.".inc.php");
include_once("../../../config.php");
include_once("../../../include/file51.php");
//////////////////////////////////////////////////////////
$filename="lang/".$lang_code.".inc.php";
if(file_exists($filename)){
include($filename);
}
else
{
include('lang/en.inc.php');
}
//////////////////////////////////////////////////////////
?>
If you have further questions please go to http://forum.vcpanel.net/
Copyright © 2009 doc.vcpanel.net. All Rights Reserved.