Ejemplo n.º 1
0
 public static function servers()
 {
     $servers = array();
     // built-in servers
     $servers['ggcoupon.com']['name'] = 'ggCoupon.com';
     $servers['ggcoupon.com']['config'] = IDIR . '/feedservers/ggCoupon.com.php';
     // user plugins
     foreach (\query\main::user_plugins('feed_server') as $server) {
         $servers['up_' . strtolower($server->name)]['name'] = $server->name;
         $servers['up_' . strtolower($server->name)]['config'] = UPDIR . '/' . $server->main_file;
     }
     return $servers;
 }
Ejemplo n.º 2
0
 public static function gateways()
 {
     $gateways = array();
     // built-in payment gateways
     $gateways['paypal']['name'] = 'PayPal';
     $gateways['paypal']['image'] = $GLOBALS['siteURL'] . DEFAULT_IMAGES_LOC . '/paypal.png';
     $gateways['paypal']['adapter'] = IDIR . '/paygateways/Paypal.php';
     // user plugins
     foreach (\query\main::user_plugins('pay_gateway') as $pgateway) {
         $gateways[strtolower($pgateway->name)]['name'] = $pgateway->name;
         $gateways[strtolower($pgateway->name)]['image'] = $GLOBALS['siteURL'] . $pgateway->image;
         $gateways[strtolower($pgateway->name)]['adapter'] = UPDIR . '/' . $pgateway->main_file;
     }
     return $gateways;
 }
Ejemplo n.º 3
0
 public static function languages()
 {
     $lang = array();
     // built-in languages
     $lang['english']['name'] = 'English';
     $lang['english']['image'] = $GLOBALS['siteURL'] . DEFAULT_IMAGES_LOC . '/US.png';
     $lang['english']['location'] = LDIR . '/english.php';
     $lang['romanian']['name'] = 'Româna';
     $lang['romanian']['image'] = $GLOBALS['siteURL'] . DEFAULT_IMAGES_LOC . '/Romania.png';
     $lang['romanian']['location'] = LDIR . '/romanian.php';
     // user plugins
     foreach (\query\main::user_plugins('language') as $ulang) {
         $lang['up_' . strtolower($ulang->name)]['name'] = $ulang->name;
         $lang['up_' . strtolower($ulang->name)]['image'] = $GLOBALS['siteURL'] . $ulang->image;
         $lang['up_' . strtolower($ulang->name)]['location'] = UPDIR . '/' . $ulang->main_file;
     }
     return $lang;
 }
Ejemplo n.º 4
0
}
if ($GLOBALS['me']->is_admin && template::have_widgets()) {
    $nav['widgets.php']['primary']['name'] = '<a href="?route=widgets.php">' . $LANG['widgets'] . '</a>';
    $nav['widgets.php']['primary']['.class'] = 'widgets';
}
if (ab_to(array('raports' => 'view'))) {
    $nav['clicks.php']['primary']['name'] = '<a href="?route=clicks.php">' . $LANG['ratings'] . '</a>';
    $nav['clicks.php']['primary']['.class'] = 'raports';
    $nav['clicks.php']['list'] = '<a href="?route=clicks.php&amp;action=list">' . $LANG['ratings_clicks'] . '</a>';
}
if ($GLOBALS['me']->is_admin) {
    $nav['plugins.php']['primary']['name'] = '<a href="?route=plugins.php">' . $LANG['plugins'] . '</a>';
    $nav['plugins.php']['primary']['.class'] = 'plugins';
    $nav['plugins.php']['install'] = '<a href="?route=plugins.php&amp;action=install">' . $LANG['plugins_install'] . '</a>';
    $nav['plugins.php']['list'] = '<a href="?route=plugins.php&amp;action=list">' . $LANG['plugins_view'] . '</a>';
    foreach (\query\main::user_plugins(false, 'menu') as $plugin) {
        $plugin_dir = dirname($plugin->main_file);
        $nav[$plugin_dir]['primary']['name'] = '<a href="?plugin=' . $plugin->main_file . '">' . $plugin->name . '</a>';
        $nav[$plugin_dir]['primary']['.class'] = 'plugin' . $plugin->menu_icon;
        if (isset($plugin->vars['menu_add'])) {
            foreach ($plugin->vars['menu_add'] as $subnavp) {
                $nav[$plugin_dir][] = '<a href="?plugin=' . $subnavp['url'] . '">' . $subnavp['title'] . '</a>';
            }
        }
    }
    $nav['settings.php']['primary']['name'] = '<a href="?route=settings.php">' . $LANG['settings'] . '</a>';
    $nav['settings.php']['primary']['.class'] = 'settings';
    $nav['settings.php']['primary']['others'] = 'banned.php';
    $nav['settings.php']['general'] = '<a href="?route=settings.php&amp;action=general">' . $LANG['settings_general'] . '</a>';
    $nav['settings.php']['meta'] = '<a href="?route=settings.php&amp;action=meta">' . $LANG['settings_metatags'] . '</a>';
    $nav['settings.php']['seolinks'] = '<a href="?route=settings.php&amp;action=seolinks">' . $LANG['settings_seolinks'] . '</a>';