Fatal error: Call to undefined function: run() in /home/sites/site7/web/forex/index.php on line 97
<?
include_once('global_conf.php');
include_once('sources/lib/crypter.php');
include_once('sources/lib/stringtool.php');
include_once('sources/lib/mysql.php');
include_once('sources/register_form.php');
include_once('sources/register.php');
include_once('sources/error.php');
include_once('sources/login.php');
include_once('sources/password.php');
include_once('sources/affiliate.php');
include_once('sources/faq.php');
include_once('sources/vote.php');
include_once('sources/about.php');
include_once('sources/contact.php');
include_once('sources/agreement.php');
include_once('sources/rule.php');
include_once('skin/layout.php');
include_once('skin/boxes.php');
$db_handler=new mysql(); // Database Handler
class index
{
//-------------------------------------------------
// Get content of index page
function get_content()
{
$sql="select * from CONFIG";
$res=mysql_query($sql) or die (mysql_error());
while ($row=mysql_fetch_row($res)) {
$vari=$row[0];
$config_list[$vari]=$row[1];
}
$ref=$_REQUEST['ref'];
$perc=$config_list['PAY_LENGTH']*$config_list['PAY_TIMES'];
$result.="<table width=100% cellspacing=0 cellpadding=0 border=0><tr><td background=includes/pixel.gif height=2></td></tr></table>\n";
$result.="<p><span class=heading_small>'Don't ever trust your fund to be managed by inexperienced traders since your fund will be used to experiment with untried formulas'</span><br><br>\n";
$result.="<p><span class=heading_small>foreXP</span> was created and it is maintained by a strong and experienced team. Three of us are analysts who have lots of experience in their respective field for more than five years, four are intelligent traders, two are financial experts and the rest are shareholders who invest their capital as reserve fund. Our CEO is a very comprehensive and honest generalist.<br><br>\n";
$result.="After observing our own performance for almost two years, we conclude that we are prepared indeed to take care of any difficulties.<br><br> \n";
$result.="Now we are ready to share our experience and capabilities with you. We offer an attractive profit sharing without disregarding the rational and risk aspects of business. We can say that our program gives substantial profit and safety.\n";
$result.="It is simply amazing. You will get a ". $config_list['PAY_RATE']."% profit, seven days a week.<br><br>\n";
$result.="We have made an accurate calculation that this profit sharing is on the lowest level of risk. Several emergency backup strategies
have been developed in order to make sure we never lose a dime our customers put
in our program. So there is no doubt about the safety of our program.<br><br>\n";
$result.="<table width=100% cellspacing=0 cellpadding=0 border=0><tr><td background=includes/pixel.gif height=2></td></tr></table>\n";
$result.="<span class=heading_small>Our program has many different features:</span><br><img src=includes/blank.gif width=10 height=5><br>\n";
$result.="<img src=includes/dot.gif>Automatic Instant Withdrawls<br>\n";
$result.="<img src=includes/dot.gif>You got Full Feature Members Area<br>\n";
$result.="<img src=includes/dot.gif>You can invest any amount you want, starting from $20<br><img src=includes/blank.gif width=1 height=3><br>\n";
$result.="<img src=includes/dot.gif>You can make as many deposits as you like<br><img src=includes/blank.gif width=1 height=3><br>\n";
//---$result.="<img src=includes/dot.gif>You should usually earn ". $config_list['PAY_RATE']."% a day<br><img src=includes/blank.gif width=1 height=3><br>\n";
//---$result.="<img src=includes/dot.gif>We have a live estimated daily interest indicator<br><img src=includes/blank.gif width=1 height=3><br>\n";
$result.="<img src=includes/dot.gif>You can also have your daily interest added to your deposit(s) and make extra interest on it<br><img src=includes/blank.gif width=1 height=3><br>\n";
$result.="<img src=includes/dot.gif>You can refer other people and earn extra commissions ". $config_list['REFERRAL_RATE']."% on every spend they make.<br><img src=includes/blank.gif width=1 height=3><br>\n";
$result.="<center>\n";
$result.=" <img src=includes/blank.gif width=10 height=20><br>\n";
$result.=" <a href='index.php?action=114102105108119121107121103111121125121&ref=".$ref."'><img src=includes/becomemember.jpg border=0></a><br>\n";
$result.=" <img src=includes/blank.gif width=10 height=20><br>\n";
$result.="</center>\n";
$result.="<img src=includes/blank.gif width=10 height=10><br>\n";
return $result;
}
//-------------------------------------------------
// Main entry
function run()
{
// Common library vars
$crypter=new crypter();
$str_tool=new string_tool();
// Get action
$action=$_REQUEST['action'];
$action=$crypter->number_decrypt($action);
// echo $crypter->number_crypt("agreement");
// Dispatch action
switch ($action)
{
case 'register_form':
$register_form=new register_form();
$register_form->run();
break;
case 'register':
$register=new register();
$register->run();
break;
case 'login':
$login=new login();
$login->run();
break;
case 'forgot_pass':
case 'forgot_pass_form':
$password=new password();
$password->run();
break;
case 'affiliate':
$affiliate=new affiliate();
$affiliate->run();
break;
case 'faq':
$faq=new faq();
$faq->run();
break;
case 'vote':
$vote=new vote();
$vote->run();
break;
case 'contact':
$contact=new contact();
$contact->run();
break;
case 'about':
$about=new about();
$about->run();
break;
case 'agreement':
$agreement=new agreement();
$agreement->run();
break;
case 'rule':
$rule=new rule();
$rule->run();
break;
default:
$layout=new layout();
$boxes=new boxes();
// Make menu
$menu=$boxes->login_box();
$menu.="<img src=includes/blank.gif width=10 height=15><br>\n";
$menu.=$boxes->navigator_box();
$menu.="<img src=includes/blank.gif width=10 height=15><br>\n";
$menu.=$boxes->statictics_box();
$menu.="<img src=includes/blank.gif width=10 height=15><br>\n";
// Make output
$output=$layout->get_layout();
$output=$str_tool->replace_string($output,"<!-- CONTENT -->",$this->get_content());
$output=$str_tool->replace_string($output,"<!-- MENU -->",$menu);
echo $output;
break;
}
}
}
/////////////////////////////////////////////
// START POINT
/////////////////////////////////////////////
//-------------------------------------------------
// Load config
function load_config()
{
global $global_config;
global $db_handler;
// Query database
$db_query=new mysql_query();
ob_start();
$query_id=$db_query->make_query($db_handler,"select id,value from CONFIG");
ob_end_clean();
if (!$query_id)
{
$error=new error();
$error->run(mysql_error());
exit;
}
// Make config
for ($i=0;$i<$db_query->num_rows();$i++)
{
$row=$db_query->get_row();
if ($row)
$global_config[$row['id']]=$row['value'];
}
}
// Prepare database connection
$crypter=new crypter();
ob_start();
$db_handler->open($DB_HOST,$crypter->number_decrypt($DB_USER),$crypter->number_decrypt($DB_PASS),$DB_NAME);
ob_end_clean();
if (!$db_handler->connect_id)
{
$error=new error();
$error->run("MYSQL ERROR: ".mysql_error());
exit;
}
// Prepare database connection
$crypter=new crypter();
ob_start();
$db_handler->open($DB_HOST,$crypter->number_decrypt($DB_USER),$crypter->number_decrypt($DB_PASS),$DB_NAME);
ob_end_clean();
if (!$db_handler->connect_id)
{
$error=new error();
$error->run("MYSQL ERROR: ".mysql_error());
exit;
}
// Load config
load_config();
// Lauch index class
$index=new index();
$index->run();
// Close database connection
ob_start();
$db_handler->close();
ob_end_clean();
?>