Wanted to add Sort Alphabetically folders in sea script.

Started on the old forum in June 2011 · view the original in the archive · old links redirect here

No replies · 461 views · started 15 years ago · 1 min read

zong11 Developer · 98 posts #1

###############Test variables############### $onpage = intval($_SESSION["onpage"]); $prew = intval($_SESSION["prew"]); $sort = get2ses('sort'); $id = intval($_GET['id']); if (!empty ($_POST['page'])) { $page = intval($_POST['page']);} else {$page = intval($_GET['page']);} $start = intval($_GET['start']);

if($onpage < 3){ $onpage = 11; }

if($prew != 0 and $prew != 1){ $prew = $setup['preview']; }

$valid_sort = array('name' => '','data' => '','load' => '','size' => '','eval' =>''); if(!isset($valid_sort[$sort])){ $sort='name'; }

$MODE = 'priority DESC,name ASC'; if($sort == 'data') $MODE = 'priority DESC,timeupload DESC'; elseif($sort == 'size') $MODE = 'priority DESC,size ASC'; elseif($sort == 'load') $MODE = 'priority DESC,loads DESC'; elseif($sort == 'eval' && $setup['eval_change']) $MODE = 'priority DESC,yes DESC ,no ASC'; ###############Get the current directory############# if(!$id){ $d['path'] = $setup['path'].'/'; } else{ $d = mysql_fetch_assoc(mysql_query('SELECT path FROM files WHERE id = '.$id.' LIMIT 1')); }

if(!is_dir($d['path'])) die('Folder not found.</body></html>');

By this code i just sort according to Name | Size | Popularity | Rating but i want to sort according to Alphabetical order.Please anyone tell me what code should be added in this and where should add that code???? please help or tell me any other option... <<<<<Thanks Masterminds >>>>

Always Help Needy Peoples !!!!!

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close