コード例 #1
0
ファイル: links.php プロジェクト: Jimmi08/links_page
    e107::redirect();
    exit;
}
$link_shortcodes = e107::getScBatch('links_page', TRUE);
require_once e_PLUGIN . 'links_page/link_defines.php';
require_once e_HANDLER . "userclass_class.php";
$eArrayStorage = e107::getArrayStorage();
$db = e107::getDb();
$mes = e107::getMessage();
require_once e_HANDLER . "form_handler.php";
$rs = new form();
require_once e_HANDLER . "file_class.php";
$fl = new e_file();
$cobj = e107::getComment();
require_once e_PLUGIN . 'links_page/link_class.php';
$lc = new linkclass();
global $tp;
$linkspage_pref = e107::pref('links_page');
$deltest = array_flip($_POST);
$from = "0";
if (e_QUERY) {
    $qs = explode(".", e_QUERY);
    // needed to have less regex
    $qs = array_filter($qs, 'strlen');
    if (is_numeric($qs[0])) {
        $from = array_shift($qs);
    } else {
        $from = "0";
    }
}
e107::lan('links_page');
コード例 #2
0
ファイル: link_menu.php プロジェクト: Jimmi08/links_page
<?php

if (!defined('e107_INIT')) {
    exit;
}
if (!e107::isInstalled('links_page')) {
    e107::redirect();
}
unset($text);
require_once e_PLUGIN . 'links_page/link_class.php';
$lc = new linkclass();
require_once e_HANDLER . "form_handler.php";
$rs = new form();
$tp = e107::getParser();
e107::lan('links_page');
$bullet = '';
if (defined('BULLET')) {
    $bullet = '<img src="' . THEME_ABS . 'images/' . BULLET . '" alt="" style="vertical-align: middle;" />';
} elseif (file_exists(THEME . 'images/bullet2.gif')) {
    $bullet = '<img src="' . THEME_ABS . 'images/bullet2.gif" alt="" style="vertical-align: middle;" />';
}
$linkspage_pref = e107::pref('links_page');
//navigator -------------------------
$mains = "";
$text = "";
$baseurl = e107::url('links_page', 'index');
if (isset($linkspage_pref['link_menu_navigator_frontpage']) && $linkspage_pref['link_menu_navigator_frontpage']) {
    if (isset($linkspage_pref['link_menu_navigator_rendertype']) && $linkspage_pref['link_menu_navigator_rendertype'] == "1") {
        $mains .= $rs->form_option(LAN_LINKS_14, "0", $baseurl, "");
    } else {
        $mains .= $bullet . " <a href='" . $baseurl . "'>" . LAN_LINKS_14 . "</a><br />";
コード例 #3
0
ファイル: link_menu.php プロジェクト: notzen/e107
<?php

if (!defined('e107_INIT')) {
    exit;
}
if (!plugInstalled('links_page')) {
    return '';
}
unset($text);
require_once e_PLUGIN . 'links_page/link_class.php';
$lc = new linkclass();
require_once e_HANDLER . "form_handler.php";
$rs = new form();
global $tp;
include_lan(e_PLUGIN . "links_page/languages/" . e_LANGUAGE . ".php");
//TODO review bullet
$bullet = '';
if (defined('BULLET')) {
    $bullet = '<img src="' . THEME . 'images/' . BULLET . '" alt="" class="icon" />';
} elseif (file_exists(THEME . 'images/bullet2.gif')) {
    $bullet = '<img src="' . THEME . 'images/bullet2.gif" alt="" class="icon" />';
}
global $linkspage_pref;
$linkspage_pref = $lc->getLinksPagePref();
//navigator -------------------------
$mains = "";
$text = "";
$baseurl = e_PLUGIN_ABS . "links_page/links.php";
if (isset($linkspage_pref['link_menu_navigator_frontpage']) && $linkspage_pref['link_menu_navigator_frontpage']) {
    if (isset($linkspage_pref['link_menu_navigator_rendertype']) && $linkspage_pref['link_menu_navigator_rendertype'] == "1") {
        $mains .= $rs->form_option(LAN_LINKS_14, "0", $baseurl, "");
コード例 #4
0
ファイル: links.php プロジェクト: notzen/e107
}
require_once e_HANDLER . "rate_class.php";
$rater = new rater();
require_once e_PLUGIN . 'links_page/link_shortcodes.php';
require_once e_PLUGIN . 'links_page/link_defines.php';
require_once e_HANDLER . "userclass_class.php";
e107_require_once(e_HANDLER . 'arraystorage_class.php');
$eArrayStorage = new ArrayData();
require_once e_HANDLER . "form_handler.php";
$rs = new form();
require_once e_HANDLER . "file_class.php";
$fl = new e_file();
require_once e_HANDLER . "comment_class.php";
$cobj = new comment();
require_once e_PLUGIN . 'links_page/link_class.php';
$lc = new linkclass();
global $tp;
$linkspage_pref = $lc->getLinksPagePref();
$deltest = array_flip($_POST);
if (e_QUERY) {
    $qs = explode(".", e_QUERY);
    if (is_numeric($qs[0])) {
        $from = array_shift($qs);
    } else {
        $from = "0";
    }
}
include_lan(e_PLUGIN . "links_page/languages/" . e_LANGUAGE . ".php");
$lc->setPageTitle();
//submit comment
if (isset($_POST['commentsubmit'])) {
コード例 #5
0
if (!getperms('P') || !plugInstalled('links_page')) {
    header('location:' . e_BASE . 'index.php');
    exit;
}
require_once e_PLUGIN . 'links_page/link_shortcodes.php';
require_once e_PLUGIN . 'links_page/link_defines.php';
require_once e_ADMIN . 'auth.php';
require_once e_HANDLER . 'userclass_class.php';
require_once e_HANDLER . 'form_handler.php';
$rs = new form();
require_once e_HANDLER . 'file_class.php';
$fl = new e_file();
e107_require_once(e_HANDLER . 'arraystorage_class.php');
$eArrayStorage = new ArrayData();
require_once e_PLUGIN . 'links_page/link_class.php';
$lc = new linkclass();
include_lan(e_PLUGIN . 'links_page/languages/' . e_LANGUAGE . '.php');
$linkspage_pref = $lc->getLinksPagePref();
//$deltest = array_flip($_POST);			// Not used any more
if (e_QUERY) {
    $qs = explode('.', e_QUERY);
    if (is_numeric($qs[0])) {
        $from = array_shift($qs);
    } else {
        $from = '0';
    }
}
$incdec_action = '';
foreach ($_POST as $k => $v) {
    if (preg_match("#^(inc|dec)" . URL_SEPARATOR . "(\\d+)" . URL_SEPARATOR . "(\\d+)" . URL_SEPARATOR . "(\\d+){0,1}_[x|y]#", $k, $matches)) {
        $incdec_action = $matches[1];