diff --git a/e107_plugins/links_page/admin_linkspage_config.php b/e107_plugins/links_page/admin_linkspage_config.php deleted file mode 100644 index 0530979b4..000000000 --- a/e107_plugins/links_page/admin_linkspage_config.php +++ /dev/null @@ -1,338 +0,0 @@ -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]; // (inc|dec) - $linkid = intval($matches[2]); - $link_order = intval($matches[3]); - $link_location = intval(varset($matches[4], '')); - break; - } -} - -switch ($incdec_action) -{ - case 'inc' : - $lc->dbOrderUpdateInc($linkid, $link_order, $link_location); - break; - case 'dec' : - $lc->dbOrderUpdateDec($linkid, $link_order, $link_location); - break; -} - - -if (isset($_POST['delete'])) -{ - $tmp = array_pop($tmp = array_flip($_POST['delete'])); - list($delete, $del_id) = explode("_", $tmp); - $del_id = intval($del_id); -} -elseif (isset($_POST['create_category'])) -{ - $lc -> dbCategoryCreate(); -} -elseif (isset($_POST['update_category'])) -{ - $lc -> dbCategoryUpdate(); -} -elseif (isset($_POST['updateoptions'])) -{ - $linkspage_pref = $lc -> UpdateLinksPagePref(); - $lc -> show_message(LCLAN_ADMIN_6); -} -elseif (isset($_POST['add_link'])) -{ - $lc -> dbLinkCreate(); -} -//upload link icon -elseif(isset($_POST['uploadlinkicon'])) -{ - $lc -> uploadLinkIcon(); -} -//upload category icon -elseif(isset($_POST['uploadcatlinkicon'])) -{ - $lc -> uploadCatLinkIcon(); -} -//update link order -elseif (isset($_POST['update_order'])) -{ - $lc -> dbOrderUpdate($_POST['link_order']); -} -//update link category order -elseif (isset($_POST['update_category_order'])) -{ - $lc -> dbOrderCatUpdate($_POST['link_category_order']); -} - -//delete link -if (isset($delete) && $del_id) -{ - switch ($delete) - { - case 'main' : // Delete link - $sql->db_Select('links_page', 'link_order', 'link_id='.$del_id); - $row = $sql->db_Fetch(); - $sql2 = e107::getDb('sql2'); - $sql->db_Select("links_page", "link_id", "link_order>'".$row['link_order']."' && link_category='".$id."'"); - while ($row = $sql->db_Fetch()) { - $sql2->db_Update('links_page', "link_order=link_order-1 WHERE link_id='".$row['link_id']."'"); - } - if ($sql->db_Delete('links_page', 'link_id='.$del_id)) - { - $msg = LCLAN_ADMIN_10." #".$del_id." ".LCLAN_ADMIN_11; - $data = array('method'=>'delete', 'table'=>'links_page', 'id'=>$del_id, 'plugin'=>'links_page', 'function'=>'delete'); - $msg .= $e_event->triggerHook($data); - $admin_log->log_event('LINKS_02','ID: '.$del_id,E_LOG_INFORMATIVE,''); - $lc->show_message($msg); - } - break; - - case 'category' : //delete category - //check if links are present for this category - if($sql->db_Select('links_page', '*', 'link_category='.$del_id)) - { - $lc->show_message(LCLAN_ADMIN_12." #".$del_id." ".LAN_DELETED_FAILED."
".LCLAN_ADMIN_15); - //no? then we can safely remove this category - } - else - { - if ($sql->db_Delete('links_page_cat', 'link_category_id='.$del_id)) - { - $admin_log->log_event('LINKS_03','ID: '.$del_id,E_LOG_INFORMATIVE,''); - $lc->show_message(LCLAN_ADMIN_12." #".$del_id." ".LCLAN_ADMIN_11); - unset($id); - } - } - break; - - case 'sn' : //delete submitted link - if ($sql->db_Delete('tmp', 'tmp_time='.$del_id)) - { - $admin_log->log_event('LINKS_04','ID: '.$del_id,E_LOG_INFORMATIVE,''); - $lc->show_message(LCLAN_ADMIN_13); - } - } -} - - - -//show link categories (cat edit) -if (!e_QUERY) -{ - $lc->show_categories('cat'); -} -elseif (isset($qs[0])) -{ - switch ($qs[0]) - { - case 'cat' : - if (isset($qs[1])) - { - //show cat edit form - if (($qs[1] == 'edit') && isset($qs[2]) && is_numeric($qs[2])) - { - $lc->show_cat_create(); - } - //show cat create form - elseif (($qs[1] == 'create') && !isset($qs[2]) ) - { - $lc->show_cat_create(); - } - } - break; - case 'link' : - if (isset($qs[1])) - { - switch ($qs[1]) - { - case 'view' : - if (isset($qs[2]) && (is_numeric($qs[2]) || $qs[2] == "all") ) - { - $lc->show_links(); - } - break; - case 'edit' : // Edit link - if (isset($qs[2]) && is_numeric($qs[2])) - { - $lc->show_link_create(); - } - break; - case 'create' : // Create link - if (!isset($qs[2]) ) - { - $lc->show_link_create(); - } - break; - case 'sn' : // Post submitted - if (isset($qs[2]) && is_numeric($qs[2]) ) - { - $lc->show_link_create(); - } - break; - } - } - else - { - $lc->show_categories('link'); //view categories (link select cat) - } - break; - case 'sn' : //view submitted links - $lc->show_submitted(); - break; - case 'opt' : // Options - $lc->show_pref_options(); - break; - } -} - - -// ##### Display options -------------------------------------------------------------------------- -function admin_linkspage_config_adminmenu() -{ - global $qs, $sql; - $act = varset($qs[0],'cat'); - if($act == 'cat' && isset($qs[1])) - { - if($qs[1] == 'create') - { - $act .= '.create'; - } - elseif ($qs[1] == 'edit') - { - $act .= ''; - } - elseif ($qs[1] == 'view') - { - $act .= ''; - } - } - - $var['cat']['text'] = LCLAN_ADMINMENU_2; - $var['cat']['link'] = e_SELF; - - $var['cat.create']['text'] = LCLAN_ADMINMENU_3; - $var['cat.create']['link'] = e_SELF."?cat.create"; - - $var['link']['text'] = LCLAN_ADMINMENU_4; - $var['link']['link'] = e_SELF."?link"; - - $var['link.create']['text'] = LCLAN_ADMINMENU_5; - $var['link.create']['link'] = e_SELF."?link.create"; - - if ($tot = $sql->db_Select("tmp", "*", "tmp_ip='submitted_link' ")) - { - $var['sn']['text'] = LCLAN_ADMINMENU_7." (".$tot.")"; - $var['sn']['link'] = e_SELF."?sn"; - } - - $var['opt']['text'] = LCLAN_ADMINMENU_6; - $var['opt']['link'] = e_SELF."?opt"; - - show_admin_menu(LCLAN_ADMINMENU_1, $act, $var); - - if($qs[0] != 'opt') - { - unset($var); - $var=array(); - if ($sql->db_Select("links_page_cat", "*")) - { - while ($row = $sql->db_Fetch()) { - $var[$row['link_category_id']]['text'] = $row['link_category_name']; - $var[$row['link_category_id']]['link'] = e_SELF."?link.view.".$row['link_category_id']; - } - $active = ($qs[0] == 'link') ? vartrue($id) : FALSE; - show_admin_menu(LCLAN_ADMINMENU_8, $active, $var); - } - } - if(isset($qs[0]) && $qs[0] == "opt") - { - unset($var); - $var=array(); - $var['optgeneral']['text'] = LCLAN_OPT_MENU_1; - $var['optmanager']['text'] = LCLAN_OPT_MENU_2; - $var['optcategory']['text'] = LCLAN_OPT_MENU_3; - $var['optlinks']['text'] = LCLAN_OPT_MENU_4; - $var['optrefer']['text'] = LCLAN_OPT_MENU_5; - $var['optrating']['text'] = LCLAN_OPT_MENU_6; - $var['optmenu']['text'] = LCLAN_OPT_MENU_7; - show_admin_menu(LCLAN_ADMINMENU_6, $qs[0], $var, TRUE); - } -} - -require_once(e_ADMIN.'footer.php'); -exit; - -// End --------------------------------------------------------------------------------------------------------- - -?> \ No newline at end of file diff --git a/e107_plugins/links_page/cat_images/linkspage_16.png b/e107_plugins/links_page/cat_images/linkspage_16.png deleted file mode 100644 index 0523758d9..000000000 Binary files a/e107_plugins/links_page/cat_images/linkspage_16.png and /dev/null differ diff --git a/e107_plugins/links_page/e_comment.php b/e107_plugins/links_page/e_comment.php deleted file mode 100644 index bb50c2ae0..000000000 --- a/e107_plugins/links_page/e_comment.php +++ /dev/null @@ -1,41 +0,0 @@ - \ No newline at end of file diff --git a/e107_plugins/links_page/e_frontpage.php b/e107_plugins/links_page/e_frontpage.php deleted file mode 100644 index cb82cdffd..000000000 --- a/e107_plugins/links_page/e_frontpage.php +++ /dev/null @@ -1,26 +0,0 @@ - $PLUGINS_DIRECTORY.'links_page/links.php', 'title' => LCLAN_PLUGIN_LAN_1); - -?> \ No newline at end of file diff --git a/e107_plugins/links_page/e_help.php b/e107_plugins/links_page/e_help.php deleted file mode 100644 index cfe88777e..000000000 --- a/e107_plugins/links_page/e_help.php +++ /dev/null @@ -1,74 +0,0 @@ - tablerender(LAN_ADMIN_HELP_0, $text); - -?> \ No newline at end of file diff --git a/e107_plugins/links_page/e_latest.php b/e107_plugins/links_page/e_latest.php deleted file mode 100644 index 270818143..000000000 --- a/e107_plugins/links_page/e_latest.php +++ /dev/null @@ -1,22 +0,0 @@ -db_Select("tmp", "*", "tmp_ip='submitted_link'"); - - $var[0]['icon'] = E_16_LINKSPAGE; - $var[0]['title'] = ADLAN_LAT_5; - $var[0]['url'] = e_PLUGIN."links_page/admin_linkspage_config.php?sn"; - $var[0]['total'] = $submitted_links; - - return $var; - } -} - - -?> \ No newline at end of file diff --git a/e107_plugins/links_page/e_list.php b/e107_plugins/links_page/e_list.php deleted file mode 100644 index 72f93f0a4..000000000 --- a/e107_plugins/links_page/e_list.php +++ /dev/null @@ -1,77 +0,0 @@ -parent = $parent; - } - - function getListData() - { - $list_caption = $this->parent->settings['caption']; - $list_display = ($this->parent->settings['open'] ? "" : "none"); - - $qry = ''; - if($this->parent->mode == "new_page" || $this->parent->mode == "new_menu" ) - { - $lvisit = $this->parent->getlvisit(); - $qry = " l.link_datestamp>".$lvisit." AND "; - } - - $bullet = $this->parent->getBullet($this->parent->settings['icon']); - - $qry = " - SELECT l.*, c.link_category_id, c.link_category_name - FROM #links_page AS l - LEFT JOIN #links_page_cat AS c ON c.link_category_id = l.link_category - WHERE ".$qry." l.link_class REGEXP '".e_CLASS_REGEXP."' AND c.link_category_class REGEXP '".e_CLASS_REGEXP."' - ORDER BY l.link_datestamp DESC LIMIT 0,".intval($this->parent->settings['amount'])." "; - - if(!$this->parent->e107->sql->db_Select_gen($qry)) - { - $list_data = LIST_LINKS_2; - } - else - { - $list_data = array(); - while($row = $this->parent->e107->sql->db_Fetch()) - { - $record = array(); - $rowheading = $this->parent->parse_heading($row['link_name']); - $record['icon'] = $bullet; - $record['heading'] = "".$rowheading.""; - $record['author'] = ""; - $record['category'] = ($this->parent->settings['category'] ? "".$row['link_category_name']."" : ""); - $record['date'] = ($this->parent->settings['date'] ? ($row['link_datestamp'] > 0 ? $this->parent->getListDate($row['link_datestamp']) : "") : ""); - $record['info'] = ""; - - $list_data[] = $record; - } - } - //return array with 'records', (global)'caption', 'display' - return array( - 'records'=>$list_data, - 'caption'=>$list_caption, - 'display'=>$list_display - ); - } -} - -?> \ No newline at end of file diff --git a/e107_plugins/links_page/e_notify.php b/e107_plugins/links_page/e_notify.php deleted file mode 100644 index 579fcf284..000000000 --- a/e107_plugins/links_page/e_notify.php +++ /dev/null @@ -1,41 +0,0 @@ - NT_LAN_LP_2); -} - - -if (!function_exists('notify_linksub')) -{ - function notify_linksub($data) - { - global $nt, $_lanfile; - include_lan(e_PLUGIN."links_page/languages/".e_LANGUAGE.".php"); - foreach ($data as $key => $value) - { - $message .= $key.': '.$value.'
'; - } - $nt -> send('linksub', NT_LAN_LP_3, $message); - } -} - -?> \ No newline at end of file diff --git a/e107_plugins/links_page/e_rss.php b/e107_plugins/links_page/e_rss.php deleted file mode 100644 index 9fdfcf087..000000000 --- a/e107_plugins/links_page/e_rss.php +++ /dev/null @@ -1,50 +0,0 @@ -limit; - -$rss = array(); -$sqlrss = new db; -if($items = $sqlrss->db_Select_gen($qry)){ - $i=0; - while($rowrss = $sqlrss -> db_Fetch()){ - $tmp = ''; - $rss[$i]['author'] = $tmp[1]; - $rss[$i]['author_email'] = $tmp[2]; - $rss[$i]['link'] = $rowrss['link_url']; - $rss[$i]['linkid'] = $rowrss['link_id']; - $rss[$i]['title'] = $rowrss['link_name']; - $rss[$i]['description'] = ''; - $rss[$i]['category_name'] = $rowrss['link_category_name']; - $rss[$i]['category_link'] = $e107->base_path.$PLUGINS_DIRECTORY."links_page/links.php?cat.".$rowrss['link_category_id']; - $rss[$i]['datestamp'] = $rowrss['link_datestamp']; - $rss[$i]['enc_url'] = ""; - $rss[$i]['enc_leng'] = ""; - $rss[$i]['enc_type'] = ""; - $i++; - } -} - -//##### ------------------------------------------------------------------------------------ -$eplug_rss_data[] = $rss; -$eplug_rss_feed[] = $feed; -?> \ No newline at end of file diff --git a/e107_plugins/links_page/e_search.php b/e107_plugins/links_page/e_search.php deleted file mode 100644 index d580cca49..000000000 --- a/e107_plugins/links_page/e_search.php +++ /dev/null @@ -1,11 +0,0 @@ - e_PLUGIN.'links_page/search/search_parser.php', 'qtype' => LCLAN_ADMIN_14, 'refpage' => 'links.php', 'advanced' => e_PLUGIN.'links_page/search/search_advanced.php'); - -?> \ No newline at end of file diff --git a/e107_plugins/links_page/e_status.php b/e107_plugins/links_page/e_status.php deleted file mode 100644 index 680464223..000000000 --- a/e107_plugins/links_page/e_status.php +++ /dev/null @@ -1,20 +0,0 @@ -db_Count("links_page", "(*)"); - - $var[0]['icon'] = E_16_LINKSPAGE; - $var[0]['title'] = LCLAN_ADMIN_14; - $var[0]['url'] = e_PLUGIN."links_page/admin_linkspage_config.php"; - $var[0]['total'] = $links_page_links; - - return $var; - } -} -?> \ No newline at end of file diff --git a/e107_plugins/links_page/e_tagwords.php b/e107_plugins/links_page/e_tagwords.php deleted file mode 100644 index 317ecc452..000000000 --- a/e107_plugins/links_page/e_tagwords.php +++ /dev/null @@ -1,46 +0,0 @@ -settings = array(); - - $this->settings['plugin'] = "links_page"; - $this->settings['table'] = "links_page"; - $this->settings['db_id'] = "link_id"; - $this->settings['caption'] = "links page"; - } - - function getLink($id) - { - global $tp; - if($this->row=='') - { - $this->row = $this->getRecord($id); - } - $url = e_PLUGIN."links_page/links.php?view.{$this->row['link_id']}"; - return "".$tp->toHTML($this->row['link_name'], TRUE, '').""; - } - - function getRecord($id) - { - global $sql; - - $this->row = ''; - - $qry = "SELECT l.* - FROM #links_page as l - WHERE l.link_id='{$id}' AND l.link_class REGEXP '".e_CLASS_REGEXP."' "; - - if($sql->db_Select_gen($qry)) - { - $this->row=$sql->db_Fetch(); - } - return $this->row; - } -} - -?> \ No newline at end of file diff --git a/e107_plugins/links_page/e_userprofile.php b/e107_plugins/links_page/e_userprofile.php deleted file mode 100644 index 7136a1821..000000000 --- a/e107_plugins/links_page/e_userprofile.php +++ /dev/null @@ -1,75 +0,0 @@ - db_Select_gen($qry); - if ($sql -> db_Select_gen($qry1)) - { - while ($row = $sql -> db_Fetch()) - { - $LINK_APPEND = ""; - - $icon = $LINK_APPEND.""; - if ($row['link_button']) - { - if (strpos($row['link_button'], "http://") !== FALSE) - { - $icon = $LINK_APPEND.""; - } - else - { - if(strstr($row['link_button'], "/")) - { - if(is_readable(e_BASE.$row['link_button'])) - { - $icon = $LINK_APPEND.""; - } - } - else - { - if(is_readable(e_PLUGIN."links_page/link_images/".$row['link_button'])) - { - $icon = $LINK_APPEND.""; - } - } - } - } - - $date = strftime("%d %b %Y", $row['link_datestamp']); - $heading = ($row['link_name'] ? $LINK_APPEND.$tp->toHTML($row['link_name'], TRUE)."
" : ''); - - $text .= " -
-
".$icon."
-
- ".$heading." - ".$date." -
-
"; - } - $text .= "
".LCLAN_USERPROFILE_1."
"; - } - $caption = str_replace('{total}',$total, LCLAN_USERPROFILE_2); - return array('caption'=>$caption, 'text'=>$text); - } -} - -?> \ No newline at end of file diff --git a/e107_plugins/links_page/images/blank.gif b/e107_plugins/links_page/images/blank.gif deleted file mode 100644 index 63a7621dd..000000000 Binary files a/e107_plugins/links_page/images/blank.gif and /dev/null differ diff --git a/e107_plugins/links_page/images/generic.png b/e107_plugins/links_page/images/generic.png deleted file mode 100644 index e2f17fc7b..000000000 Binary files a/e107_plugins/links_page/images/generic.png and /dev/null differ diff --git a/e107_plugins/links_page/images/linkspage_16.png b/e107_plugins/links_page/images/linkspage_16.png deleted file mode 100644 index 34cb910b8..000000000 Binary files a/e107_plugins/links_page/images/linkspage_16.png and /dev/null differ diff --git a/e107_plugins/links_page/images/linkspage_32.png b/e107_plugins/links_page/images/linkspage_32.png deleted file mode 100644 index 6973029ca..000000000 Binary files a/e107_plugins/links_page/images/linkspage_32.png and /dev/null differ diff --git a/e107_plugins/links_page/languages/English.php b/e107_plugins/links_page/languages/English.php deleted file mode 100644 index 74679aca3..000000000 --- a/e107_plugins/links_page/languages/English.php +++ /dev/null @@ -1,367 +0,0 @@ -> view all links"); -define("LCLAN_USERPROFILE_2", "links: {total} links found"); -/* -define("LCLAN_PLUGIN_LAN_1", "Links Page"); -define("LCLAN_PLUGIN_LAN_2", "Links Page For Displaying External Web Links"); -define("LCLAN_PLUGIN_LAN_3", "Configure Links Page"); -define("LCLAN_PLUGIN_LAN_4", "links"); -define("LCLAN_PLUGIN_LAN_5", "Links page has successfully installed, please configure it from the Links Page link on the admin front page."); -define("LCLAN_PLUGIN_LAN_6", "Links_page successfully upgraded, now using version"); - -define("LCLAN_OPT_MENU_1", "general options"); -define("LCLAN_OPT_MENU_2", "personal link managers"); -define("LCLAN_OPT_MENU_3", "category page"); -define("LCLAN_OPT_MENU_4", "links display"); -define("LCLAN_OPT_MENU_5", "refer page"); -define("LCLAN_OPT_MENU_6", "rating page"); -define("LCLAN_OPT_MENU_7", "menu"); -*/ -define("LCLAN_PAGETITLE_1", "Links"); -define("LCLAN_PAGETITLE_2", "All categories"); -define("LCLAN_PAGETITLE_3", "All Links"); -define("LCLAN_PAGETITLE_4", "category"); -/* -define("LCLAN_PAGETITLE_5", "Top Rated"); -define("LCLAN_PAGETITLE_6", "Top Referrals"); -define("LCLAN_PAGETITLE_7", "Personal Link Manager"); -define("LCLAN_PAGETITLE_8", "Link Comments"); -define("LCLAN_PAGETITLE_9", "Submit Link"); -define("LCLAN_PAGETITLE_10", ""); - - -define("LCLAN_OPT_1", "general options"); -define("LCLAN_OPT_2", "Link Page Options"); -define("LCLAN_OPT_3", "enabled"); -define("LCLAN_OPT_4", "disabled"); -define("LCLAN_OPT_5", "px"); -define("LCLAN_OPT_6", ""); -define("LCLAN_OPT_7", "divide categories into individual pages"); -define("LCLAN_OPT_8", "allow links to be submitted"); -define("LCLAN_OPT_9", "who can submit links"); -define("LCLAN_OPT_10", "use multiple pages to show the links"); -define("LCLAN_OPT_11", "number of links per page"); -define("LCLAN_OPT_12", "category page"); -define("LCLAN_OPT_13", "display which sections"); -define("LCLAN_OPT_14", "icon"); -define("LCLAN_OPT_15", "description"); -define("LCLAN_OPT_16", "amount"); -define("LCLAN_OPT_17", "referral"); -define("LCLAN_OPT_18", "url"); -define("LCLAN_OPT_19", "total category info line"); -define("LCLAN_OPT_20", "link to top refer"); -define("LCLAN_OPT_21", "link to top rated"); -define("LCLAN_OPT_22", "show default icon if none is present"); -define("LCLAN_OPT_23", "default sort method"); -define("LCLAN_OPT_24", "default order method"); -define("LCLAN_OPT_25", "default resize value"); -define("LCLAN_OPT_26", "links page"); -define("LCLAN_OPT_27", "allow users to rate links"); -define("LCLAN_OPT_28", "show default icon if none present"); -define("LCLAN_OPT_29", "display sort and order menu"); -define("LCLAN_OPT_30", "ascending"); -define("LCLAN_OPT_31", "descending"); -define("LCLAN_OPT_32", "use override of link open method"); -define("LCLAN_OPT_33", "default resize value"); -define("LCLAN_OPT_34", "name"); -define("LCLAN_OPT_35", "url"); -define("LCLAN_OPT_36", "order"); -define("LCLAN_OPT_37", "refer"); -define("LCLAN_OPT_38", ""); -define("LCLAN_OPT_39", ""); -define("LCLAN_OPT_40", "name"); -define("LCLAN_OPT_41", "id"); -define("LCLAN_OPT_42", "use individual link setting"); -define("LCLAN_OPT_43", "Opens in same window"); -define("LCLAN_OPT_44", "Opens in new window"); -define("LCLAN_OPT_45", "Opens in 600x400 mini-window"); -define("LCLAN_OPT_46", "who can manage links"); -define("LCLAN_OPT_47", "these users can add/edit their own personal links"); -define("LCLAN_OPT_48", "allow direct posting"); -define("LCLAN_OPT_49", "if enabled links are submitted directly, else a site admin needs to approve them"); -define("LCLAN_OPT_50", "allow direct deleting"); -define("LCLAN_OPT_51", "if enabled the link managers can delete their own links"); -define("LCLAN_OPT_52", "personal link managers"); -define("LCLAN_OPT_53", "date"); -define("LCLAN_OPT_54", "allow personal management on links"); -define("LCLAN_OPT_55", "allow comments on all links"); -define("LCLAN_OPT_56", "minimum refer value"); -define("LCLAN_OPT_57", "only links with a refer count larger then the given value are displayed (0 or empty = all)"); -define("LCLAN_OPT_58", "link to submit link"); -define("LCLAN_OPT_59", "link to personal manager (only if allowed)"); -define("LCLAN_OPT_60", "link to link frontpage"); -define("LCLAN_OPT_61", "link to all categories"); -define("LCLAN_OPT_62", "show these navigator links"); -define("LCLAN_OPT_63", "minimum rating value"); -define("LCLAN_OPT_64", "only links with a rating larger then the given value are displayed (0 or empty = all)"); -define("LCLAN_OPT_65", "show empty categories"); -define("LCLAN_OPT_66", "link to each category"); -define("LCLAN_OPT_67", "link to all links"); -*/ -define("LCLAN_OPT_68", "view all links"); -/* -define("LCLAN_OPT_69", "rendertype navigator links"); -define("LCLAN_OPT_70", "show category links"); -define("LCLAN_OPT_71", "rendertype category links"); -define("LCLAN_OPT_72", "show recent links"); -define("LCLAN_OPT_73", "display which data"); -define("LCLAN_OPT_74", "how many recent links are displayed"); -define("LCLAN_OPT_75", "hyperlinks"); -define("LCLAN_OPT_76", "selectbox"); -define("LCLAN_OPT_77", "category"); -define("LCLAN_OPT_78", "description"); -define("LCLAN_OPT_79", "caption navigator"); -define("LCLAN_OPT_80", "caption categories"); -define("LCLAN_OPT_81", "caption recent list"); -define("LCLAN_OPT_82", "navigator"); -define("LCLAN_OPT_83", "categories"); -define("LCLAN_OPT_84", "recent list"); -define("LCLAN_OPT_85", "caption menu"); -define("LCLAN_OPT_86", "link menu"); -define("LCLAN_OPT_87", "show amount of links"); - -define("LCLAN_ADMIN_1", "update"); // deprecated -define("LCLAN_ADMIN_2", "Link saved to database."); -define("LCLAN_ADMIN_3", "Link updated in database."); -define("LCLAN_ADMIN_4", "Link Category Saved"); -define("LCLAN_ADMIN_5", "Link Category Updated"); -define("LCLAN_ADMIN_6", "Options Saved"); -define("LCLAN_ADMIN_7", "link icon was uploaded successfully !"); -define("LCLAN_ADMIN_8", "link icon was not uploaded !"); -define("LCLAN_ADMIN_9", "Order updated"); -define("LCLAN_ADMIN_10", "Link"); -define("LCLAN_ADMIN_11", "deleted"); // deprecated -define("LCLAN_ADMIN_12", "Link Category"); -define("LCLAN_ADMIN_13", "Submitted link deleted"); -define("LCLAN_ADMIN_14", "Links"); -define("LCLAN_ADMIN_15", "This category still contains links, please (re)move them first"); - -define("LCLAN_SL_1", "Submitted Links"); -define("LCLAN_SL_2", "No submitted links"); -define("LCLAN_SL_3", "Link"); -define("LCLAN_SL_4", "Submitted by"); -define("LCLAN_SL_5", "Options"); -define("LCLAN_SL_6", "Post"); -define("LCLAN_SL_7", "Delete"); -define("LCLAN_SL_8", "Are you sure you want to delete this submitted link?"); -define("LCLAN_SL_9", "After submitting your link it will be reviewed by a site admin and if appropriate it will be added to the main links page."); -define("LCLAN_SL_10", "Category:"); -define("LCLAN_SL_11", "name"); -define("LCLAN_SL_12", "url"); -define("LCLAN_SL_13", "description"); -define("LCLAN_SL_14", "URL to link button:"); -define("LCLAN_SL_15", "Underlined fields are required."); -define("LCLAN_SL_16", "Submit Link"); -define("LCLAN_SL_17", ""); -define("LCLAN_SL_18", ""); - -define("LCLAN_CAT_1", "Image"); -define("LCLAN_CAT_2", "Category"); -define("LCLAN_CAT_3", "Options"); -define("LCLAN_CAT_4", "Move"); -define("LCLAN_CAT_5", "Order"); -define("LCLAN_CAT_6", "Edit"); -define("LCLAN_CAT_7", "Are"); -define("LCLAN_CAT_8", "Are you sure you want to delete this category?"); -define("LCLAN_CAT_9", "View Links"); -define("LCLAN_CAT_10", "Reorder"); -define("LCLAN_CAT_11", "No link categories"); -define("LCLAN_CAT_12", "Existing Link Categories"); -define("LCLAN_CAT_13", "Name:"); -define("LCLAN_CAT_14", "Description:"); -define("LCLAN_CAT_15", "Upload a new icon:"); -define("LCLAN_CAT_16", "Auto-Thumbnail size:"); -define("LCLAN_CAT_17", "This option is disabled as file uploading is not enabled on your server"); -define("LCLAN_CAT_18", "The"); -define("LCLAN_CAT_19", "folder is not writable, you need to CHMOD 777 the folder before uploading"); -define("LCLAN_CAT_20", "px"); -define("LCLAN_CAT_21", "upload"); -define("LCLAN_CAT_22", "Choose an icon:"); -define("LCLAN_CAT_23", "View Images"); -define("LCLAN_CAT_24", "Visible for:"); -define("LCLAN_CAT_25", "tick to update timestamp to current time"); -define("LCLAN_CAT_26", "Update Link Category"); -define("LCLAN_CAT_27", "Clear Form"); -define("LCLAN_CAT_28", "Create Link Category"); -define("LCLAN_CAT_29", "Link Category"); - -define("LCLAN_ITEM_1", "Submitted by"); -define("LCLAN_ITEM_2", "Category:"); -define("LCLAN_ITEM_3", "no categories yet"); -define("LCLAN_ITEM_4", "Name:"); -define("LCLAN_ITEM_5", "Url:"); -define("LCLAN_ITEM_6", "Description:"); -define("LCLAN_ITEM_7", "Upload an icon:"); -define("LCLAN_ITEM_8", "Auto-Thumbnail size:"); -define("LCLAN_ITEM_9", "This option is disabled as file uploading is not enabled on your server"); -define("LCLAN_ITEM_10", "The"); -define("LCLAN_ITEM_11", "folder is not writable, you need to CHMOD 777 the folder before uploading"); -define("LCLAN_ITEM_12", "px"); -define("LCLAN_ITEM_13", "upload"); -define("LCLAN_ITEM_14", "Choose an icon:"); -define("LCLAN_ITEM_15", "View Images"); -define("LCLAN_ITEM_16", "Open Type:"); -define("LCLAN_ITEM_17", "Opens in same window"); -define("LCLAN_ITEM_18", "Opens in new window"); -define("LCLAN_ITEM_19", "Opens in 600x400 mini-window"); -define("LCLAN_ITEM_20", "Visible for:"); -define("LCLAN_ITEM_21", "tick to update timestamp to current time"); -define("LCLAN_ITEM_22", "Update Link"); -define("LCLAN_ITEM_23", "Create link"); -define("LCLAN_ITEM_24", "Links"); -define("LCLAN_ITEM_25", "Image"); -define("LCLAN_ITEM_26", "Link Name"); -define("LCLAN_ITEM_27", "Options"); -define("LCLAN_ITEM_28", "Move"); -define("LCLAN_ITEM_29", "Order"); -define("LCLAN_ITEM_30", "Reorder"); -define("LCLAN_ITEM_31", "edit"); -define("LCLAN_ITEM_32", "delete"); -define("LCLAN_ITEM_33", "Are you sure you want to delete this link?"); -define("LCLAN_ITEM_34", "no icon"); -define("LCLAN_ITEM_35", "manage personal links"); -define("LCLAN_ITEM_36", "go"); -define("LCLAN_ITEM_37", "view all links"); -define("LCLAN_ITEM_38", "All Links"); -define("LCLAN_ITEM_39", "Rating"); - -define("LCLAN_ADMINMENU_1", "Link Options"); -define("LCLAN_ADMINMENU_2", "Manage Link Categories"); -define("LCLAN_ADMINMENU_3", "Create Link Category"); -define("LCLAN_ADMINMENU_4", "Manage Links"); -define("LCLAN_ADMINMENU_5", "Create Link"); -define("LCLAN_ADMINMENU_6", "Options"); -define("LCLAN_ADMINMENU_7", "Submitted Links"); -define("LCLAN_ADMINMENU_8", "Categories"); - -define("NT_LAN_LP_1", "Links Page Events"); -define("NT_LAN_LP_2", "Link submitted by user"); -define("NT_LAN_LP_3", "Link Submitted"); - -define("LNK_SCH_LAN_2", "All Links Categories"); -define("LNK_SCH_LAN_3", "All links details"); - -define("LAN_LINKS_MANAGER_0", "icon"); -define("LAN_LINKS_MANAGER_1", "link"); -define("LAN_LINKS_MANAGER_2", "options"); -define("LAN_LINKS_MANAGER_3", "create new link"); -define("LAN_LINKS_MANAGER_4", "you don't have any links present"); -define("LAN_LINKS_MANAGER_5", "category"); -define("LAN_LINKS_MANAGER_6", ""); -define("LAN_LINKS_MANAGER_7", ""); -define("LAN_LINKS_MANAGER_8", ""); -define("LAN_LINKS_MANAGER_9", ""); -*/ - -define("LAN_LINKS_1", "Total links"); -define("LAN_LINKS_2", "Total links activated"); -define("LAN_LINKS_3", "Anonymous"); -define("LAN_LINKS_4", "heading"); -define("LAN_LINKS_5", "url"); -define("LAN_LINKS_6", "order"); -define("LAN_LINKS_7", "refer"); -define("LAN_LINKS_8", "ascending"); -define("LAN_LINKS_9", "descending"); -define("LAN_LINKS_10", "Top Links : Refer"); -define("LAN_LINKS_11", "Top Links : Rating"); -define("LAN_LINKS_12", "view links by refer"); -define("LAN_LINKS_13", "view links by rating"); -define("LAN_LINKS_14", "view links frontpage"); -define("LAN_LINKS_15", "sort by"); -define("LAN_LINKS_16", "in this category"); -define("LAN_LINKS_17", "link"); -define("LAN_LINKS_18", "links"); -define("LAN_LINKS_19", "categories"); -define("LAN_LINKS_20", "category"); -define("LAN_LINKS_21", "There"); -define("LAN_LINKS_22", "is"); -define("LAN_LINKS_23", "are"); -define("LAN_LINKS_24", "total in"); -define("LAN_LINKS_25", "show all links"); -define("LAN_LINKS_26", "Referrals"); -define("LAN_LINKS_27", "submit a link"); -define("LAN_LINKS_28", "Thank you"); -define("LAN_LINKS_29", "Your link has been saved and will be reviewed by a site administrator."); -define("LAN_LINKS_30", "Link Categories"); -define("LAN_LINKS_31", "submit a link"); -define("LAN_LINKS_32", "Category:"); -define("LAN_LINKS_33", "No Links are rated yet."); -define("LAN_LINKS_34", "There are currently no links"); -define("LAN_LINKS_35", "personal links manager"); -define("LAN_LINKS_36", "link comments"); -define("LAN_LINKS_37", "Comments"); -define("LAN_LINKS_38", "date"); -define("LAN_LINKS_39", "Links"); -define("LAN_LINKS_40", "Category"); -define("LAN_LINKS_41", "no categories yet"); -define("LAN_LINKS_42", "no links are referred yet"); -define("LAN_LINKS_43", "view all categories"); -define("LAN_LINKS_44", "id"); -define("LAN_LINKS_45", "Link Category"); -define("LAN_LINKS_46", "Link Subcategories"); -define("LAN_LINKS_47", "link navigator..."); -define("LAN_LINKS_48", "-- view category --"); -define("LAN_LINKS_49", ""); -define("LAN_LINKS_50", "You do not have permission to submit links at present"); - -define('LAN_LINKS_SCH_1','Posted in reply to link'); -/* -define("LAN_ADMIN_HELP_0", "linkspage help area"); - -define("LAN_ADMIN_HELP_1", "the manage link categories page shows all categories present.

detailed list
You see a list of all categories with their icon, name and description, options, and sorting options.

explanation of icons
-".LINK_ICON_LINK." : link to the category

-".LINK_ICON_EDIT." : edit the category

-".LINK_ICON_DELETE." : delete the category

-".LINK_ICON_ORDER_UP." : the up button allows you to move the category item one up in order.

-".LINK_ICON_ORDER_DOWN." : the down button allows you to move the category item one down in order.
-
-order
here you can manually set the order of all the categories. You need to change the values in the select boxes to the order of your kind and press the reorder button below to save the new order.
"); - -define("LAN_ADMIN_HELP_2", "the create link category page allows you to add new categories

You can upload a new icon, and after uploading assign the icon to the category."); -define("LAN_ADMIN_HELP_3", "the manage links page first show all categories.

".LINK_ICON_LINK." : link to the category

".LINK_ICON_EDIT." : click the icon to view all links in this category
"); -define("LAN_ADMIN_HELP_4", "the create link page allows you to add a new link

You can upload a new icon, and after uploading assign the icon to the link.

the open type allows you to define how the link will be opened when a user clicks on it."); -define("LAN_ADMIN_HELP_5", "the submitted links page shows all links that are submitted by users

detailed list
You see the link url, the name of the user who submitted the link and options.

explanation of icons
-".LINK_ICON_EDIT." : post the submitted link to the link create form

-".LINK_ICON_DELETE." : delete the submitted link
-"); -define("LAN_ADMIN_HELP_6", "the options page allows you to change the behaviour of the links_page plugin

-general options
-these options are generally used throughout the link pages.

-personal link managers
-the personal link managers are privileged users who can manage their own personally added links.

-category page
-here you can change options for the category page.

-links page
-These options are used on the link pages.

-refer page
-These options are used on the top refer links page.

-rating page
-These options are used on the top rated links page.
-"); - -define("LAN_ADMIN_HELP_7", "the edit link category page allows you to edit an existing category

You can upload a new icon, and after uploading assign the icon to the category.
You can update the timestamp of the link by checking the box."); - -define("LAN_ADMIN_HELP_8", "this page shows all existing links in the selected category.

detailed list
You see a list of the links with their image, name, options, and sorting options.

explanation of icons
-".LINK_ICON_LINK." : link to the website

-".LINK_ICON_EDIT." : edit the link

-".LINK_ICON_DELETE." : delete the link

-".LINK_ICON_ORDER_UP." : the up button allows you to move the link one up in order.

-".LINK_ICON_ORDER_DOWN." : the down button allows you to move the link one down in order.
-
-order
here you can manually set the order of all the links. You need to change the values in the select boxes to the order of your kind and press the reorder button below to save the new order.
"); - -define("LAN_ADMIN_HELP_9", "the edit link page allows you to edit an existing link

You can upload a new icon, and after uploading assign the icon to the link.

the open type allows you to define how the link will be opened when a user clicks on it."); -define("LAN_ADMIN_HELP_10", "the post submitted link page allows you to add a submitted link to the existing links

A small submitted text is added into the description field.

You can upload a new icon, and after uploading assign the icon to the link.

the open type allows you to define how the link will be opened when a user clicks on it."); -*/ -?> \ No newline at end of file diff --git a/e107_plugins/links_page/languages/English_admin_links_page.php b/e107_plugins/links_page/languages/English_admin_links_page.php deleted file mode 100644 index 58f371dd9..000000000 --- a/e107_plugins/links_page/languages/English_admin_links_page.php +++ /dev/null @@ -1,383 +0,0 @@ -> view all links"); -//define("LCLAN_USERPROFILE_2", "links: {total} links found"); - -define("LCLAN_PLUGIN_LAN_1", "Links Page"); -define("LCLAN_PLUGIN_LAN_2", "Links Page For Displaying External Web Links"); -define("LCLAN_PLUGIN_LAN_3", "Configure Links Page"); -define("LCLAN_PLUGIN_LAN_4", "links"); -define("LCLAN_PLUGIN_LAN_5", "Links page has successfully installed, please configure it from the Links Page link on the admin front page."); -define("LCLAN_PLUGIN_LAN_6", "Links_page successfully upgraded, now using version"); - -define("LCLAN_OPT_MENU_1", "general options"); -define("LCLAN_OPT_MENU_2", "personal link managers"); -define("LCLAN_OPT_MENU_3", "category page"); -define("LCLAN_OPT_MENU_4", "links display"); -define("LCLAN_OPT_MENU_5", "refer page"); -define("LCLAN_OPT_MENU_6", "rating page"); -define("LCLAN_OPT_MENU_7", "menu"); - -define("LCLAN_PAGETITLE_1", "Links"); -define("LCLAN_PAGETITLE_2", "All categories"); -define("LCLAN_PAGETITLE_3", "All Links"); -define("LCLAN_PAGETITLE_4", "category"); -define("LCLAN_PAGETITLE_5", "Top Rated"); -define("LCLAN_PAGETITLE_6", "Top Referrals"); -define("LCLAN_PAGETITLE_7", "Personal Link Manager"); -define("LCLAN_PAGETITLE_8", "Link Comments"); -define("LCLAN_PAGETITLE_9", "Submit Link"); -define("LCLAN_PAGETITLE_10", ""); - - -//define("LCLAN_OPT_1", "general options"); -define("LCLAN_OPT_2", "Link Page Options"); -define("LCLAN_OPT_3", "enabled"); -define("LCLAN_OPT_4", "disabled"); -define("LCLAN_OPT_5", "px"); -define("LCLAN_OPT_6", ""); -define("LCLAN_OPT_7", "divide categories into individual pages"); -define("LCLAN_OPT_8", "allow links to be submitted"); -define("LCLAN_OPT_9", "who can submit links"); -define("LCLAN_OPT_10", "use multiple pages to show the links"); -define("LCLAN_OPT_11", "number of links per page"); -define("LCLAN_OPT_12", "category page"); -define("LCLAN_OPT_13", "display which sections"); -define("LCLAN_OPT_14", "icon"); -define("LCLAN_OPT_15", "description"); -define("LCLAN_OPT_16", "amount"); -define("LCLAN_OPT_17", "referral"); -define("LCLAN_OPT_18", "url"); -define("LCLAN_OPT_19", "total category info line"); -define("LCLAN_OPT_20", "link to top refer"); -define("LCLAN_OPT_21", "link to top rated"); -define("LCLAN_OPT_22", "show default icon if none is present"); -define("LCLAN_OPT_23", "default sort method"); -define("LCLAN_OPT_24", "default order method"); -define("LCLAN_OPT_25", "default resize value"); -define("LCLAN_OPT_26", "links page"); -define("LCLAN_OPT_27", "allow users to rate links"); -define("LCLAN_OPT_28", "show default icon if none present"); -define("LCLAN_OPT_29", "display sort and order menu"); -define("LCLAN_OPT_30", "ascending"); -define("LCLAN_OPT_31", "descending"); -define("LCLAN_OPT_32", "use override of link open method"); -define("LCLAN_OPT_33", "default resize value"); -define("LCLAN_OPT_34", "name"); -define("LCLAN_OPT_35", "url"); -define("LCLAN_OPT_36", "order"); -define("LCLAN_OPT_37", "refer"); -define("LCLAN_OPT_38", ""); -define("LCLAN_OPT_39", ""); -define("LCLAN_OPT_40", "name"); -define("LCLAN_OPT_41", "id"); -define("LCLAN_OPT_42", "use individual link setting"); -define("LCLAN_OPT_43", "Opens in same window"); -define("LCLAN_OPT_44", "Opens in new window"); -define("LCLAN_OPT_45", "Opens in 600x400 mini-window"); -define("LCLAN_OPT_46", "who can manage links"); -define("LCLAN_OPT_47", "these users can add/edit their own personal links"); -define("LCLAN_OPT_48", "allow direct posting"); -define("LCLAN_OPT_49", "if enabled links are submitted directly, else a site admin needs to approve them"); -define("LCLAN_OPT_50", "allow direct deleting"); -define("LCLAN_OPT_51", "if enabled the link managers can delete their own links"); -define("LCLAN_OPT_52", "personal link managers"); -define("LCLAN_OPT_53", "date"); -define("LCLAN_OPT_54", "allow personal management on links"); -define("LCLAN_OPT_55", "allow comments on all links"); -define("LCLAN_OPT_56", "minimum refer value"); -define("LCLAN_OPT_57", "only links with a refer count larger then the given value are displayed (0 or empty = all)"); -define("LCLAN_OPT_58", "link to submit link"); -define("LCLAN_OPT_59", "link to personal manager (only if allowed)"); -define("LCLAN_OPT_60", "link to link frontpage"); -define("LCLAN_OPT_61", "link to all categories"); -define("LCLAN_OPT_62", "show these navigator links"); -define("LCLAN_OPT_63", "minimum rating value"); -define("LCLAN_OPT_64", "only links with a rating larger then the given value are displayed (0 or empty = all)"); -define("LCLAN_OPT_65", "show empty categories"); -define("LCLAN_OPT_66", "link to each category"); -define("LCLAN_OPT_67", "link to all links"); -define("LCLAN_OPT_68", "view all links"); - -define("LCLAN_OPT_69", "rendertype navigator links"); -define("LCLAN_OPT_70", "show category links"); -define("LCLAN_OPT_71", "rendertype category links"); -define("LCLAN_OPT_72", "show recent links"); -define("LCLAN_OPT_73", "display which data"); -define("LCLAN_OPT_74", "how many recent links are displayed"); -define("LCLAN_OPT_75", "hyperlinks"); -define("LCLAN_OPT_76", "selectbox"); -define("LCLAN_OPT_77", "category"); -define("LCLAN_OPT_78", "description"); -define("LCLAN_OPT_79", "caption navigator"); -define("LCLAN_OPT_80", "caption categories"); -define("LCLAN_OPT_81", "caption recent list"); -define("LCLAN_OPT_82", "navigator"); -define("LCLAN_OPT_83", "categories"); -define("LCLAN_OPT_84", "recent list"); -define("LCLAN_OPT_85", "caption menu"); -define("LCLAN_OPT_86", "link menu"); -define("LCLAN_OPT_87", "show amount of links"); - -//define("LCLAN_ADMIN_1", "update"); // deprecated -define("LCLAN_ADMIN_2", "Link saved to database."); -define("LCLAN_ADMIN_3", "Link updated in database."); -define("LCLAN_ADMIN_4", "Link Category Saved"); -define("LCLAN_ADMIN_5", "Link Category Updated"); -define("LCLAN_ADMIN_6", "Options Saved"); -define("LCLAN_ADMIN_7", "link icon was uploaded successfully !"); -define("LCLAN_ADMIN_8", "link icon was not uploaded !"); -define("LCLAN_ADMIN_9", "Order updated"); -define("LCLAN_ADMIN_10", "Link"); -define("LCLAN_ADMIN_11", "deleted"); // deprecated -define("LCLAN_ADMIN_12", "Link Category"); -define("LCLAN_ADMIN_13", "Submitted link deleted"); -define("LCLAN_ADMIN_14", "Links"); -define("LCLAN_ADMIN_15", "This category still contains links, please (re)move them first"); -define('LCLAN_ADMIN_16', 'Nothing changed - not updated'); - -define("LCLAN_SL_1", "Submitted Links"); -define("LCLAN_SL_2", "No submitted links"); -define("LCLAN_SL_3", "Link"); -define("LCLAN_SL_4", "Submitted by"); -define("LCLAN_SL_5", "Options"); -define("LCLAN_SL_6", "Post"); -define("LCLAN_SL_7", "Delete"); -define("LCLAN_SL_8", "Are you sure you want to delete this submitted link?"); -define("LCLAN_SL_9", "After submitting your link it will be reviewed by a site admin and if appropriate it will be added to the main links page."); -define("LCLAN_SL_10", "Category:"); -define("LCLAN_SL_11", "name"); -define("LCLAN_SL_12", "url"); -define("LCLAN_SL_13", "description"); -define("LCLAN_SL_14", "URL to link button:"); -define("LCLAN_SL_15", "Underlined fields are required."); -define("LCLAN_SL_16", "Submit Link"); -define("LCLAN_SL_17", ""); -define("LCLAN_SL_18", ""); - -define("LCLAN_CAT_1", "Image"); -define("LCLAN_CAT_2", "Category"); -define("LCLAN_CAT_3", "Options"); -define("LCLAN_CAT_4", "Move"); -define("LCLAN_CAT_5", "Order"); -define("LCLAN_CAT_6", "Edit"); -define("LCLAN_CAT_7", "Are"); -define("LCLAN_CAT_8", "Are you sure you want to delete this category?"); -define("LCLAN_CAT_9", "View Links"); -define("LCLAN_CAT_10", "Reorder"); -define("LCLAN_CAT_11", "No link categories"); -define("LCLAN_CAT_12", "Existing Link Categories"); -define("LCLAN_CAT_13", "Name:"); -define("LCLAN_CAT_14", "Description:"); -define("LCLAN_CAT_15", "Upload a new icon:"); -define("LCLAN_CAT_16", "Auto-Thumbnail size:"); -define("LCLAN_CAT_17", "This option is disabled as file uploading is not enabled on your server"); -define("LCLAN_CAT_18", "The"); -define("LCLAN_CAT_19", "folder is not writable, you need to CHMOD 777 the folder before uploading"); -define("LCLAN_CAT_20", "px"); -define("LCLAN_CAT_21", "upload"); -define("LCLAN_CAT_22", "Choose an icon:"); -define("LCLAN_CAT_23", "View Images"); -define("LCLAN_CAT_24", "Visible for:"); -define("LCLAN_CAT_25", "tick to update timestamp to current time"); -define("LCLAN_CAT_26", "Update Link Category"); -define("LCLAN_CAT_27", "Clear Form"); -define("LCLAN_CAT_28", "Create Link Category"); -define("LCLAN_CAT_29", "Link Category"); - -define("LCLAN_ITEM_1", "Submitted by"); -define("LCLAN_ITEM_2", "Category:"); -define("LCLAN_ITEM_3", "no categories yet"); -define("LCLAN_ITEM_4", "Name:"); -define("LCLAN_ITEM_5", "Url:"); -define("LCLAN_ITEM_6", "Description:"); -define("LCLAN_ITEM_7", "Upload an icon:"); -define("LCLAN_ITEM_8", "Auto-Thumbnail size:"); -define("LCLAN_ITEM_9", "This option is disabled as file uploading is not enabled on your server"); -define("LCLAN_ITEM_10", "The"); -define("LCLAN_ITEM_11", "folder is not writable, you need to CHMOD 777 the folder before uploading"); -define("LCLAN_ITEM_12", "px"); -define("LCLAN_ITEM_13", "upload"); -define("LCLAN_ITEM_14", "Choose an icon:"); -define("LCLAN_ITEM_15", "View Images"); -define("LCLAN_ITEM_16", "Open Type:"); -define("LCLAN_ITEM_17", "Opens in same window"); -define("LCLAN_ITEM_18", "Opens in new window"); -define("LCLAN_ITEM_19", "Opens in 600x400 mini-window"); -define("LCLAN_ITEM_20", "Visible for:"); -define("LCLAN_ITEM_21", "tick to update timestamp to current time"); -define("LCLAN_ITEM_22", "Update Link"); -define("LCLAN_ITEM_23", "Create link"); -define("LCLAN_ITEM_24", "Links"); -define("LCLAN_ITEM_25", "Image"); -define("LCLAN_ITEM_26", "Link Name"); -define("LCLAN_ITEM_27", "Options"); -define("LCLAN_ITEM_28", "Move"); -define("LCLAN_ITEM_29", "Order"); -define("LCLAN_ITEM_30", "Reorder"); -define("LCLAN_ITEM_31", "edit"); -define("LCLAN_ITEM_32", "delete"); -define("LCLAN_ITEM_33", "Are you sure you want to delete this link?"); -define("LCLAN_ITEM_34", "no icon"); -define("LCLAN_ITEM_35", "manage personal links"); -define("LCLAN_ITEM_36", "go"); -define("LCLAN_ITEM_37", "view all links"); -define("LCLAN_ITEM_38", "All Links"); -define("LCLAN_ITEM_39", "Rating"); - -define("LCLAN_ADMINMENU_1", "Link Options"); -define("LCLAN_ADMINMENU_2", "Manage Link Categories"); -define("LCLAN_ADMINMENU_3", "Create Link Category"); -define("LCLAN_ADMINMENU_4", "Manage Links"); -define("LCLAN_ADMINMENU_5", "Create Link"); -define("LCLAN_ADMINMENU_6", "Options"); -define("LCLAN_ADMINMENU_7", "Submitted Links"); -define("LCLAN_ADMINMENU_8", "Categories"); - -define("NT_LAN_LP_1", "Links Page Events"); -define("NT_LAN_LP_2", "Link submitted by user"); -define("NT_LAN_LP_3", "Link Submitted"); - -define("LNK_SCH_LAN_2", "All Links Categories"); -define("LNK_SCH_LAN_3", "All links details"); - -define("LAN_LINKS_MANAGER_0", "icon"); -define("LAN_LINKS_MANAGER_1", "link"); -define("LAN_LINKS_MANAGER_2", "options"); -define("LAN_LINKS_MANAGER_3", "create new link"); -define("LAN_LINKS_MANAGER_4", "you don't have any links present"); -define("LAN_LINKS_MANAGER_5", "category"); -define("LAN_LINKS_MANAGER_6", ""); -define("LAN_LINKS_MANAGER_7", ""); -define("LAN_LINKS_MANAGER_8", ""); -define("LAN_LINKS_MANAGER_9", ""); -/* -define("LAN_LINKS_1", "Total links"); -define("LAN_LINKS_2", "Total links activated"); -define("LAN_LINKS_3", "Anonymous"); -define("LAN_LINKS_4", "heading"); -define("LAN_LINKS_5", "url"); -define("LAN_LINKS_6", "order"); -define("LAN_LINKS_7", "refer"); -define("LAN_LINKS_8", "ascending"); -define("LAN_LINKS_9", "descending"); -define("LAN_LINKS_10", "Top Links : Refer"); -define("LAN_LINKS_11", "Top Links : Rating"); -define("LAN_LINKS_12", "view links by refer"); -define("LAN_LINKS_13", "view links by rating"); -define("LAN_LINKS_14", "view links frontpage"); -define("LAN_LINKS_15", "sort by"); -define("LAN_LINKS_16", "in this category"); -define("LAN_LINKS_17", "link"); -define("LAN_LINKS_18", "links"); -define("LAN_LINKS_19", "categories"); -define("LAN_LINKS_20", "category"); -define("LAN_LINKS_21", "There"); -define("LAN_LINKS_22", "is"); -define("LAN_LINKS_23", "are"); -define("LAN_LINKS_24", "total in"); -define("LAN_LINKS_25", "show all links"); -define("LAN_LINKS_26", "Referrals"); -define("LAN_LINKS_27", "submit a link"); -define("LAN_LINKS_28", "Thank you"); -define("LAN_LINKS_29", "Your link has been saved and will be reviewed by a site administrator."); -define("LAN_LINKS_30", "Link Categories"); -define("LAN_LINKS_31", "submit a link"); -define("LAN_LINKS_32", "Category:"); -define("LAN_LINKS_33", "No Links are rated yet."); -define("LAN_LINKS_34", "There are currently no links"); -define("LAN_LINKS_35", "personal links manager"); -define("LAN_LINKS_36", "link comments"); -define("LAN_LINKS_37", "Comments"); -define("LAN_LINKS_38", "date"); -define("LAN_LINKS_39", "Links"); -define("LAN_LINKS_40", "Category"); -define("LAN_LINKS_41", "no categories yet"); -define("LAN_LINKS_42", "no links are referred yet"); -define("LAN_LINKS_43", "view all categories"); -define("LAN_LINKS_44", "id"); -define("LAN_LINKS_45", "Link Category"); -define("LAN_LINKS_46", "Link Subcategories"); -define("LAN_LINKS_47", "link navigator..."); -define("LAN_LINKS_48", "-- view category --"); -define("LAN_LINKS_49", ""); -define("LAN_LINKS_50", "You do not have permission to submit links at present"); - -define('LAN_LINKS_SCH_1','Posted in reply to link'); -*/ - -// Admin log texts -//---------------- -define('LAN_AL_LINKS_01', 'Links page preferences changed'); -define('LAN_AL_LINKS_02', 'Link deleted'); -define('LAN_AL_LINKS_03', 'Link category deleted'); -define('LAN_AL_LINKS_04', 'Submitted link deleted'); -define('LAN_AL_LINKS_05', 'Link category added'); -define('LAN_AL_LINKS_06', 'Link category updated'); -define('LAN_AL_LINKS_07', 'Link order updated'); -define('LAN_AL_LINKS_08', 'Link Category order updated'); -define('LAN_AL_LINKS_09', 'Link: move up'); -define('LAN_AL_LINKS_10', 'Category: move up'); -define('LAN_AL_LINKS_11', 'Link: move down'); -define('LAN_AL_LINKS_12', 'Category: move down'); -define('LAN_AL_LINKS_13', 'Link created'); -define('LAN_AL_LINKS_14', 'Link updated'); -define('LAN_AL_LINKS_15', ''); -define('LAN_AL_LINKS_16', ''); - - -define("LAN_ADMIN_HELP_0", "linkspage help area"); - -define("LAN_ADMIN_HELP_1", "the manage link categories page shows all categories present.

