cvs: php-master-web /manage event.php mirrors.php users.php
| From: | Gabor Hojtsy | Date: | Thu, 10 Jun 2004 11:13:49 +0000 |
| Subject: | cvs: php-master-web /manage event.php mirrors.php users.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-24921@lists.php.net to get a copy of this message | ||
goba Thu Jun 10 07:13:49 2004 EDT
Modified files:
/php-master-web/manage event.php mirrors.php users.php
Log:
ommit short tags, and a little more cleanup
http://cvs.php.net/diff.php/php-master-web/manage/event.php?r1=1.10&r2=1.11&ty=u
Index: php-master-web/manage/event.php
diff -u php-master-web/manage/event.php:1.10 php-master-web/manage/event.php:1.11
--- php-master-web/manage/event.php:1.10 Thu Jun 10 05:08:41 2004
+++ php-master-web/manage/event.php Thu Jun 10 07:13:49 2004
@@ -214,7 +214,7 @@
<?php }?>
</tr>
</table>
-<?
+<?php
foot();
exit;
}
@@ -303,8 +303,8 @@
}
?>
</table>
-<?php show_prev_next($begin,mysql_num_rows($res),$max,$total,$extra); ?>
<?php
+show_prev_next($begin,mysql_num_rows($res),$max,$total,$extra);
foot();
function invalid_input($in) {
http://cvs.php.net/diff.php/php-master-web/manage/mirrors.php?r1=1.86&r2=1.87&ty=u
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.86 php-master-web/manage/mirrors.php:1.87
--- php-master-web/manage/mirrors.php:1.86 Thu Jun 10 05:08:41 2004
+++ php-master-web/manage/mirrors.php Thu Jun 10 07:13:49 2004
@@ -99,7 +99,7 @@
"(DATE_SUB(FROM_UNIXTIME($checktime), INTERVAL 7 DAY) < lastupdated) AS current
" .
"FROM mirrors WHERE id = $id"
);
- $row = mysql_fetch_array($res);
+ $row = mysql_fetch_assoc($res);
}
// The $id is not valid, so provide common defaults for new mirror
@@ -232,9 +232,8 @@
<textarea name="reason" wrap="virtual" cols="40"
rows="12"></textarea>
<input type="submit" name="mode" value="delete">
</form>
-<?php } ?>
-
-<?
+<?php }
+
// Form printed, exit script
foot();
exit();
http://cvs.php.net/diff.php/php-master-web/manage/users.php?r1=1.33&r2=1.34&ty=u
Index: php-master-web/manage/users.php
diff -u php-master-web/manage/users.php:1.33 php-master-web/manage/users.php:1.34
--- php-master-web/manage/users.php:1.33 Thu Jun 10 05:08:41 2004
+++ php-master-web/manage/users.php Thu Jun 10 07:13:49 2004
@@ -233,15 +233,13 @@
<?php }?>
</table>
<?php
-if ($id) {
- $res = db_query("SELECT note,UNIX_TIMESTAMP(entered) AS ts FROM users_note WHERE
userid=$id");
- echo "<b>notes</b>";
- while ($res && $row = mysql_fetch_array($res,MYSQL_ASSOC)) {
- echo "<div>",date("r",$row['ts']),"<br
/>$row[note]</div>";
+ if ($id) {
+ $res = db_query("SELECT note, UNIX_TIMESTAMP(entered) AS ts FROM users_note WHERE
userid=$id");
+ echo "<b>notes</b>";
+ while ($res && $row = mysql_fetch_assoc($res)) {
+ echo "<div>", date("r",$row['ts']), "<br
/>{$row['note']}</div>";
+ }
}
-}
-?>
-<?
foot();
exit;
}