Changeset 1382 for feedmelinks/modules/folder-menu.inc.php
- Timestamp:
- 03/04/07 16:06:19 (2 years ago)
- Files:
-
- feedmelinks (modified) (1 prop)
- feedmelinks/modules/folder-menu.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks
- Property svn:ignore changed from
.htaccess
cgi-bin
cheat
logs
portal.php
testing
the-lost-urls
utils.inc.php
wall-of-ancients.php
work
*webalizer*
_assets
_profiling
TODO
info.php
setup
_comments
local-remote-root
.DS_Store
flash
_logs
usage
mint
cgi-bin
dev
please
usr
blog
to
.htaccess
cgi-bin
cheat
logs
portal.php
testing
the-lost-urls
utils.inc.php
wall-of-ancients.php
work
*webalizer*
_assets
_profiling
TODO
info.php
setup
_comments
local-remote-root
.DS_Store
flash
_logs
usage
mint
cgi-bin
dev
please
usr
blog
xfer
- Property svn:ignore changed from
feedmelinks/modules/folder-menu.inc.php
r1334 r1382 5 5 if( $tok && $tok == md5( getPasswdForUser( $u )) ) { 6 6 7 $qs = "SELECT * from tags where userid = '$sessionUserId' ORDER BY name";7 $qs_sub = "SELECT * from tags where userid = '$sessionUserId' ORDER BY name"; 8 8 $folderMenuCon = mysql_connect(); 9 mysql_selectdb( getDBName() );10 9 11 $q = mysql_query( $qs);12 $ numRows = mysql_num_rows($q);13 if( $ numRows) {10 $q_sub = mysql_query( $qs_sub ); 11 $rows_sub = mysql_num_rows($q_sub); 12 if( $rows_sub ) { 14 13 %> 15 14 16 <option value=""> -</option>17 < option value="unfiled"> <unfiled> </option>15 <option value=""> (Choose a tag) </option> 16 <!-- option value="unfiled"> <unfiled> </option --> 18 17 <% 19 18 $i = 0; 20 while ($i < $ numRows) {21 $id = mysql_result($q ,$i,"ID");22 $isPrivate = mysql_result($q ,$i,"isPrivate");23 $folderName = makeSafeName( mysql_result($q ,$i,"name"));19 while ($i < $rows_sub) { 20 $id = mysql_result($q_sub,$i,"ID"); 21 $isPrivate = mysql_result($q_sub,$i,"isPrivate"); 22 $folderName = makeSafeName( mysql_result($q_sub,$i,"name")); 24 23 25 24 # we use our own hashtables instead of the raw DB, … … 27 26 if( ! $isPrivate ) { 28 27 $folderName = makePrettyFolderName( $folderName ); 29 $folderName = $folderName . " (pub)"; 28 } else { 29 $folderName .= " (private)"; 30 30 } 31 31 $groups[$id] = $folderName;