detailed list
You see a list of all categories with their icon, name and description, options, and sorting options.

explanation of icons
-".defset('LINK_ICON_LINK')." : link to the category

-".defset('LINK_ICON_EDIT')." : edit the category

-".defset('LINK_ICON_DELETE')." : delete the category

-".defset('LINK_ICON_ORDER_UP')." : the up button allows you to move the category item one up in order.

-".defset('LINK_ICON_ORDER_DOWN')." : the down button allows you to move the category item one down in order.
-
-order
here you can manually set the order of all the categories. You need to change the values in the select boxes to the order of your kind and press the reorder button below to save the new order.
"); - -// FIXME - not to be used in language files!!! Temporary fix to avoid notices in e.g. plugin manager -define("LAN_ADMIN_HELP_2", "the create link category page allows you to add new categories

You can upload a new icon, and after uploading assign the icon to the category."); -define("LAN_ADMIN_HELP_3", "the manage links page first show all categories.

".defset('LINK_ICON_LINK')." : link to the category

".defset('LINK_ICON_EDIT')." : click the icon to view all links in this category
"); -define("LAN_ADMIN_HELP_4", "the create link page allows you to add a new link

You can upload a new icon, and after uploading assign the icon to the link.

the open type allows you to define how the link will be opened when a user clicks on it."); -define("LAN_ADMIN_HELP_5", "the submitted links page shows all links that are submitted by users

