<div id="header"> <a target="_blank" href="http://giaiphapnhanh.com.vn/" class="logo">Fasocms</a> <table width="70%" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td align="right" valign="top"> <!--<table width="100" border="0" cellpadding="2" cellspacing="2"> <tr> <td><a href="<?php echo curPageURL() . checklink(curPageURL()); ?> lang=1" target="_self"><img src="../images/en.gif" width="25" height="17" border="0"/></a></td> <td><a href="<?php echo curPageURL() . checklink(curPageURL()); ?> lang=0" target="_self"><img src="../images/vn.gif" width="25" height="17" border="0" /></a></td> </tr> </table>--></td> </tr> <tr> <td><!--CHÀO BẠN :--> <span style="font-size:12px; text-transform:uppercase; font-weight:bold; color:#FF6600"> <?php echo "Administrator!^_^"; ?> </span> <?php /*if($_SESSION['lang'] == '0'){ echo "BẠN ĐANG Ở PHẦN QUẢN TRỊ TIẾNG VIỆT!"; } elseif($_SESSION['lang'] == '1') {
* @license GNU General Public License * @author Lee Cher Yeong <*****@*****.**> * @url http://www.mosets.com/tree/ */ defined('_JEXEC') or die('Restricted access'); $parent_cat_id = JRequest::getInt('parent_cat_id', 0); $task2 = JRequest::getCmd('task2', ''); switch ($task2) { case 'spiderurl': spiderurl($option); break; case 'checklinkcomplete': checklinkcomplete(); break; case 'checklink': checklink(); break; case 'getcats': # Get pathway $mtPathWay = new mtPathWay($parent_cat_id); $return = $mtPathWay->printPathWayFromCat_withCurrentCat($parent_cat_id, 0); $return .= "\n"; $database->setQuery('SELECT cat_id, cat_name FROM #__mt_cats WHERE cat_parent = ' . $database->quote($parent_cat_id) . ' ORDER BY cat_name ASC'); $cats = $database->loadObjectList(); if ($parent_cat_id > 0) { $database->setQuery('SELECT cat_parent FROM #__mt_cats WHERE cat_id = ' . $database->quote($parent_cat_id) . ' LIMIT 1'); $browse_cat_parent = $database->loadResult(); $return .= $browse_cat_parent . "|" . JText::_('Arrow back'); if (count($cats) > 0) { $return .= "\n"; }
if (!in_array($value, $linklist)) { //push to array $linklist[] = $value; $xmloutput .= "<url>\n\t<loc>" . $value . "</loc>\n</url>\n"; } } else { //check if it's a foreign link if (!substr($value, 0, 4) == "http") { //add scanned linklist to front, and see if it's a valid link //cut out everything after the slash: http://w3dev.millerind.com/parts/index.php?bid=2 $pattern = preg_replace("/[^\\/]*\$/s", "", $linklist[$x]); $value = trim($value); //strip whitespace BAD CODER, BAD! $value = preg_replace("/^[\\/]/s", "", $value); //strip beginning / if there is one if (checklink($pattern . $value)) { $value = $pattern . $value; if (substr($value, 0, strlen($linklist[0])) == $linklist[0]) { if (!in_array($value, $linklist)) { //push to array $linklist[] = $value; $xmloutput .= "\t<url>\n\t\t<loc>" . $value . "</loc>\n</url>\n"; } } } } } } //echo "Total links: " . count($linklist) . "<br>\n"; //if nothing new was added, exit loop if ($x + 1 >= count($linklist)) {