Changeset 36
- Timestamp:
- 05/22/2003 01:28:49 AM (22 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r28 r36 22 22 <body> 23 23 <h1 id="header"><a href="<?php echo $siteurl; ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1> 24 25 24 26 25 <div id="content"> … … 106 105 </ul> 107 106 </li> 108 <?php include_once('links.php') ?>109 <?php include_once('links.weblogs.com.php') ?>107 <?php require_once('wp-links/links.php') ?> 108 <?php require_once('wp-links/links.weblogs.com.php') ?> 110 109 <li>Links: 111 110 <ul> -
trunk/linkcategories.php
r21 r36 28 28 // ***************************************************************** 29 29 30 include_once('links.config.php');31 include_once('links.php');30 require_once('wp-links/links.config.php'); 31 require_once('wp-links/links.php'); 32 32 33 33 $title = "Link Categories"; … … 53 53 { 54 54 $standalone = 1; 55 include_once("./b2header.php");55 require_once("./b2header.php"); 56 56 57 57 if ($user_level < $minadminlevel) 58 58 die ("Cheatin' uh ?"); 59 59 60 60 $cat_name=addslashes($HTTP_POST_VARS["cat_name"]); 61 61 $auto_toggle = $HTTP_POST_VARS["auto_toggle"]; … … 66 66 $query="INSERT INTO $tablelinkcategories (cat_id,cat_name, auto_toggle) VALUES ('0', '$cat_name', '$auto_toggle')"; 67 67 $result=mysql_query($query) or die("Couldn't add category <b>$cat_name</b>".mysql_error()); 68 68 69 69 header("Location: linkcategories.php"); 70 70 break; … … 73 73 { 74 74 $standalone = 1; 75 include_once("./b2header.php"); 76 include_once("./links.php"); 75 require_once("./b2header.php"); 77 76 78 77 $cat_id = $HTTP_POST_VARS["cat_id"]; … … 85 84 if ($user_level < $minadminlevel) 86 85 die ("Cheatin' uh ?"); 87 86 88 87 $query="DELETE FROM $tablelinkcategories WHERE cat_id=\"$cat_id\""; 89 88 $result=mysql_query($query) or die("Couldn't delete link category <b>$cat_name</b>".mysql_error()); 90 89 91 90 $query="UPDATE $tablelinks SET link_category=1 WHERE link_category='$cat_id'"; 92 91 $result=mysql_query($query) or die("Couldn't reset category on links where category was <b>$cat_name</b>"); … … 97 96 case "Edit": 98 97 { 99 include_once ("./b2header.php"); 100 include_once("./links.php"); 98 require_once ("./b2header.php"); 101 99 $cat_id = $HTTP_POST_VARS["cat_id"]; 102 100 $cat_name=get_linkcatname($cat_id); 103 $cat_name=addslashes($cat_name);101 //$cat_name=addslashes($cat_name); 104 102 $auto_toggle=get_autotoggle($cat_id); 105 103 ?> … … 113 111 <input type="hidden" name="cat_id" value="<?php echo $HTTP_POST_VARS["cat_id"] ?>" /> 114 112 <input type="text" name="cat_name" value="<?php echo $cat_name ?>" /><br /> 115 <input type="checkbox" name="auto_toggle" value="Y" <?php echo $auto_toggle = "Y" ? '"checked"' : ''; ?>/> auto-toggle?<br />113 <input type="checkbox" name="auto_toggle" value="Y" <?php echo $auto_toggle == "Y" ? '"checked"' : ''; ?>/> auto-toggle?<br /> 116 114 <input type="submit" name="submit" value="Edit it !" class="search" /> 117 115 </form> 118 116 </p> 117 <p>Back to <a href="linkcategories.php">manage link categories</a></p> 119 118 <?php echo $tablebottom; ?> 120 119 <?php … … 124 123 { 125 124 $standalone = 1; 126 include_once("./b2header.php");125 require_once("./b2header.php"); 127 126 128 127 if ($user_level < $minadminlevel) 129 128 die ("Cheatin' uh ?"); 130 129 131 130 $cat_name=addslashes($HTTP_POST_VARS["cat_name"]); 132 131 $cat_id=$HTTP_POST_VARS["cat_id"]; … … 135 134 $query="UPDATE $tablelinkcategories SET cat_name='$cat_name', auto_toggle='$auto_toggle' WHERE cat_id=$cat_id"; 136 135 $result=mysql_query($query) or die("Couldn't edit link category <b>$cat_name</b>: ".$query.mysql_error()); 137 136 138 137 header("Location: linkcategories.php"); 139 138 break; 140 } // end edit 139 } // end editedcat 141 140 default: 142 141 { 143 142 $standalone=0; 144 include_once ("./b2header.php");143 require_once ("./b2header.php"); 145 144 if ($user_level < $minadminlevel) { 146 145 die("You have no right to edit the link categories for this blog.<br>Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a> :)"); -
trunk/linkmanager.php
r23 r36 28 28 // ***************************************************************** 29 29 30 include_once('links.config.php');31 include_once("./links.php");30 require_once('wp-links/links.config.php'); 31 require_once("wp-links/links.php"); 32 32 33 33 $title = "Manage Links"; … … 76 76 { 77 77 $standalone = 1; 78 include_once("./b2header.php");78 require_once("./b2header.php"); 79 79 80 80 $link_url = $HTTP_POST_VARS["linkurl"]; … … 125 125 126 126 $standalone = 1; 127 include_once("./b2header.php");127 require_once("./b2header.php"); 128 128 129 129 $link_id = $HTTP_POST_VARS["link_id"]; … … 168 168 { 169 169 $standalone = 1; 170 include_once("./b2header.php");170 require_once("./b2header.php"); 171 171 172 172 $link_id = $HTTP_POST_VARS["link_id"]; … … 193 193 { 194 194 $standalone=0; 195 include_once ("./b2header.php");195 require_once ("./b2header.php"); 196 196 if ($user_level < $minadminlevel) { 197 197 die("You have no right to edit the links for this blog.<br>Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a> :)"); … … 327 327 setcookie('links_show_cat_id', $links_show_cat_id, time()+600); 328 328 $standalone=0; 329 include_once ("./b2header.php");329 require_once ("./b2header.php"); 330 330 if ($user_level < $minadminlevel) { 331 331 die("You have no right to edit the links for this blog.<br>Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a> :)");
Note: See TracChangeset
for help on using the changeset viewer.