detailed list
You see the link url, the name of the user who submitted the link and options.

explanation of icons
-".defset('LINK_ICON_EDIT')." : post the submitted link to the link create form

-".defset('LINK_ICON_DELETE')." : delete the submitted link
-"); -define("LAN_ADMIN_HELP_6", "the options page allows you to change the behaviour of the links_page plugin

-general options
-these options are generally used throughout the link pages.

-personal link managers
-the personal link managers are privileged users who can manage their own personally added links.

-category page
-here you can change options for the category page.

-links page
-These options are used on the link pages.

-refer page
-These options are used on the top refer links page.

-rating page
-These options are used on the top rated links page.
-"); - -define("LAN_ADMIN_HELP_7", "the edit link category page allows you to edit an existing category

You can upload a new icon, and after uploading assign the icon to the category.
You can update the timestamp of the link by checking the box."); - -define("LAN_ADMIN_HELP_8", "this page shows all existing links in the selected category.

detailed list
You see a list of the links with their image, name, options, and sorting options.

explanation of icons
-".defset('LINK_ICON_LINK')." : link to the website

-".defset('LINK_ICON_EDIT')." : edit the link

-".defset('LINK_ICON_DELETE')." : delete the link

-".defset('LINK_ICON_ORDER_UP')." : the up button allows you to move the link one up in order.

