From 113ed5f7e7e91bc8638ab6c4bd540d2249d72035 Mon Sep 17 00:00:00 2001 From: bugrain Date: Wed, 15 Jul 2009 00:15:01 +0000 Subject: [PATCH] * A few bug fixes and some code re-org --- e107_plugins/download/admin_download.php | 701 ++++++++++++----------- e107_plugins/download/help.php | 40 +- 2 files changed, 354 insertions(+), 387 deletions(-) diff --git a/e107_plugins/download/admin_download.php b/e107_plugins/download/admin_download.php index 5225e9358..500678edc 100644 --- a/e107_plugins/download/admin_download.php +++ b/e107_plugins/download/admin_download.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/download/admin_download.php,v $ -| $Revision: 1.1 $ -| $Date: 2009-07-14 23:53:02 $ +| $Revision: 1.2 $ +| $Date: 2009-07-15 00:15:01 $ | $Author: bugrain $ +----------------------------------------------------------------------------+ */ @@ -253,7 +253,7 @@ if ($action == "create") } -if ($delete == 'category') +if (isset($delete) && $delete == 'category') { if (admin_update($sql->db_Delete('download_category', 'download_category_id='.$del_id), 'delete', DOWLAN_49." #".$del_id." ".DOWLAN_36)) { @@ -269,7 +269,7 @@ if ($action == 'cat') } -if ($delete == 'main') +if (isset($delete) && $delete == 'main') { $result = $sql->db_Delete('download', 'download_id='.$del_id); if ($result) @@ -320,123 +320,167 @@ if ($action == "opt") if ($action == 'maint') { global $pref, $ns; - switch ($_POST['dl_maint']) - { - case 'duplicates': + if (isset($_POST['dl_maint'])) { + switch ($_POST['dl_maint']) { - $title = DOWLAN_166; - $query = 'SELECT GROUP_CONCAT(d.download_id SEPARATOR ",") as gc, d.download_id, d.download_name, d.download_url, dc.download_category_name - FROM #download as d - LEFT JOIN #download_category AS dc ON dc.download_category_id=d.download_category - GROUP BY d.download_url - HAVING COUNT(d.download_id) > 1 - '; - $text = ""; - $count = $sql->db_Select_gen($query); - $foundSome = false; - if ($count) { - $currentURL = ""; - while($row = $sql->db_Fetch()) { - if (!$foundSome) { - $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $foundSome = true; - } - $query = "SELECT d.*, dc.* FROM `#download` AS d - LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category - WHERE download_id IN (".$row['gc'].") - ORDER BY download_id ASC"; - $count = $sql2->db_Select_gen($query); - while($row = $sql2->db_Fetch()) { - $text .= ''; - if ($currentURL != $row['download_url']) { - $text .= ''; - $currentURL = $row['download_url']; - } else { - $text .= ''; - } - $text .= ''; - $text .= "'; - $text .= ''; - $text .= ''; - $text .= ''; - } - } - } - if ($foundSome) { - $text .= '
'.DOWLAN_13.''.DOWLAN_67.''.DOWLAN_27.''.DOWLAN_11.''.LAN_OPTIONS.'
'.$row['download_url'].'*'.$row['download_id'].'".$row['download_name'].''.$row['download_category_name'].' - '.ADMIN_EDIT_ICON.' - toJS(DOWLAN_33.' [ID: '.$row["download_id"].' ]').'") \'/> -
'; - } - else + case 'duplicates': { - $text = DOWLAN_172; - } - break; - } - case 'orphans': - { - $title = DOWLAN_167; - $text = ""; - require_once(e_HANDLER."file_class.php"); - $efile = new e_file(); - $files = $efile->get_files(e_DOWNLOAD); - $foundSome = false; - foreach($files as $file) { - if (0 == $sql->db_Count('download', '(*)', " WHERE download_url='".$file['fname']."'")) { - if (!$foundSome) { - $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $foundSome = true; - } - $filesize = (is_readable(e_DOWNLOAD.$row['download_url']) ? $e107->parseMemorySize(filesize(e_DOWNLOAD.$file['fname'])) : DOWLAN_181); - $filets = (is_readable(e_DOWNLOAD.$row['download_url']) ? $gen->convert_date(filectime(e_DOWNLOAD.$file['fname']), "long") : DOWLAN_181); - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; -//TODO $text .= ''; -//TODO $text .= ''; - } - } - if ($foundSome) { - $text .= '
'.DOWLAN_13.''.DOWLAN_182.''.DOWLAN_170.''.LAN_OPTIONS.'
'.$file['fname'].''.$filets.''.$filesize.' -//TODO '.E_16_CREATE.' -//TODO toJS(DOWLAN_173.' [ '.$file["fname"].' ]').'") \'/> -//TODO
'; - } - else - { - $text = DOWLAN_174; - } - break; - } - case 'missing': - { - $title = DOWLAN_168; - $text = ""; - $query = "SELECT d.*, dc.* FROM `#download` AS d LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category"; - $count = $sql->db_Select_gen($query); - $foundSome = false; - if ($count) { - while($row = $sql->db_Fetch()) { - if (!is_readable(e_DOWNLOAD.$row['download_url'])) { + $title = DOWLAN_166; + $query = 'SELECT GROUP_CONCAT(d.download_id SEPARATOR ",") as gc, d.download_id, d.download_name, d.download_url, dc.download_category_name + FROM #download as d + LEFT JOIN #download_category AS dc ON dc.download_category_id=d.download_category + GROUP BY d.download_url + HAVING COUNT(d.download_id) > 1 + '; + $text = ""; + $count = $sql->db_Select_gen($query); + $foundSome = false; + if ($count) { + $currentURL = ""; + while($row = $sql->db_Fetch()) { if (!$foundSome) { - $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); + $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $foundSome = true; + } + $query = "SELECT d.*, dc.* FROM `#download` AS d + LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category + WHERE download_id IN (".$row['gc'].") + ORDER BY download_id ASC"; + $count = $sql2->db_Select_gen($query); + while($row = $sql2->db_Fetch()) { + $text .= ''; + if ($currentURL != $row['download_url']) { + $text .= ''; + $currentURL = $row['download_url']; + } else { + $text .= ''; + } + $text .= ''; + $text .= "'; + $text .= ''; + $text .= ''; + $text .= ''; + } + } + } + if ($foundSome) { + $text .= '
'.DOWLAN_13.''.DOWLAN_67.''.DOWLAN_27.''.DOWLAN_11.''.LAN_OPTIONS.'
'.$row['download_url'].'*'.$row['download_id'].'".$row['download_name'].''.$row['download_category_name'].' + '.ADMIN_EDIT_ICON.' + toJS(DOWLAN_33.' [ID: '.$row["download_id"].' ]').'") \'/> +
'; + } + else + { + $text = DOWLAN_172; + } + break; + } + case 'orphans': + { + $title = DOWLAN_167; + $text = ""; + require_once(e_HANDLER."file_class.php"); + $efile = new e_file(); + $files = $efile->get_files(e_DOWNLOAD); + $foundSome = false; + foreach($files as $file) { + if (0 == $sql->db_Count('download', '(*)', " WHERE download_url='".$file['fname']."'")) { + if (!$foundSome) { + $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $foundSome = true; + } + $filesize = (is_readable(e_DOWNLOAD.$row['download_url']) ? $e107->parseMemorySize(filesize(e_DOWNLOAD.$file['fname'])) : DOWLAN_181); + $filets = (is_readable(e_DOWNLOAD.$row['download_url']) ? $gen->convert_date(filectime(e_DOWNLOAD.$file['fname']), "long") : DOWLAN_181); + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + //TODO $text .= ''; + //TODO $text .= ''; + } + } + if ($foundSome) { + $text .= '
'.DOWLAN_13.''.DOWLAN_182.''.DOWLAN_170.''.LAN_OPTIONS.'
'.$file['fname'].''.$filets.''.$filesize.' + //TODO '.E_16_CREATE.' + //TODO toJS(DOWLAN_173.' [ '.$file["fname"].' ]').'") \'/> + //TODO
'; + } + else + { + $text = DOWLAN_174; + } + break; + } + case 'missing': + { + $title = DOWLAN_168; + $text = ""; + $query = "SELECT d.*, dc.* FROM `#download` AS d LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category"; + $count = $sql->db_Select_gen($query); + $foundSome = false; + if ($count) { + while($row = $sql->db_Fetch()) { + if (!is_readable(e_DOWNLOAD.$row['download_url'])) { + if (!$foundSome) { + $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $foundSome = true; + } + $text .= ''; + $text .= ''; + $text .= "'; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + } + } + } + if ($foundSome) { + $text .= '
'.DOWLAN_67.''.DOWLAN_27.''.DOWLAN_11.''.DOWLAN_13.''.LAN_OPTIONS.'
'.$row['download_id'].'".$row['download_name'].''.$row['download_category_name'].''.$row['download_url'].' + '.ADMIN_EDIT_ICON.' + toJS(DOWLAN_33.' [ID: '.$row["download_id"].' ]').'") \'/> +
'; + } + else + { + $text = DOWLAN_172; + } + break; + } + case 'inactive': + { + $title = DOWLAN_169; + $text = ""; + $query = "SELECT d.*, dc.* FROM `#download` AS d LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category WHERE download_active=0"; + $count = $sql->db_Select_gen($query); + $foundSome = false; + if ($count) { + while($row = $sql->db_Fetch()) { + if (!$foundSome) { + $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); $text .= ''; $text .= ''; $text .= ''; @@ -451,249 +495,206 @@ if ($action == 'maint') $text .= ''; $text .= "'; $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - } - } - } - if ($foundSome) { - $text .= '
'.DOWLAN_67.''.$row['download_id'].'".$row['download_name'].''.$row['download_category_name'].''.$row['download_url'].' - '.ADMIN_EDIT_ICON.' - toJS(DOWLAN_33.' [ID: '.$row["download_id"].' ]').'") \'/> -
'; - } - else - { - $text = DOWLAN_172; - } - break; - } - case 'inactive': - { - $title = DOWLAN_169; - $text = ""; - $query = "SELECT d.*, dc.* FROM `#download` AS d LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category WHERE download_active=0"; - $count = $sql->db_Select_gen($query); - $foundSome = false; - if ($count) { - while($row = $sql->db_Fetch()) { - if (!$foundSome) { - $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $foundSome = true; - } - $text .= ''; - $text .= ''; - $text .= "'; - $text .= ''; - if (strlen($row['download_url']) > 0) { - $text .= ''; - } else { - $mirrorArray = download::makeMirrorArray($row['download_mirror'], TRUE); - $text .= ''; - } - $text .= ''; - $text .= ''; - } - } - if ($foundSome) { - $text .= '
'.DOWLAN_67.''.DOWLAN_27.''.DOWLAN_11.''.DOWLAN_13.''.LAN_OPTIONS.'
'.$row['download_id'].'".$row['download_name'].''.$row['download_category_name'].''.$row['download_url'].''; - foreach($mirrorArray as $mirror) { - $text .= $mirror['url'].'
'; - } - $text .= '
- '.ADMIN_EDIT_ICON.' - toJS(DOWLAN_33.' [ID: '.$row["download_id"].' ]').'") \'/> -
'; - } - else - { - $text = DOWLAN_172; - } - break; - } - case 'nocategory': - { - $title = DOWLAN_178; - $text = ""; - $query = "SELECT * FROM `#download` WHERE download_category=0"; - $count = $sql->db_Select_gen($query); - $foundSome = false; - if ($count) { - while($row = $sql->db_Fetch()) { - if (!$foundSome) { - $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $foundSome = true; - } - $text .= ''; - $text .= ''; - $text .= "'; - if (strlen($row['download_url']) > 0) { - $text .= ''; - } else { - $mirrorArray = download::makeMirrorArray($row['download_mirror'], TRUE); - $text .= ''; - } - $text .= ''; - $text .= ''; - } - } - if ($foundSome) { - $text .= '
'.DOWLAN_67.''.DOWLAN_27.''.DOWLAN_13.''.LAN_OPTIONS.'
'.$row['download_id'].'".$row['download_name'].''.$row['download_url'].''; - foreach($mirrorArray as $mirror) { - $text .= $mirror['url'].'
'; - } - $text .= '
- '.ADMIN_EDIT_ICON.' - toJS(DOWLAN_33.' [ID: '.$row["download_id"].' ]').'") \'/> -
'; - } - else - { - $text = DOWLAN_172; - } - break; - } - case 'filesize': - { - $title = DOWLAN_170; - $text = ""; - $query = "SELECT d.*, dc.* FROM `#download` AS d LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category WHERE d.download_url<>''"; - $count = $sql->db_Select_gen($query); - $foundSome = false; - if ($count) { - while($row = $sql->db_Fetch()) { - if (is_readable(e_DOWNLOAD.$row['download_url'])) { - $filesize = filesize(e_DOWNLOAD.$row['download_url']); - if ($filesize <> $row['download_filesize']) { - if (!$foundSome) { - $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $text .= ''; - $foundSome = true; - } - $text .= ''; - $text .= ''; - $text .= "'; - $text .= ''; + if (strlen($row['download_url']) > 0) { $text .= ''; - $text .= ''; - $text .= ''; + } + $text .= ''; + $text .= ''; + } + } + if ($foundSome) { + $text .= '
'.DOWLAN_67.''.DOWLAN_27.''.DOWLAN_11.''.DOWLAN_13.''.DOWLAN_180.''.LAN_OPTIONS.'
'.$row['download_id'].'".$row['download_name'].''.$row['download_category_name'].''.$row['download_url'].''.$row['download_filesize'].' / '; - $text .= $filesize; + } else { + $mirrorArray = download::makeMirrorArray($row['download_mirror'], TRUE); + $text .= ''; + foreach($mirrorArray as $mirror) { + $text .= $mirror['url'].'
'; + } $text .= '
- '.ADMIN_EDIT_ICON.' - toJS(DOWLAN_33.' [ID: '.$row["download_id"].' ]').'") \'/> - + '.ADMIN_EDIT_ICON.' + toJS(DOWLAN_33.' [ID: '.$row["download_id"].' ]').'") \'/> +
'; + } + else + { + $text = DOWLAN_172; + } + break; + } + case 'nocategory': + { + $title = DOWLAN_178; + $text = ""; + $query = "SELECT * FROM `#download` WHERE download_category=0"; + $count = $sql->db_Select_gen($query); + $foundSome = false; + if ($count) { + while($row = $sql->db_Fetch()) { + if (!$foundSome) { + $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; $text .= ''; + $foundSome = true; + } + $text .= ''; + $text .= ''; + $text .= "'; + if (strlen($row['download_url']) > 0) { + $text .= ''; + } else { + $mirrorArray = download::makeMirrorArray($row['download_mirror'], TRUE); + $text .= ''; + } + $text .= ''; + $text .= ''; + } + } + if ($foundSome) { + $text .= '
'.DOWLAN_67.''.DOWLAN_27.''.DOWLAN_13.''.LAN_OPTIONS.'
'.$row['download_id'].'".$row['download_name'].''.$row['download_url'].''; + foreach($mirrorArray as $mirror) { + $text .= $mirror['url'].'
'; + } + $text .= '
+ '.ADMIN_EDIT_ICON.' + toJS(DOWLAN_33.' [ID: '.$row["download_id"].' ]').'") \'/> +
'; + } + else + { + $text = DOWLAN_172; + } + break; + } + case 'filesize': + { + $title = DOWLAN_170; + $text = ""; + $query = "SELECT d.*, dc.* FROM `#download` AS d LEFT JOIN `#download_category` AS dc ON dc.download_category_id=d.download_category WHERE d.download_url<>''"; + $count = $sql->db_Select_gen($query); + $foundSome = false; + if ($count) { + while($row = $sql->db_Fetch()) { + if (is_readable(e_DOWNLOAD.$row['download_url'])) { + $filesize = filesize(e_DOWNLOAD.$row['download_url']); + if ($filesize <> $row['download_filesize']) { + if (!$foundSome) { + $text .= $rs->form_open("post", e_SELF."?".e_QUERY, "myform"); + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $foundSome = true; + } + $text .= ''; + $text .= ''; + $text .= "'; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + $text .= ''; + } } } } + if ($foundSome) { + $text .= '
'.DOWLAN_67.''.DOWLAN_27.''.DOWLAN_11.''.DOWLAN_13.''.DOWLAN_180.''.LAN_OPTIONS.'
'.$row['download_id'].'".$row['download_name'].''.$row['download_category_name'].''.$row['download_url'].''.$row['download_filesize'].' / '; + $text .= $filesize; + $text .= ' + '.ADMIN_EDIT_ICON.' + toJS(DOWLAN_33.' [ID: '.$row["download_id"].' ]').'") \'/> +
'; + } + else + { + $text = DOWLAN_172; + } + break; } - if ($foundSome) { - $text .= ''; - } - else + case 'log': { - $text = DOWLAN_172; + $text = "log - view manage download history log"; + header('location: '.e_ADMIN.'admin_log.php?downlog'); + exit(); + break; } - break; } - case 'log': - { - $text = "log - view manage download history log"; - header('location: '.e_ADMIN.'admin_log.php?downlog'); - exit(); - break; - } - default: - { - $title = DOWLAN_193; - $text = DOWLAN_179; - $eform = new e_form(); - $text = " -
-
- ".DOWLAN_10." - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + } + else { + $title = DOWLAN_193; + $text = DOWLAN_179; + $eform = new e_form(); + $text = " + +
+ ".DOWLAN_10." +
".DOWLAN_166." - ".$eform->radio('dl_maint', 'duplicates').$eform->label(DOWLAN_185, 'dl_maint', 'duplicates')." -
".DOWLAN_167." - ".$eform->radio('dl_maint', 'orphans').$eform->label(DOWLAN_186, 'dl_maint', 'orphans')." -
".DOWLAN_168." - ".$eform->radio('dl_maint', 'missing').$eform->label(DOWLAN_187, 'dl_maint', 'missing')." -
".DOWLAN_169." - ".$eform->radio('dl_maint', 'inactive').$eform->label(DOWLAN_188, 'dl_maint', 'inactive')." -
".DOWLAN_178." - ".$eform->radio('dl_maint', 'nocategory').$eform->label(DOWLAN_189, 'dl_maint', 'nocategory')." -
".DOWLAN_170." - ".$eform->radio('dl_maint', 'filesize').$eform->label(DOWLAN_190, 'dl_maint', 'filesize')." -
".DOWLAN_171." - ".$eform->radio('dl_maint', 'log').$eform->label(DOWLAN_191, 'dl_maint', 'log')." -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
".DOWLAN_166." + ".$eform->radio('dl_maint', 'duplicates').$eform->label(DOWLAN_185, 'dl_maint', 'duplicates')." +
".DOWLAN_167." + ".$eform->radio('dl_maint', 'orphans').$eform->label(DOWLAN_186, 'dl_maint', 'orphans')." +
".DOWLAN_168." + ".$eform->radio('dl_maint', 'missing').$eform->label(DOWLAN_187, 'dl_maint', 'missing')." +
".DOWLAN_169." + ".$eform->radio('dl_maint', 'inactive').$eform->label(DOWLAN_188, 'dl_maint', 'inactive')." +
".DOWLAN_178." + ".$eform->radio('dl_maint', 'nocategory').$eform->label(DOWLAN_189, 'dl_maint', 'nocategory')." +
".DOWLAN_170." + ".$eform->radio('dl_maint', 'filesize').$eform->label(DOWLAN_190, 'dl_maint', 'filesize')." +
".DOWLAN_171." + ".$eform->radio('dl_maint', 'log').$eform->label(DOWLAN_191, 'dl_maint', 'log')." +
-
- ".$eform->admin_button('trigger_db_execute', DOWLAN_192, 'execute')." -
-
-
- "; - } + + +
+ ".$eform->admin_button('trigger_db_execute', DOWLAN_192, 'execute')." +
+ + + "; } $ns->tablerender(DOWLAN_165.$title, $text); } diff --git a/e107_plugins/download/help.php b/e107_plugins/download/help.php index 74e4b5d31..989c2cfb3 100644 --- a/e107_plugins/download/help.php +++ b/e107_plugins/download/help.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/download/help.php,v $ -| $Revision: 1.2 $ -| $Date: 2009-02-11 21:41:54 $ +| $Revision: 1.3 $ +| $Date: 2009-07-15 00:15:01 $ | $Author: bugrain $ +----------------------------------------------------------------------------+ */ @@ -23,7 +23,6 @@ if (e_QUERY) { $tmp = explode(".", e_QUERY); $action = $tmp[0]; - $subAction = $tmp[1]; } switch($action) { @@ -40,40 +39,7 @@ switch($action) { break; } case 'maint' :{ - switch($subAction) { - case 'duplicates': { - $text = DOWLAN_HELP_5_1; - break; - } - case 'orphans': { - $text = DOWLAN_HELP_5_2; - break; - } - case 'missing': { - $text = DOWLAN_HELP_5_3; - break; - } - case 'inactive': { - $text = DOWLAN_HELP_5_4; - break; - } - case 'nocategory': { - $text = DOWLAN_HELP_5_5; - break; - } - case 'filesize': { - $text = DOWLAN_HELP_5_6; - break; - } - case 'log': { - $text = DOWLAN_HELP_5_7; - break; - } - default: { - $text = DOWLAN_HELP_5; - break; - } - } + $text = DOWLAN_HELP_5; break; } case 'limits' :{