本文整理汇总了PHP中dm::setVars方法的典型用法代码示例。如果您正苦于以下问题:PHP dm::setVars方法的具体用法?PHP dm::setVars怎么用?PHP dm::setVars使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dm
的用法示例。
在下文中一共展示了dm::setVars方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
<?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'
示例2: dirname
<?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/');
示例3: dirname
<?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/');
示例4: dirname
<?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']));
示例5: dirname
<?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/');
示例6: __autoload
<?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/');
示例7: dirname
<?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';