Exemple #1
0
<?php

require_once dirname(__FILE__) . '/includes/system/config.php';
// classes
$dbInfo = new dbInfo();
$dbInfo->setHost('localhost');
$dbInfo->setUser('www-data');
$dbInfo->setPass('W3Wd@ta');
$dbInfo->setName('message');
$dm = new dm(false);
$dm->connectDb($dbInfo);
$dm->setVars('Message From Heaven', 'http://stoddart.message/', '/usr/local/www/data/message/');
$session = $dm->session();
$dm->setPaypalUser('sdk-three_api1.sdk.com');
// test = sdk-three_api1.sdk.com, live = ic3000_api1.q.com
$dm->setPaypalPwd('QFZCWN5HZM8VBG7Q');
// test = QFZCWN5HZM8VBG7Q, live = HM9HWZ6C8MGM5JPR
$dm->setPaypalSignature('A-IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU');
// test = A-IzJhZZjhg29XQ2qnhapuwxIDzyAZQ92FRP5dqBzVesOkzbdUONzmOU, live = Afzwki5kM8uclaP2ELeT59viD7-cAiKF71gyXndwl5alQmTaz-q5geM9
$dm->setPaypalMode('test');
// 'test' or 'live'
Exemple #2
0
<?php

require_once dirname(__FILE__) . '/includes/system/config.php';
// classes
$dbInfo = new dbInfo();
$dbInfo->setHost('localhost');
$dbInfo->setUser('www-data');
$dbInfo->setPass('W3Wd@ta');
$dbInfo->setName('');
$dm = new dm(false);
$dm->connectDb($dbInfo);
$dm->setVars('Data Modeler Site', 'http://stoddart.data_modeler/', '/usr/local/www/data/data_modeler/current/');
Exemple #3
0
<?php

require_once dirname(__FILE__) . '/includes/system/config.php';
// classes
$dbInfo = new dbInfo();
$dbInfo->setHost('localhost');
$dbInfo->setUser('www-data');
$dbInfo->setPass('W3Wd@ta');
$dbInfo->setName('jcr_2010');
$dm = new dm(false);
$dm->connectDb($dbInfo);
$dm->setVars('2010 Rankings', 'http://stoddart.comp_rankings/2010/', '/usr/local/www/data/comp_rankings/2010/');
Exemple #4
0
<?php

require_once dirname(__FILE__) . '/includes/system/config.php';
// classes
$dbInfo = new dbInfo();
$dbInfo->setHost('localhost');
$dbInfo->setUser('www-data');
$dbInfo->setPass('W3Wd@ta');
$dbInfo->setName('dogg');
$dm = new dm(false);
$dm->connectDb($dbInfo);
$dm->setVars('Familie Dogg', 'http://stoddart.dogg/', '/usr/local/www/data/familie_dogg/');
include 'includes/inc.login.php';
$location = end(explode('/', $_SERVER['PHP_SELF']));
Exemple #5
0
<?php

require_once dirname(__FILE__) . '/includes/system/config.php';
// classes
$dbInfo = new dbInfo();
$dbInfo->setHost('localhost');
$dbInfo->setUser('www-data');
$dbInfo->setPass('W3Wd@ta');
$dbInfo->setName('jcr_2012');
$dm = new dm(false);
$dm->connectDb($dbInfo);
$dm->setVars('2012 Rankings', 'http://jcr.stoddarthome.com/', '/usr/local/www/data/comp_rankings/2012/');
Exemple #6
0
<?php

require_once dirname(__FILE__) . '/includes/system/config.php';
// classes
$dbInfo = new dbInfo();
$dbInfo->setHost('localhost');
$dbInfo->setUser('root');
$dbInfo->setPass('');
$dbInfo->setName('jcr_2007');
$dm = new dm(false);
$dm->connectDb($dbInfo);
$dm->setVars('2007 Rankings', 'http://vm.comp_rankings/2007/', '/home/jon/www/misc/comp_rankings/2007/');
Exemple #7
0
<?php

require_once dirname(__FILE__) . '/includes/system/config.php';
// classes
$dbInfo = new dbInfo();
$dbInfo->setHost('localhost');
$dbInfo->setUser('root');
$dbInfo->setPass('');
$dbInfo->setName('');
$dm = new dm(false);
$dm->connectDb($dbInfo);
$dm->setVars('Data Modeler Site', 'http://vm.data_modeler/', '/home/jon/www/misc/data_modeler/current/');
Exemple #8
0
<?php

require_once dirname(__FILE__) . '/includes/system/config.php';
// classes
$dbInfo = new dbInfo();
$dbInfo->setHost('localhost');
$dbInfo->setUser('www-data');
$dbInfo->setPass('W3Wd@ta');
$dbInfo->setName('budget');
$dm = new dm(false);
$dm->connectDb($dbInfo);
$dm->setVars('Budget', 'http://stoddart.budget/', '/usr/local/www/data/budget/');
Exemple #9
0
<?php

// constants
define("OBJECT", "OBJECT", true);
define("ARRAY_A", "ARRAY_A", true);
define("ARRAY_N", "ARRAY_N", true);
// autoload classes
function __autoload($class_name)
{
    $file = dirname(__FILE__) . '/includes/class.' . $class_name . '.php';
    if (!is_file($file)) {
        $file = dirname(__FILE__) . '/includes/model/class.' . $class_name . '.php';
    }
    if (!is_file($file)) {
        $file = dirname(__FILE__) . '/includes/model/base/class.' . $class_name . '.php';
    }
    require_once $file;
}
// classes
$dbInfo = new dbInfo();
$dbInfo->setHost('localhost');
$dbInfo->setUser('root');
$dbInfo->setPass('');
$dbInfo->setName('');
$dm = new dm(false);
$dm->connectDb($dbInfo);
$dm->setVars('Data Modeler Site', 'http://local.web/dm/', 'c:/Program Files/Web/dm/');
Exemple #10
0
<?php

require_once dirname(__FILE__) . '/includes/system/config.php';
// classes
$dbInfo = new dbInfo();
$dbInfo->setHost('localhost');
$dbInfo->setUser('www-data');
$dbInfo->setPass('W3Wd@ta');
$dbInfo->setName('rankings');
$dm = new dm(false);
$dm->connectDb($dbInfo);
$dm->setVars('Rankings', 'http://rankings.stoddarthome.com/', '/usr/local/www/data/rankings/');
include 'includes/inc.login.php';