-".defset('LINK_ICON_ORDER_DOWN')." : the down button allows you to move the link one down in order.
-
-order
here you can manually set the order of all the links. You need to change the values in the select boxes to the order of your kind and press the reorder button below to save the new order.
"); - -define("LAN_ADMIN_HELP_9", "the edit link page allows you to edit an existing link

You can upload a new icon, and after uploading assign the icon to the link.

the open type allows you to define how the link will be opened when a user clicks on it."); -define("LAN_ADMIN_HELP_10", "the post submitted link page allows you to add a submitted link to the existing links

A small submitted text is added into the description field.

You can upload a new icon, and after uploading assign the icon to the link.

the open type allows you to define how the link will be opened when a user clicks on it."); -?> \ No newline at end of file diff --git a/e107_plugins/links_page/languages/English_global.php b/e107_plugins/links_page/languages/English_global.php deleted file mode 100644 index 4528762ba..000000000 --- a/e107_plugins/links_page/languages/English_global.php +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/e107_plugins/links_page/link_class.php b/e107_plugins/links_page/link_class.php deleted file mode 100644 index 2025bd1f4..000000000 --- a/e107_plugins/links_page/link_class.php +++ /dev/null @@ -1,1636 +0,0 @@ - db_Select("core", "*", "e107_name='links_page' "); - if ($num_rows == 0) - { - $linkspage_pref = $this->LinkPageDefaultPrefs(); - $tmp = $eArrayStorage->WriteArray($linkspage_pref); - $sql -> db_Insert("core", "'links_page', '{$tmp}' "); - $sql -> db_Select("core", "*", "e107_name='links_page' "); - } - $row = $sql -> db_Fetch(); - $linkspage_pref = $eArrayStorage->ReadArray($row['e107_value']); - - return $linkspage_pref; - } - - - function UpdateLinksPagePref() - { - global $sql, $eArrayStorage, $tp, $admin_log; - - $num_rows = $sql -> db_Select("core", "*", "e107_name='links_page' "); - if ($num_rows == 0) - { - $sql -> db_Insert("core", "'links_page', '' "); // Create dummy entry if none present - $oldPref = array(); - } - else - { - $row = $sql->db_Fetch(MYSQL_ASSOC); - $oldPref = $eArrayStorage->ReadArray($row['e107_value']); - unset($row); - } - $linkspage_pref = array(); - //assign new preferences - foreach($_POST as $k => $v) - { - if(strpos($k, "link_") === 0) - { - $linkspage_pref[$k] = $tp->toDB($v); - } - } - - if ($admin_log->logArrayDiffs($linkspage_pref, $oldPref, 'LINKS_01')) - { - //create new array of preferences - $tmp = $eArrayStorage->WriteArray($linkspage_pref); - $sql -> db_Update("core", "`e107_value` = '{$tmp}' WHERE `e107_name` = 'links_page' "); - } - return $linkspage_pref; - } - - - function ShowNextPrev($from='0', $number, $total) - { - global $linkspage_pref, $qs, $tp, $link_shortcodes, $LINK_NEXTPREV, $LINK_NP_TABLE, $pref; - - $number = (e_PAGE == 'admin_linkspage_config.php' ? '20' : $number); - if($total<=$number) - { - return; - } - if(e_PAGE == 'admin_linkspage_config.php' || (isset($linkspage_pref["link_nextprev"]) && $linkspage_pref["link_nextprev"])) - { - $np_querystring = e_SELF."?[FROM]".(isset($qs[0]) ? ".".$qs[0] : "").(isset($qs[1]) ? ".".$qs[1] : "").(isset($qs[2]) ? ".".$qs[2] : "").(isset($qs[3]) ? ".".$qs[3] : "").(isset($qs[4]) ? ".".$qs[4] : ""); - $parms = $total.",".$number.",".$from.",".$np_querystring.""; - $LINK_NEXTPREV = $tp->parseTemplate("{NEXTPREV={$parms}}"); - - if(!isset($LINK_NP_TABLE)){ - $template = (e_PAGE == 'admin_linkspage_config.php' ? e_THEME.$pref['sitetheme']."/" : THEME)."links_template.php"; - if(is_readable($template)){ - require_once($template); - }else{ - require_once(e_PLUGIN."links_page/links_template.php"); - } - } - echo $tp -> parseTemplate($LINK_NP_TABLE, FALSE, $link_shortcodes); - } - } - - - function setPageTitle() - { - global $sql, $qs, $linkspage_pref; - - //show all categories - if(!isset($qs[0]) && $linkspage_pref['link_page_categories']){ - $page = LCLAN_PAGETITLE_1." / ".LCLAN_PAGETITLE_2; - } - //show all categories - if(isset($qs[0]) && $qs[0] == "cat" && !isset($qs[1]) ){ - $page = LCLAN_PAGETITLE_1." / ".LCLAN_PAGETITLE_2; - } - //show all links in all categories - if( (!isset($qs[0]) && !$linkspage_pref['link_page_categories']) || (isset($qs[0]) && $qs[0] == "all") ){ - $page = LCLAN_PAGETITLE_1." / ".LCLAN_PAGETITLE_3; - } - //show all links in one categories - if(isset($qs[0]) && $qs[0] == "cat" && isset($qs[1]) && is_numeric($qs[1])){ - $sql -> db_Select("links_page_cat", "link_category_name", "link_category_id='".$qs[1]."' "); - $row2 = $sql -> db_Fetch(); - $page = LCLAN_PAGETITLE_1." / ".LCLAN_PAGETITLE_4." / ".$row2['link_category_name']; - } - //view top rated - if(isset($qs[0]) && $qs[0] == "rated"){ - $page = LCLAN_PAGETITLE_1." / ".LCLAN_PAGETITLE_5; - } - //view top refer - if(isset($qs[0]) && $qs[0] == "top"){ - $page = LCLAN_PAGETITLE_1." / ".LCLAN_PAGETITLE_6; - } - //personal link managers - if (isset($qs[0]) && $qs[0] == "manage"){ - $page = LCLAN_PAGETITLE_1." / ".LCLAN_PAGETITLE_7; - } - //comments on links - if (isset($qs[0]) && $qs[0] == "comment" && isset($qs[1]) && is_numeric($qs[1]) ){ - $page = LCLAN_PAGETITLE_1." / ".LCLAN_PAGETITLE_8; - } - //submit link - if (isset($qs[0]) && $qs[0] == "submit" && check_class($linkspage_pref['link_submit_class'])) { - $page = LCLAN_PAGETITLE_1." / ".LCLAN_PAGETITLE_9; - } - //define("e_PAGETITLE", strtolower($page)); - define("e_PAGETITLE", $page); - } - - - - - function parse_link_append($rowl) - { - global $tp, $linkspage_pref; - if($linkspage_pref['link_open_all'] && $linkspage_pref['link_open_all'] == "5"){ - $link_open_type = $rowl['link_open']; - }else{ - $link_open_type = $linkspage_pref['link_open_all']; - } - - switch ($link_open_type) { - case 1: - $lappend = ""; // Googlebot won't see it any other way. - break; - case 2: - $lappend = ""; // Googlebot won't see it any other way. - break; - case 3: - $lappend = ""; // Googlebot won't see it any other way. - break; - case 4: - $lappend = ""; // Googlebot won't see it any other way. - break; - default: - $lappend = ""; // Googlebot won't see it any other way. - } - return $lappend; - } - - - - - - function showLinkSort($mode='') - { - global $rs, $ns, $qs, $linkspage_pref; - - $check = ""; - if($qs){ - for($i=0;$i form_open("post", e_SELF, "linkorder", "", "enctype='multipart/form-data'")." - ".LAN_LINKS_15." - ".$rs -> form_select_open("link_sort"); - if($mode == "cat"){ - $sotext .= " - ".$rs -> form_option(LAN_LINKS_4, ($checks == "heading" ? "1" : "0"), "heading", "")." - ".$rs -> form_option(LAN_LINKS_44, ($checks == "id" ? "1" : "0"), "id", "")." - ".$rs -> form_option(LAN_LINKS_6, ($checks == "order" ? "1" : "0"), "order", ""); - }else{ - $sotext .= " - ".$rs -> form_option(LAN_LINKS_4, ($checks == "heading" ? "1" : "0"), "heading", "")." - ".$rs -> form_option(LAN_LINKS_5, ($checks == "url" ? "1" : "0"), "url", "")." - ".$rs -> form_option(LAN_LINKS_6, ($checks == "order" ? "1" : "0"), "order", "")." - ".$rs -> form_option(LAN_LINKS_7, ($checks == "refer" ? "1" : "0"), "refer", "")." - ".$rs -> form_option(LAN_LINKS_38, ($checks == "date" ? "1" : "0"), "date", ""); - } - $sotext .= " - ".$rs -> form_select_close()." - ".LAN_LINKS_6." - ".$rs -> form_select_open("link_order")." - ".$rs -> form_option(LAN_LINKS_8, ($checko == "a" ? "1" : "0"), $baseurl."?".($qry ? $qry."." : "")."ordera", "")." - ".$rs -> form_option(LAN_LINKS_9, ($checko == "d" ? "1" : "0"), $baseurl."?".($qry ? $qry."." : "")."orderd", "")." - ".$rs -> form_select_close()." - ".$rs -> form_button("button", "submit", LCLAN_ITEM_36, " onclick=\"document.location=link_order.options[link_order.selectedIndex].value+link_sort.options[link_sort.selectedIndex].value;\"", "", "")." - ".$rs -> form_close(); - - return $sotext; - } - - - function parseOrderCat($orderstring) - { - if(substr($orderstring,6) == "heading"){ - $orderby = "link_category_name"; - $orderby2 = ""; - }elseif(substr($orderstring,6) == "id"){ - $orderby = "link_category_id"; - $orderby2 = ", link_category_name ASC"; - }elseif(substr($orderstring,6) == "order"){ - $orderby = "link_category_order"; - $orderby2 = ", link_category_name ASC"; - }else{ - $orderstring = "orderdheading"; - $orderby = "link_category_name"; - $orderby2 = ", link_category_name ASC"; - } - return $orderby." ".(substr($orderstring,5,1) == "a" ? "ASC" : "DESC")." ".$orderby2; - } - - function parseOrderLink($orderstring) - { - if(substr($orderstring,6) == "heading"){ - $orderby = "link_name"; - $orderby2 = ""; - }elseif(substr($orderstring,6) == "url"){ - $orderby = "link_url"; - $orderby2 = ", link_name ASC"; - }elseif(substr($orderstring,6) == "refer"){ - $orderby = "link_refer"; - $orderby2 = ", link_name ASC"; - }elseif(substr($orderstring,6) == "date"){ - $orderby = "link_datestamp"; - $orderby2 = ", link_name ASC"; - }elseif(substr($orderstring,6) == "order"){ - $orderby = "link_order"; - $orderby2 = ", link_name ASC"; - }else{ - $orderstring = "orderaorder"; - $orderby = "link_order"; - $orderby2 = ", link_name ASC"; - } - return $orderby." ".(substr($orderstring,5,1) == "a" ? "ASC" : "DESC")." ".$orderby2; - } - - function getOrder($mode='') - { - global $qs, $linkspage_pref; - - if(isset($qs[0]) && substr($qs[0],0,5) == "order"){ - $orderstring = $qs[0]; - }elseif(isset($qs[1]) && substr($qs[1],0,5) == "order"){ - $orderstring = $qs[1]; - }elseif(isset($qs[2]) && substr($qs[2],0,5) == "order"){ - $orderstring = $qs[2]; - }elseif(isset($qs[3]) && substr($qs[3],0,5) == "order"){ - $orderstring = $qs[3]; - }else{ - if($mode == "cat"){ - $orderstring = "order".($linkspage_pref["link_cat_order"] == "ASC" ? "a" : "d" ).($linkspage_pref["link_cat_sort"] ? $linkspage_pref["link_cat_sort"] : "date" ); - }else{ - $orderstringcat = "order".($linkspage_pref["link_cat_order"] == "ASC" ? "a" : "d" ).($linkspage_pref["link_cat_sort"] ? $linkspage_pref["link_cat_sort"] : "date" ); - - $orderstring = "order".($linkspage_pref["link_order"] == "ASC" ? "a" : "d" ).($linkspage_pref["link_sort"] ? $linkspage_pref["link_sort"] : "date" ); - } - } - - if($mode == "cat"){ - $str = $this -> parseOrderCat($orderstring); - }else{ - if(isset($orderstringcat)){ - $str = $this -> parseOrderCat($orderstringcat); - $str .= ", ".$this -> parseOrderLink($orderstring); - }else{ - $str = $this -> parseOrderLink($orderstring); - } - } - - $order = " ORDER BY ".$str; - return $order; - } - - function show_message($message, $caption='') - { - global $ns; - $ns->tablerender($caption, "
".$message."
"); - } - - function uploadLinkIcon() - { - global $ns, $pref; - $pref['upload_storagetype'] = "1"; - require_once(e_HANDLER."upload_handler.php"); - $pathicon = e_PLUGIN."links_page/link_images/"; - $uploaded = file_upload($pathicon); - - $icon = ""; - if($uploaded) - { - $icon = $uploaded[0]['name']; - if($_POST['link_resize_value']) - { - require_once(e_HANDLER."resize_handler.php"); - resize_image($pathicon.$icon, $pathicon.$icon, $_POST['link_resize_value'], "nocopy"); - } - } - $msg = ($icon ? LCLAN_ADMIN_7 : LCLAN_ADMIN_8); - $this -> show_message($msg); - } - - function uploadCatLinkIcon() - { - global $ns, $pref; - $pref['upload_storagetype'] = "1"; - require_once(e_HANDLER."upload_handler.php"); - $pathicon = e_PLUGIN."links_page/cat_images/"; - $uploaded = file_upload($pathicon); - - $icon = ""; - if($uploaded) - { - $icon = $uploaded[0]['name']; - if($_POST['link_cat_resize_value']) - { - require_once(e_HANDLER."resize_handler.php"); - resize_image($pathicon.$icon, $pathicon.$icon, $_POST['link_cat_resize_value'], "nocopy"); - } - } - $msg = ($icon ? LCLAN_ADMIN_7 : LCLAN_ADMIN_8); - $this -> show_message($msg); - } - - - function dbCategoryCreate() - { - global $sql, $tp, $admin_log; - $link_t = $sql->db_Count("links_page_cat", "(*)"); - $linkData = array(); - $linkData['link_category_name'] = $tp -> toDB($_POST['link_category_name']); - $linkData['link_category_description'] = $tp -> toDB($_POST['link_category_description']); - $linkData['link_category_icon'] = $tp -> toDB($_POST['link_category_icon']); - $linkData['link_category_order'] = $link_t+1; - $linkData['link_category_class'] = $tp -> toDB($_POST['link_category_class']); - $linkData['link_category_datestamp'] = time(); - $sql->db_Insert('links_page_cat', $linkData); - $admin_log->logArrayAll('LINKS_05',$linkData); - $this->show_message(LCLAN_ADMIN_4); - } - - - function dbCategoryUpdate() - { - global $sql, $tp, $admin_log; - global $sql, $tp; - $time = ($_POST['update_datestamp'] ? time() : ($_POST['link_category_datestamp'] != "0" ? $_POST['link_category_datestamp'] : time()) ); - $linkData = array(); - $linkData['link_category_name'] = $tp -> toDB($_POST['link_category_name']); - $linkData['link_category_description'] = $tp -> toDB($_POST['link_category_description']); - $linkData['link_category_icon'] = $tp -> toDB($_POST['link_category_icon']); - $linkData['link_category_order'] = $link_t+1; - $linkData['link_category_class'] = $tp -> toDB($_POST['link_category_class']); - $linkData['link_category_datestamp'] = $time; - $sql->db_UpdateArray("links_page_cat", $linkData," WHERE link_category_id='".intval($_POST['link_category_id'])."'"); - $admin_log->logArrayAll('LINKS_06',$linkData); - $this->show_message(LCLAN_ADMIN_5); - } - - - function dbOrderUpdate($order) - { - global $sql, $admin_log; - foreach ($order as $order_id) - { - $tmp = explode(".", $order_id); - $sql->db_Update("links_page", "link_order=".intval($tmp[1])." WHERE link_id=".intval($tmp[0])); - } - $admin_log->logArrayAll('LINKS_07',$order); - $this->show_message(LCLAN_ADMIN_9); - } - - - function dbOrderCatUpdate($order) - { - global $sql, $admin_log; - foreach ($order as $order_id) - { - $tmp = explode(".", $order_id); - $sql->db_Update("links_page_cat", "link_category_order=".intval($tmp[1])." WHERE link_category_id=".intval($tmp[0])); - } - $admin_log->logArrayAll('LINKS_08',$order); - $this->show_message(LCLAN_ADMIN_9); - } - - - function dbOrderUpdateInc($linkid, $link_order, $location) - { - global $sql, $admin_log; - //$tmp = explode(".", $inc); - //$linkid = intval($tmp[0]); - //$link_order = intval($tmp[1]); - //$location = $tmp[2]; - if($location) - { - $sql->db_Update("links_page", "link_order=link_order+1 WHERE link_order='".($link_order-1)."' AND link_category=".$location); - $sql->db_Update("links_page", "link_order=link_order-1 WHERE link_id='{$linkid}' AND link_category=".$location); - $admin_log->log_event('LINKS_09','ID: '.$location.' -inc- '.$link_order,E_LOG_INFORMATIVE,''); - } - else - { - $sql->db_Update("links_page_cat", "link_category_order=link_category_order+1 WHERE link_category_order=".($link_order-1)); - $sql->db_Update("links_page_cat", "link_category_order=link_category_order-1 WHERE link_category_id=".$linkid); - $admin_log->log_event('LINKS_10','ID: '.$linkid.' -inc- '.$link_order,E_LOG_INFORMATIVE,''); - } - } - - function dbOrderUpdateDec($linkid, $link_order, $location) - { - global $sql, $admin_log; - //$tmp = explode(".", $dec); - //$linkid = intval($tmp[0]); - //$link_order = intval($tmp[1]); - //$location = $tmp[2]; - if($location) - { - $sql->db_Update("links_page", "link_order=link_order-1 WHERE link_order=".($link_order+1)." AND link_category=".$location); - $sql->db_Update("links_page", "link_order=link_order+1 WHERE link_id='{$linkid}' AND link_category=".$location); - $admin_log->log_event('LINKS_11','ID: '.$location.' -dec- '.$link_order,E_LOG_INFORMATIVE,''); - } - else - { - $sql->db_Update("links_page_cat", "link_category_order=link_category_order-1 WHERE link_category_order='".($link_order+1)."' "); - $sql->db_Update("links_page_cat", "link_category_order=link_category_order+1 WHERE link_category_id=".$linkid); - $admin_log->log_event('LINKS_12','ID: '.$linkid.' -dec- '.$link_order,E_LOG_INFORMATIVE,''); - } - } - - function verify_link_manage($id) - { - global $sql; - - if ($sql->db_Select("links_page", "link_author", "link_id='".intval($id)."' ")) - { - $row = $sql->db_Fetch(); - } - - if(varset($row['link_author']) != USERID) - { - js_location(SITEURL); - } - } - - // Create a new link. If $mode == 'submit', link has to go through the approval process; else its admin entry - function dbLinkCreate($mode='') - { - global $ns, $tp, $qs, $sql, $e107cache, $e_event, $linkspage_pref, $admin_log; - - $edata_ls = array( - 'link_category' => intval($_POST['cat_id']), - 'link_name' => $tp->toDB($_POST['link_name']), - 'link_url' => $tp->toDB($_POST['link_url']), - 'link_description' => $tp->toDB($_POST['link_description']), - 'link_button' => $tp->toDB($_POST['link_but']) - ); - - if (!$edata_ls['link_name'] || !$edata_ls['link_url'] || !$edata_ls['link_description']) - { - message_handler("ALERT", 5); - return; - } - - if ($edata_ls['link_url'] && !strstr($edata_ls['link_url'], "http")) - { - $edata_ls['link_url'] = "http://".$edata_ls['link_url']; - } - - //create link, submit area, tmp table - if(isset($mode) && $mode == "submit") - { - $edata_ls['username'] = (defined('USERNAME')) ? USERNAME : LAN_LINKS_3; - - $submitted_link = implode('^', $edata_ls); - $sql->db_Insert("tmp", "'submitted_link', '".time()."', '$submitted_link' "); - - $edata_ls['submitted_link'] = $submitted_link; - $e_event->trigger("linksub", $edata_ls); - //header("location:".e_SELF."?s"); - js_location(e_SELF."?s"); - } - else - { // Admin-entered link - $link_t = $sql->db_Count("links_page", "(*)", "WHERE link_category='".intval($_POST['cat_id'])."'"); - $time = ($_POST['update_datestamp'] ? time() : ($_POST['link_datestamp'] != "0" ? $_POST['link_datestamp'] : time()) ); - - $edata_ls['link_open'] = intval($_POST['linkopentype']); - $edata_ls['link_class'] =intval(varset($_POST['link_class'])); - $edata_ls['link_author'] = USERID; // Default - //update link - if (is_numeric($qs[2]) && $qs[1] != "sn") - { - if($qs[1]!== "manage") - { - $edata_ls['link_author'] = ($_POST['link_author'] && $_POST['link_author']!='' ? $tp -> toDB($_POST['link_author']) : USERID); - } - - $edata_ls['link_datestamp'] = $time; - $sql->db_UpdateArray("links_page", $edata_ls, " WHERE link_id='".intval($qs[2])."'"); - $msg = LCLAN_ADMIN_3; - $data = array('method'=>'update', 'table'=>'links_page', 'id'=>$qs[2], 'plugin'=>'links_page', 'function'=>'dbLinkCreate'); - $msg .= $e_event->triggerHook($data); - $admin_log->logArrayAll('LINKS_14',$edata_ls); - $e107cache->clear("sitelinks"); - $this->show_message($msg); - //create link - } - else - { - $edata_ls['link_datestamp'] = time(); - $edata_ls['link_order'] = $link_t+1; - $sql->db_Insert("links_page", $edata_ls); - $msg = LCLAN_ADMIN_2; - $id = mysql_insert_id(); - $data = array('method'=>'create', 'table'=>'links_page', 'id'=>$id, 'plugin'=>'links_page', 'function'=>'dbLinkCreate'); - $msg .= $e_event->triggerHook($data); - $admin_log->logArrayAll('LINKS_13',$edata_ls); - $e107cache->clear("sitelinks"); - $this->show_message($msg); - } - //delete from tmp table after approval - if (is_numeric($qs[2]) && $qs[1] == "sn") - { - $sql->db_Delete("tmp", "tmp_time=".intval($qs[2])); - } - } - } - - function show_link_create() - { - global $rs, $qs, $linkspage_pref, $e_event; - $sql = e107::getDb(); - $frm = e107::getForm(); - $ns = e107::getRender(); - $fl = e107::getFile(); - - $row['link_category'] = ""; - $row['link_name'] = ""; - $row['link_url'] = ""; - $row['link_description'] = ""; - $row['link_button'] = ""; - $row['link_open'] = ""; - $row['link_class'] = ""; - $link_resize_value = (isset($linkspage_pref['link_resize_value']) && $linkspage_pref['link_resize_value'] ? $linkspage_pref['link_resize_value'] : "100"); - - if (isset($qs[1]) && $qs[1] == 'edit' && !isset($_POST['submit'])) - { - if ($sql->db_Select("links_page", "*", "link_id='".intval($qs[2])."' ")) - { - $row = $sql->db_Fetch(); - } - } - - if (isset($qs[1]) && $qs[1] == 'sn') - { - if ($sql->db_Select("tmp", "*", "tmp_time='".intval($qs[2])."'")) { - $row = $sql->db_Fetch(); - $submitted = explode("^", $row['tmp_info']); - $row['link_category'] = $submitted[0]; - $row['link_name'] = $submitted[1]; - $row['link_url'] = $submitted[2]; - $row['link_description'] = $submitted[3]."\n[i]".LCLAN_ITEM_1." ".$submitted[5]."[/i]"; - $row['link_button'] = $submitted[4]; - - } - } - - if(isset($_POST['uploadlinkicon'])){ - $row['link_category'] = $_POST['cat_id']; - $row['link_name'] = $_POST['link_name']; - $row['link_url'] = $_POST['link_url']; - $row['link_description'] = $_POST['link_description']; - $row['link_button'] = $_POST['link_but']; - $row['link_open'] = $_POST['linkopentype']; - $row['link_class'] = $_POST['link_class']; - $link_resize_value = (isset($_POST['link_resize_value']) && $_POST['link_resize_value'] ? $_POST['link_resize_value'] : $link_resize_value); - } - $width = (e_PAGE == "admin_linkspage_config.php" ? ADMIN_WIDTH : "width:100%;"); - $text = " - ".$rs -> form_open("post", e_SELF."?".e_QUERY, "linkform", "", "enctype='multipart/form-data'", "")." - - - - - - - - - - - - - - - - - - - - - "; - -// $rejectlist = array('$.','$..','/','CVS','thumbs.db','Thumbs.db','*._$', 'index', 'null*', 'blank*'); - $iconpath = e_PLUGIN."links_page/link_images/"; - $iconlist = $fl->get_files($iconpath); - $iconpath = e_PLUGIN_ABS."links_page/link_images/"; // Absolute paths now we've got the files - // TODO FIX - needs replacement with up-to-date form handling, see below. - $text .= " - - - - "; - - //0=same window, 1=_blank, 2=_parent, 3=_top, 4=miniwindow - $text .= " - - - - - - - - "; - - //triggerHook - $data = array('method'=>'form', 'table'=>'links_page', 'id'=>vartrue($row['link_id']), 'plugin'=>'links_page', 'function'=>'show_link_create'); - $text .= $frm->renderHooks($data); - - $text .= " - - - -
".LCLAN_ITEM_2.""; - - if (!$link_cats = $sql->db_Select("links_page_cat")) { - $text .= LCLAN_ITEM_3."
"; - } else { - $text .= $rs -> form_select_open("cat_id", ""); - while (list($cat_id, $cat_name, $cat_description) = $sql->db_Fetch()) { - if ( (isset($row['link_category']) && $row['link_category'] == $cat_id) || (isset($row['linkid']) && $cat_id == $row['linkid'] && $action == "add") ) { - $text .= $rs -> form_option($cat_name, "1", $cat_id, ""); - } else { - $text .= $rs -> form_option($cat_name, "0", $cat_id, ""); - } - } - $text .= $rs -> form_select_close(); - } - $text .= " -
".LCLAN_ITEM_4." - ".$rs -> form_text("link_name", 60, $row['link_name'], 100)." -
".LCLAN_ITEM_5." - ".$rs -> form_text("link_url", 60, $row['link_url'], 200)." -
".LCLAN_ITEM_6." - ".$rs -> form_textarea("link_description", '59', '3', $row['link_description'], "", "", "", "", "")." -
".LCLAN_ITEM_7.""; - if(!FILE_UPLOADS){ - $text .= "".LCLAN_ITEM_9.""; - }else{ - if(!is_writable(e_PLUGIN."links_page/link_images/")){ - $text .= "".LCLAN_ITEM_10." ".e_PLUGIN."links_page/link_images/ ".LCLAN_ITEM_11."
"; - } - $text .= " -
- ".LCLAN_ITEM_8." ".$rs -> form_text("link_resize_value", 3, $link_resize_value, 3)." ".LCLAN_ITEM_12." - ".$frm->admin_button('uploadlinkicon', LCLAN_ITEM_13, 'submit'); - } - $text .= " -
".LCLAN_ITEM_14." - -
"; - $selectjs = " onchange=\"document.getElementById('link_but').value=this.options[this.selectedIndex].value; if(this.options[this.selectedIndex].value!=''){document.getElementById('iconview').src='".$iconpath."'+this.options[this.selectedIndex].value; document.getElementById('iconview').style.display='block';}else{document.getElementById('iconview').src='';document.getElementById('iconview').style.display='none';}\""; - $text .= $rs -> form_select_open("link_button", $selectjs); - $text .= $rs -> form_option(LCLAN_ITEM_34, ($row['link_button'] ? "0" : "1"), ""); - foreach($iconlist as $icon){ - $text .= $rs -> form_option($icon['fname'], ($icon['fname'] == $row['link_button'] ? "1" : "0"), $icon['fname'] ); - } - $text .= $rs -> form_select_close(); - if(isset($row['link_button']) && $row['link_button']){ - $img = $iconpath.$row['link_button']; - }else{ - $blank_display = 'display: none'; - $img = e_PLUGIN_ABS."links_page/images/blank.gif"; - } - $text .= "

"; - $text .= "
-
".LCLAN_ITEM_16." - ".$rs -> form_select_open("linkopentype")." - ".$rs -> form_option(LCLAN_ITEM_17, ($row['link_open'] == "0" ? "1" : "0"), "0", "")." - ".$rs -> form_option(LCLAN_ITEM_18, ($row['link_open'] == "1" ? "1" : "0"), "1", "")." - ".$rs -> form_option(LCLAN_ITEM_19, ($row['link_open'] == "4" ? "1" : "0"), "4", "")." - ".$rs -> form_select_close()." -
".LCLAN_ITEM_20." - ".r_userclass("link_class", $row['link_class'], "off", "public,guest,nobody,member,admin,classes")." -
"; - if (isset($qs[2]) && $qs[2] && $qs[1] == "edit") { - $text .= $rs -> form_hidden("link_datestamp", $row['link_datestamp']); - $text .= $rs -> form_checkbox("update_datestamp", 1, 0)." ".LCLAN_ITEM_21."

"; - $text .= $rs -> form_button("submit", "add_link", LCLAN_ITEM_22, "", "", "").$rs -> form_hidden("link_id", $row['link_id']).$rs -> form_hidden("link_author", $row['link_author']); - - } else { - $text .= " -
- ".$frm->admin_button('add_link', LCLAN_ITEM_23, 'submit')." -
"; - } - $text .= "
- ".$rs -> form_close()." - "; - // TODO FIX - seperate div buttons-bar from table - $ns->tablerender(LCLAN_PAGETITLE_1, $text); - } - - - - /** - * Display list of links within a particular category - */ - function show_links() - { - global $qs, $rs, $from; - $sql = e107::getDb(); - $frm = e107::getForm(); - $tp = e107::getParser(); - $ns = e107::getRender(); - - $number = "20"; - $LINK_CAT_NAME = ''; // May be appropriate to add a shortcode later - - if($qs[2] == "all") - { // Show all categories - $caption = LCLAN_ITEM_38; - $qry = " link_id != '' ORDER BY link_category ASC, link_order ASC"; - } - else - { // Show single category - if ($sql->db_Select("links_page_cat", "link_category_name", "link_category_id='".intval($qs[2])."' " )) - { - $row = $sql->db_Fetch(); - $caption = LCLAN_ITEM_2." ".$row['link_category_name']; - } - $qry = " link_category=".intval($qs[2])." ORDER BY link_order, link_id ASC"; - } - - $link_total = $sql->db_Select("links_page", "*", " ".$qry." "); - if (!$sql->db_Select("links_page", "*", " ".$qry." LIMIT ".intval($from).",".intval($number)." ")) - { - js_location(e_SELF."?link"); - } - else - { // Display the individual links - $text = $rs->form_open("post", e_SELF.(e_QUERY ? "?".e_QUERY : ""), "myform_{$row['link_id']}", "", ""); - $text .= "
- - - - - - - - "; - while ($row = $sql->db_Fetch()) - { - $linkid = $row['link_id']; - $img = ""; - if ($row['link_button']) - { - if (strpos($row['link_button'], "http://") !== FALSE) - { - $img = "".$LINK_CAT_NAME.""; - } - else - { - if(strstr($row['link_button'], "/")) - { - $img = "".$LINK_CAT_NAME.""; - } - else - { - $img = "".$LINK_CAT_NAME.""; - } - } - } - - $name_suffix = URL_SEPARATOR.$linkid.URL_SEPARATOR.$row['link_order'].URL_SEPARATOR.$row['link_category']; - if($row['link_order'] == "1") - { - $up = "   "; - } - else - { - //$up = ""; - $up = ""; - } - if($row['link_order'] == $link_total) - { - $down = "   "; - } - else - { - //$down = ""; - $down = ""; - } - $text .= " - - - - - - - "; - } - $text .= " - - - - -
".LCLAN_ITEM_25."".LCLAN_ITEM_26."".LCLAN_ITEM_27."".LCLAN_ITEM_28."".LCLAN_ITEM_29."
".$img." - ".LINK_ICON_LINK." ".$row['link_name']." - - ".LINK_ICON_EDIT." - toJS(LCLAN_ITEM_33." [ ".$row['link_name']." ]")."')\" /> - - ".$up." - ".$down." - -
  - ".$rs->form_button('update_order', LCLAN_ITEM_30, 'submit')." -
- ".$rs->form_close(); - } - $ns->tablerender($caption, $text); - $this->ShowNextPrev($from, $number, $link_total); - } - - function show_cat_create() { - global $qs, $rs; - $sql = e107::getDb(); - $frm = e107::getForm(); - $tp = e107::getParser(); - $ns = e107::getRender(); - $fl = e107::getFile(); - - $row['link_category_name'] = ""; - $row['link_category_description'] = ""; - $row['link_category_icon'] = ""; - $link_cat_resize_value = (isset($linkspage_pref['link_cat_resize_value']) && $linkspage_pref['link_cat_resize_value'] ? $linkspage_pref['link_cat_resize_value'] : "50"); - - if(isset($_POST['uploadcatlinkicon'])){ - $row['link_category_name'] = $_POST['link_category_name']; - $row['link_category_description'] = $_POST['link_category_description']; - $row['link_category_icon'] = $_POST['link_category_icon']; - $link_cat_resize_value = (isset($_POST['link_cat_resize_value']) && $_POST['link_cat_resize_value'] ? $_POST['link_cat_resize_value'] : $link_cat_resize_value); - } - if ($qs[1] == "edit") { - if ($sql->db_Select("links_page_cat", "*", "link_category_id='".intval($qs[2])."' ")) { - $row = $sql->db_Fetch(); - } - } - if(isset($_POST['category_clear'])){ - $row['link_category_name'] = ""; - $row['link_category_description'] = ""; - $row['link_category_icon'] = ""; - } -// $rejectlist = array('$.','$..','/','CVS','thumbs.db','Thumbs.db','*._$', 'index', 'null*'); - $iconlist = $fl->get_files(e_PLUGIN."links_page/cat_images/"); - - $text = " - ".$rs->form_open("post", e_SELF.(e_QUERY ? "?".e_QUERY : ""), "linkform", "", "enctype='multipart/form-data'", "")." - - - - - - - - - - - - - - - - - - - - - -
".LCLAN_CAT_13."".$rs->form_text("link_category_name", 50, $row['link_category_name'], 200)."
".LCLAN_CAT_14."".$rs->form_text("link_category_description", 60, $row['link_category_description'], 200)."
".LCLAN_CAT_15.""; - if(!FILE_UPLOADS){ - $text .= "".LCLAN_CAT_17.""; - }else{ - if(!is_writable(e_PLUGIN."links_page/cat_images/")){ - $text .= "".LCLAN_CAT_18." ".e_PLUGIN."links_page/cat_images/ ".LCLAN_CAT_19."
"; - } - $text .= " -
- ".LCLAN_CAT_16." ".$rs -> form_text("link_cat_resize_value", 3, $link_cat_resize_value, 3)." ".LCLAN_CAT_20." - ".$frm->admin_button('uploadcatlinkicon', LCLAN_CAT_21, 'submit'); - - } - $text .= " -
".LCLAN_CAT_22." - ".$rs -> form_text("link_category_icon", 60, $row['link_category_icon'], 100)." - ".$rs -> form_button("button", '', LCLAN_CAT_23, "onclick=\"expandit('catico')\"")." - -
".LCLAN_CAT_24." - ".r_userclass("link_category_class", vartrue($row['link_category_class']), "off", "public,guest,nobody,member,admin,classes")." -
"; - if (is_numeric($qs[2])) { - $text .= $rs -> form_hidden("link_category_order", $row['link_category_order']); - $text .= $rs -> form_hidden("link_category_datestamp", $row['link_category_datestamp']); - $text .= $rs -> form_checkbox("update_datestamp", 1, 0)." ".LCLAN_CAT_25."

"; - $text .= $rs -> form_button("submit", "update_category", LCLAN_CAT_26, "", "", ""); - $text .= $rs -> form_button("submit", "category_clear", LCLAN_CAT_27). $rs->form_hidden("link_category_id", $qs[2]); - - } else { - $text .= $frm->admin_button('create_category', LCLAN_CAT_28, 'submit'); // TODO FIX LCLAN_CAT_22 td needs fixing and updating to v2 style, unfunctional atm. - above - } - $text .= "
- ".$rs->form_close()." - "; - - $ns->tablerender(LCLAN_CAT_29, $text); - unset($row['link_category_name'], $row['link_category_description'], $row['link_category_icon']); - } - - - - /** - * Show a list of categories - * - * @param string $mode = (cat) - */ - function show_categories($mode) - { - global $rs; - $sql = e107::getDb(); - $frm = e107::getForm(); - $tp = e107::getParser(); - $ns = e107::getRender(); - $fl = e107::getFile(); - - if ($category_total = $sql->db_Select("links_page_cat", "*", "ORDER BY link_category_order ASC", "mode=no_where")) { - $text = " - - ".$rs->form_open("post", e_SELF.(e_QUERY ? "?".e_QUERY : ""), "", "", "")." - - - - - "; - if($mode == "cat"){ - $text .= " - - "; - } - $text .= " - "; - while ($row = $sql->db_Fetch()) - { - $linkcatid = $row['link_category_id']; - if ($row['link_category_icon']) - { - $img = (strstr($row['link_category_icon'], "/") ? "" : ""); - } - else - { - $img = " "; - } - $text .= " - - - "; - if($mode == "cat") - { - $name_suffix = URL_SEPARATOR.$linkcatid.URL_SEPARATOR.$row['link_category_order'].URL_SEPARATOR; - if($row['link_category_order'] == "1") - { - $up = "   "; - } - else - { - //$up = ""; - $up = ""; - } - if($row['link_category_order'] == $category_total) - { - $down = "   "; - } - else - { - //$down = ""; - $down = ""; - } - $text .= " - - - "; - } - else - { - $text .= ""; - } - $text .= " - \n"; - } - if($mode == "cat") - { - $text .= " - - - - "; - }else{ - $text .= " - - - - "; - } - $text .= " -
".LCLAN_CAT_1."".LCLAN_CAT_2."".LCLAN_CAT_3."".LCLAN_CAT_4."".LCLAN_CAT_5."
".$img." - ".LINK_ICON_LINK." - ".$row['link_category_name']."
".$row['link_category_description']." -
- ".LINK_ICON_EDIT." - toJS(LCLAN_CAT_8." [ ".$row['link_category_name']." ]")."')\"/> - - ".$up." - ".$down." - - - ".LINK_ICON_EDIT."
  - ".$frm->admin_button('update_category_order', LCLAN_CAT_10, 'submit')." -
 ".$rs->form_button("button", "viewalllinks", LCLAN_ITEM_37, "onclick=\"document.location='".e_SELF."?link.view.all';\"")." -
