Beispiel #1
0
 static function checkSitenotice()
 {
     global $content;
     $siteNoticeClass = new siteNotice();
     $sitenotice = $siteNoticeClass->checkSiteNoticeRaw();
     if ($sitenotice) {
         $content->assign("alert", $sitenotice);
     }
 }
Beispiel #2
0
if (is_file('/data/project/xtools/public_html/configs/' . $lang . '.conf')) {
    $phptemp->load_config('/data/project/xtools/public_html/configs/' . $lang . '.conf', 'main');
    $content->load_config('/data/project/xtools/public_html/configs/' . $lang . '.conf', 'main');
} else {
    $phptemp->load_config('/data/project/xtools/public_html/configs/en.conf', 'main');
    $content->load_config('/data/project/xtools/public_html/configs/en.conf', 'main');
}
$phptemp->load_config('/data/project/xtools/public_html/pcount/configs/' . $lang . '.conf', 'pcount');
$content->load_config('/data/project/xtools/public_html/pcount/configs/' . $lang . '.conf', 'pcount');
$phptemp->assign("header", $phptemp->getConf('tool'));
$phptemp->assign("curlang", $lang);
$phptemp->assign("langlinks", $langlinks);
$phptemp->assign("source2", "//tools.wmflabs.org/xtools/pcount/source.php");
$uselang = $lang == "en" ? "" : "&uselang={$lang}";
$phptemp->assign("translate", "//tools.wmflabs.org/xtools/translate/index.php?usetool=Editcounter" . $uselang);
$siteNoticeClass = new siteNotice();
$sitenotice = $siteNoticeClass->checkSiteNoticeRaw();
if ($sitenotice) {
    $phptemp->assign("alert", $sitenotice);
}
require_once '/data/project/xtools/public_html/counter_commons/HTTP.php';
require_once '/data/project/xtools/public_html/counter_commons/Database.php';
require_once '/data/project/xtools/public_html/counter_commons/Functions.php';
require_once '/data/project/xtools/public_html/pcount/counter.php';
require_once '/data/project/xtools/Graph.php';
require_once '/data/project/xtools/database.inc';
$wgDBPort = 3306;
$wgDBUser = $toolserver_username;
$wgDBPass = $toolserver_password;
$fnc = new Functions();
if (!isset($_GET['name'])) {
Beispiel #3
0
require_once '/data/project/xtools/public_html/sitenotice.php';
$phptemp = new PHPtemp('/data/project/xtools/public_html/templates/main.tpl');
$content = new PHPtemp('/data/project/xtools/public_html/pcount/templates/pcount.tpl');
$language = new Language(array("en"));
$lang = $language->getLang();
$langlinks = $language->generateLangLinks();
$phptemp->load_config('/data/project/xtools/public_html/configs/' . $lang . '.conf', 'main');
$phptemp->load_config('/data/project/xtools/public_html/pcount/configs/' . $lang . '.conf', 'pcount');
$content->load_config('/data/project/xtools/public_html/configs/' . $lang . '.conf', 'main');
$content->load_config('/data/project/xtools/public_html/pcount/configs/' . $lang . '.conf', 'pcount');
$phptemp->assign("header", $phptemp->getConf('tool'));
$phptemp->assign("curlang", $lang);
$phptemp->assign("langlinks", $langlinks);
$phptemp->assign("source2", "//tools.wmflabs.org/xtools/pcount/source.php");
$phptemp->assign("translate", "//tools.wmflabs.org/xtools/pcount/translate.php");
$siteNoticeClass = new siteNotice();
$sitenotice = $siteNoticeClass->checkSiteNoticeHtml();
if ($sitenotice) {
    $phptemp->assign("alert", $sitenotice);
}
require_once '/data/project/xtools/public_html/counter_commons/HTTP.php';
require_once '/data/project/xtools/public_html/counter_commons/Database.php';
require_once '/data/project/xtools/public_html/counter_commons/Functions.php';
require_once '/data/project/xtools/public_html/pcount/counter.php';
require_once '/data/project/xtools/Graph.php';
require_once '/data/project/xtools/database.inc';
$wgDBPort = 3306;
$wgDBUser = $toolserver_username;
$wgDBPass = $toolserver_password;
$fnc = new Functions();
$http = new HTTP('//en.wikipedia.org/w/');