All pastes #2089705 Raw Edit

main.php

public text v1 · immutable
#2089705 ·published 2011-10-13 12:05 UTC
rendered paste body
    <?php
    include('codebase-php\bot_api.php');
    include('codebase-php\Utils.php');
    include('codebase-php\LocalDataClass.php');
    include('codebase-php\BotClass.php');
    include('codebase-php\GetSettingsFromXml.php');
    set_include_path(get_include_path() . PATH_SEPARATOR . "codebase-php");
    $bot = new Bot();
     
AutoStart($argv);

include('Plugins\Units\coin_class.php');

$tp = new coinPlugin();
if (isset($getP['action'])) {
	if ($getP['action'] == 'refresh') {
		$tp->ld->userId = $CurrentUserId;
		$tp->ld->EasyConnect();
		$tp->GetForm();
	} 
	if ($getP['action'] == 'save') {
		$tp->ld->userId = $CurrentUserId;
		$tp->ld->EasyConnect();
		$tp->Save($postdata);
	} 
} 

?>