- ".$rs->form_close()." - "; - } else { - $text = "
".LCLAN_CAT_11."
"; - } - $ns->tablerender(LCLAN_CAT_12, $text); - unset($row['link_category_name'], $row['link_category_description'], $row['link_category_icon']); - } - - function show_submitted() { - global $sql, $rs, $qs, $ns, $tp; - - if (!$submitted_total = $sql->db_Select("tmp", "*", "tmp_ip='submitted_link' ")) { - $text = "
".LCLAN_SL_2."
"; - }else{ - $text = " - ".$rs->form_open("post", e_SELF."?sn", "submitted_links")." - - - - - - "; - while ($row = $sql->db_Fetch()) { - $tmp_time = $row['tmp_time']; - $submitted = explode("^", $row['tmp_info']); - if (!strstr($submitted[2], "http")) { - $submitted[2] = "http://".$submitted[2]; - } - $text .= " - - - - \n"; - } - $text .= "
".LCLAN_SL_3."".LCLAN_SL_4."".LCLAN_SL_5."
".$submitted[2]."".$submitted[5]." - ".LINK_ICON_EDIT." - toJS(LCLAN_SL_8." [ ".$tmp_time." ]")."')\" /> -
".$rs->form_close(); - } - $ns->tablerender(LCLAN_SL_1, $text); - } - - function show_pref_options() { - global $linkspage_pref, $rs; - $ns = e107::getRender(); - $pref = e107::getPref(); - - $text = " - "; - - $TOPIC_ROW = " - - {TOPIC_TOPIC} - {TOPIC_FIELD} - "; - - $TOPIC_TITLE_ROW = "{TOPIC_CAPTION}"; - $TOPIC_ROW_SPACER = ""; - $TOPIC_TABLE_END = $this->pref_submit().""; - - $text .= " -
- ".$rs -> form_open("post", e_SELF."?".e_QUERY, "optform", "", "", "")." - -
- "; - - $TOPIC_CAPTION = LCLAN_OPT_MENU_1; - $text .= preg_replace("/\{(.*?)\}/e", '$\1', $TOPIC_TITLE_ROW); - - $TOPIC_TOPIC = LCLAN_OPT_7; - $TOPIC_FIELD = " - ".$rs -> form_radio("link_page_categories", "1", ($linkspage_pref['link_page_categories'] ? "1" : "0"), "", "").LCLAN_OPT_3." - ".$rs -> form_radio("link_page_categories", "0", ($linkspage_pref['link_page_categories'] ? "0" : "1"), "", "").LCLAN_OPT_4; - $text .= preg_replace("/\{(.*?)\}/e", '$\1', $TOPIC_ROW); - - $TOPIC_TOPIC = LCLAN_OPT_8; - $TOPIC_FIELD = " - ".$rs -> form_radio("link_submit", "1", ($linkspage_pref['link_submit'] ? "1" : "0"), "", "").LCLAN_OPT_3." - ".$rs -> form_radio("link_submit", "0", ($linkspage_pref['link_submit'] ? "0" : "1"), "", "").LCLAN_OPT_4; - $text .= preg_replace("/\{(.*?)\}/e", '$\1', $TOPIC_ROW); - - $TOPIC_TOPIC = LCLAN_OPT_9; - $TOPIC_FIELD = r_userclass("link_submit_class", $linkspage_pref['link_submit_class']); - $text .= preg_replace("/\{(.*?)\}/e", '$\1', $TOPIC_ROW); - - $TOPIC_TOPIC = LCLAN_OPT_48; - $TOPIC_FIELD = " - ".$rs -> form_radio("link_submit_directpost", "1", ($linkspage_pref['link_submit_directpost'] ? "1" : "0"), "", "").LCLAN_OPT_3." - ".$rs -> form_radio("link_submit_directpost", "0", ($linkspage_pref['link_submit_directpost'] ? "0" : "1"), "", "").LCLAN_OPT_4."
".LCLAN_OPT_49; - $text .= preg_replace("/\{(.*?)\}/e", '$\1', $TOPIC_ROW); - - //link_nextprev - $TOPIC_TOPIC = LCLAN_OPT_10; - $TOPIC_FIELD = " - ".$rs -> form_radio("link_nextprev", "1", ($linkspage_pref["link_nextprev"] ? "1" : "0"), "", "").LCLAN_OPT_3." - ".$rs -> form_radio("link_nextprev", "0", ($linkspage_pref["link_nextprev"] ? "0" : "1"), "", "").LCLAN_OPT_4; - $text .= preg_replace("/\{(.*?)\}/e", '$\1', $TOPIC_ROW); - - //link_nextprev_number - $TOPIC_TOPIC = LCLAN_OPT_11; - $TOPIC_FIELD = $rs -> form_select_open("link_nextprev_number"); - for($i=2;$i<52;$i++){ - $TOPIC_FIELD .= $rs -> form_option($i, ($linkspage_pref["link_nextprev_number"] == $i ? "1" : "0"), $i); - $i++; - } - $TOPIC_FIELD .= $rs -> form_select_close(); - $text .= preg_replace("/\{(.*?)\}/e", '$\1', $TOPIC_ROW); - - //link_comment - $TOPIC_TOPIC = LCLAN_OPT_55; - $TOPIC_FIELD = " - ".$rs -> form_radio("link_comment", "1", ($linkspage_pref["link_comment"] ? "1" : "0"), "", "").LCLAN_OPT_3." - ".$rs -> form_radio("link_comment", "0", ($linkspage_pref["link_comment"] ? "0" : "1"), "", "").LCLAN_OPT_4; - $text .= preg_replace("/\{(.*?)\}/e", '$\1', $TOPIC_ROW); - - $TOPIC_TOPIC = LCLAN_OPT_27; - $TOPIC_FIELD = " - ".$rs -> form_radio("link_rating", "1", ($linkspage_pref['link_rating'] ? "1" : "0"), "", "").LCLAN_OPT_3." - ".$rs -> form_radio("link_rating", "0", ($linkspage_pref['link_rating'] ? "0" : "1"), "", "").LCLAN_OPT_4; - $text .= preg_replace("/\{(.*?)\}/e", '$\1', $TOPIC_ROW); - - $TOPIC_TOPIC = LCLAN_OPT_62; - $TOPIC_FIELD = "
- ".$rs -> form_checkbox("link_navigator_frontpage", 1, ($linkspage_pref['link_navigator_frontpage'] ? "1" : "0"))." ".LCLAN_OPT_60."
- ".$rs -> form_checkbox("link_navigator_submit", 1, ($linkspage_pref['link_navigator_submit'] ? "1" : "0"))." ".LCLAN_OPT_58."
- ".$rs -> form_checkbox("link_navigator_manager", 1, ($linkspage_pref['link_navigator_manager'] ? "1" : "0"))." ".LCLAN_OPT_59."
- ".$rs -> form_checkbox("link_navigator_refer", 1, ($linkspage_pref['link_navigator_refer'] ? "1" : "0"))." ".LCLAN_OPT_20."
-
- ".$rs -> form_checkbox("link_navigator_rated", 1, ($linkspage_pref['link_navigator_rated'] ? "1" : "0"))." ".LCLAN_OPT_21."
- ".$rs -> form_checkbox("link_navigator_allcat", 1, ($linkspage_pref['link_navigator_allcat'] ? "1" : "0"))." ".LCLAN_OPT_66."
- ".$rs -> form_checkbox("link_navigator_links", 1, ($linkspage_pref['link_navigator_links'] ? "1" : "0"))." ".LCLAN_OPT_67."
- ".$rs -> form_checkbox("link_navigator_category", 1, ($linkspage_pref['link_navigator_category'] ? "1" : "0"))." ".LCLAN_OPT_61."
-
"; - $text .= preg_replace("/\{(.*?)\}/e", '$\1', $TOPIC_ROW); - - $text .= $TOPIC_TABLE_END; - - $text .= " -