Author: cyb
Date: Wed Apr 25 14:52:49 2007
New Revision: 365
URL: http://svn.gna.org/viewcvs/phplinker?rev=365&view=rev
Log:
clean
Modified:
trunk/www/admin/url_search.php
Modified: trunk/www/admin/url_search.php
URL:
http://svn.gna.org/viewcvs/phplinker/trunk/www/admin/url_search.php?rev=365&r1=364&r2=365&view=diff
==============================================================================
--- trunk/www/admin/url_search.php (original)
+++ trunk/www/admin/url_search.php Wed Apr 25 14:52:49 2007
@@ -35,12 +35,17 @@
$key ="";
$_GET["key"]="";
}
-if(isset($_GET["categorized"])){
- $categorized = $_GET["categorized"];
- }else{
- $categorized ="";
- $_GET["categorized"]="";
- }
+
+if(!isset($_GET["categorized"]))
+ $_GET["categorized"]=0;
+
+if(!isset($_GET['order'])) {
+ if(isset($_GET['type']) and $_GET['type']=='top1000')
+ $_GET["order"]='hits1';
+ else
+ $_GET["order"]='url1';
+}
+
if(isset($_GET["cat"])){
$cat = $_GET["cat"];
}else{
@@ -59,10 +64,8 @@
$img_state = "";
$myData = array();
$nbr = 0;
-$_SESSION['order'] = "test";
-
-if(isset($_GET['order'])){
- switch($_GET['order']){
+
+switch($_GET['order']){
case "desc1":
$order_by=" ORDER BY description DESC";
$img_desc ="<img src='../imgs/down.png' border='0' alt='down'>";
@@ -112,9 +115,7 @@
$order_by=" ORDER BY last_update ASC";
break;
}
- }else{
- $order_by=" ORDER BY hit DESC";
- }
+
$all="";
if (isset($_GET['state']))
$state = $_GET['state'];
@@ -122,10 +123,6 @@
if (isset($_GET['key']))
$key = $_GET['key'];
-
- if (isset($_GET['categorized']))
- $categorized = $_GET['categorized'];
- $categorized = "";
if (isset($_GET['cat']))
$cat = $_GET['cat'];
if($state==""){
@@ -300,7 +297,7 @@
linker_tpl("result_for_all" , $result_for_all);
linker_tpl("state" , $state);
linker_tpl("key" , $key);
- linker_tpl("categorized" , $categorized);
+ linker_tpl("categorized" , $_GET['categorized']);
linker_tpl("cat" , $cat);
linker_tpl("img_url" , $img_url);
linker_tpl("img_date" , $img_date);
@@ -309,5 +306,6 @@
linker_tpl("state" , $state);
linker_tpl("img_state" , $img_state);
linker_tpl("img_visible" , $img_visible);
+ linker_tpl("type" , $_GET['type']);
require("includes/footer.php");
?>
_______________________________________________
PHPLinker-commits mailing list
[email protected]
https://mail.gna.org/listinfo/phplinker-commits