[Feed-collector-svn] SF.net SVN: feed-collector: [87] trunk/page_personal.php
Status: Beta
Brought to you by:
c167
|
From: <c1...@us...> - 2007-01-03 18:43:33
|
Revision: 87
http://feed-collector.svn.sourceforge.net/feed-collector/?rev=87&view=rev
Author: c167
Date: 2007-01-03 10:43:31 -0800 (Wed, 03 Jan 2007)
Log Message:
-----------
Closed bug, thx to PsYCoN
Modified Paths:
--------------
trunk/page_personal.php
Modified: trunk/page_personal.php
===================================================================
--- trunk/page_personal.php 2007-01-03 16:51:39 UTC (rev 86)
+++ trunk/page_personal.php 2007-01-03 18:43:31 UTC (rev 87)
@@ -59,7 +59,7 @@
HTTP_Session :: setIdle($session['time']['idle']);
if(false === HTTP_Session :: get("logged_in", false)) {
- //HTTP :: redirect("./page_login.php");
+ HTTP :: redirect("./page_login.php");
}
################
@@ -128,38 +128,40 @@
*/
# Main copy
// main
-HTTP_Session :: set("uid", 0);
-HTTP_Session :: set("logged_in", true);
-if (HTTP_Session :: get("uid") >= 0 and HTTP_Session :: get("uid") < $user->getNumberOfUsers()) {
+//if (HTTP_Session :: get("uid") >= 0 and HTTP_Session :: get("uid") < $user->getNumberOfUsers()) {
$cols = $user->getUserCols(HTTP_Session :: get("uid"), false);
-
+ $count = count($cols);
$main = "";
+ if($count > 0) {
############
# Column 1 #
############
- for($i = 0; $i < count($cols); $i+=3) {
+ for($i = 0; $i < $count; $i+=3) {
$col1[] = $cols[$i];
}
$main .= createColumn($col1, 1, $feed);
-
+ }
+ if($count > 1) {
############
# Column 2 #
############
- for($i = 1; $i < count($cols); $i+=3) {
+ for($i = 1; $i < $count; $i+=3) {
$col2[] = $cols[$i];
}
$main .= createColumn($col2, 2, $feed);
-
+ }
+ if($count > 2) {
############
# Column 3 #
############
- for($i = 2; $i < count($cols); $i+=3) {
+ for($i = 2; $i < $count; $i+=3) {
$col3[] = $cols[$i];
}
$main .= createColumn($col3, 3, $feed);
-} else {
- $main = "";
-}
+ }
+//} else {
+// $main = "";
+//}
$design = str_replace("<!-- main -->", $main, $design);
/*
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|