mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Duplicate LANS in Upload and Download
Duplicate LANS in Upload and Download
This commit is contained in:
parent
ea79550e83
commit
dd14399829
@ -79,12 +79,12 @@ class upload_ui extends e_admin_ui
|
||||
'upload_poster' => array ( 'title' => UPLLAN_5, 'type' => 'user', 'data' => 'int', 'width' => 'auto', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'center', 'thclass' => 'center', ),
|
||||
'upload_email' => array ( 'title' => LAN_EMAIL, 'type' => 'text', 'data' => 'str', 'width' => 'auto', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'center', 'thclass' => 'center', ),
|
||||
'upload_website' => array ( 'title' => LAN_URL, 'type' => 'url', 'data' => 'str', 'width' => 'auto', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ),
|
||||
'upload_version' => array ( 'title' => UPLLAN_9, 'type' => 'text', 'data' => 'str', 'width' => 'auto', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'center', 'thclass' => 'center', ),
|
||||
'upload_version' => array ( 'title' => LAN_VERSION, 'type' => 'text', 'data' => 'str', 'width' => 'auto', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'center', 'thclass' => 'center', ),
|
||||
'upload_file' => array ( 'title' => LAN_FILE, 'type' => 'text', 'data' => 'str', 'width' => 'auto', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'center', 'thclass' => 'center', 'validate' => true ),
|
||||
'upload_ss' => array ( 'title' => 'Ss', 'type' => 'text', 'data' => 'str', 'width' => 'auto', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'center', 'thclass' => 'center', ),
|
||||
'upload_description' => array ( 'title' => LAN_DESCRIPTION, 'type' => 'textarea', 'data' => 'str', 'width' => '40%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ),
|
||||
'upload_demo' => array ( 'title' => UPLLAN_14, 'type' => 'url', 'data' => 'str', 'width' => 'auto', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'center', 'thclass' => 'center', ),
|
||||
'upload_filesize' => array ( 'title' => UPLLAN_11, 'type' => 'hidden', 'data' => 'int', 'width' => 'auto', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'center', 'thclass' => 'center', ),
|
||||
'upload_filesize' => array ( 'title' => LAN_SIZE, 'type' => 'hidden', 'data' => 'int', 'width' => 'auto', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'center', 'thclass' => 'center', ),
|
||||
'upload_active' => array ( 'title' => LAN_STATUS, 'type' => 'method', 'data' => 'int', 'width' => 'auto', 'help' => '', 'readParms' => '', 'writeParms' => array('singleOption' => true), 'class' => 'center', 'thclass' => 'center', 'batch' => true),
|
||||
'upload_category' => array ( 'title' => LAN_CATEGORY, 'type' => 'dropdown', 'data' => 'int', 'width' => 'auto', 'batch' => true, 'filter' => true, 'help' => '', 'readParms' => array(), 'writeParms' => array(), 'class' => 'left', 'thclass' => 'left', 'validate' => true ),
|
||||
'options' => array ( 'title' => LAN_OPTIONS, 'type' => '', 'data' => '', 'width' => '10%', 'thclass' => 'center last', 'class' => 'center last', 'forced' => '1', ),
|
||||
@ -240,7 +240,7 @@ class upload_ui extends e_admin_ui
|
||||
$uploadPath = e_UPLOAD;
|
||||
if(!file_exists($uploadPath.$upload['upload_file']))
|
||||
{
|
||||
$this->getModel()->addValidationError(UPLLAN_65);
|
||||
$this->getModel()->addValidationError(LAN_FILE_NOT_FOUND);
|
||||
return false;
|
||||
}
|
||||
$downloadPath = $media->importFile($upload['upload_file'], 'download_file', $uploadPath.$upload['upload_file'], array('media_caption' => $upload['upload_name']));
|
||||
@ -256,7 +256,7 @@ class upload_ui extends e_admin_ui
|
||||
$imagePath = $media->importFile($upload['upload_ss'], '_common_image', $uploadPath.$upload['upload_ss'], array('media_caption' => $upload['upload_name'].' '.LAN_PREVIEW));
|
||||
}
|
||||
|
||||
$author = $upload['upload_poster'] ? e107::getSystemUser($upload['upload_poster'])->getRealName() : UPLLAN_67;
|
||||
$author = $upload['upload_poster'] ? e107::getSystemUser($upload['upload_poster'])->getRealName() : LAN_ANONYMOUS;
|
||||
|
||||
$dl = array(
|
||||
'download_name' => $upload['upload_name'],
|
||||
@ -467,7 +467,7 @@ if (isset($_POST['optionsubmit']))
|
||||
$temp['upload_enabled'] = (FILE_UPLOADS ? $_POST['upload_enabled'] : 0);
|
||||
if ($temp['upload_enabled'] && !$sql->db_Select("links", "*", "link_url='upload.php' "))
|
||||
{
|
||||
$sql->db_Insert("links", "0, '".UPLLAN_44."', 'upload.php', '', '', 1,0,0,0,0");
|
||||
$sql->db_Insert("links", "0, '".LAN_UPLOAD."', 'upload.php', '', '', 1,0,0,0,0");
|
||||
}
|
||||
|
||||
if (!$temp['upload_enabled'] && $sql->db_Select("links", "*", "link_url='upload.php' "))
|
||||
@ -503,7 +503,7 @@ switch ($action)
|
||||
case 'filetypes' :
|
||||
if(!getperms('0')) exit;
|
||||
|
||||
$definition_source = UPLLAN_58;
|
||||
$definition_source = LAN_DEFAULT;
|
||||
$source_file = '';
|
||||
$edit_upload_list = varset($_POST['upload_do_edit'],FALSE);
|
||||
|
||||
@ -530,7 +530,7 @@ switch ($action)
|
||||
$text = '';
|
||||
$text .= '<br />'.UPLLAN_59.e_UPLOAD_TEMP_DIR.e_SAVE_FILETYPES.'. '.UPLLAN_60.e_ADMIN.e_READ_FILETYPES.'<br />';
|
||||
}
|
||||
$ns->tablerender(UPLLAN_49, $text);
|
||||
$ns->tablerender(LAN_FILETYPES, $text);
|
||||
}
|
||||
|
||||
|
||||
@ -584,10 +584,10 @@ switch ($action)
|
||||
<td class='forumheader3' colspan='4'>".UPLLAN_57.$source_file."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='fcaption'>".UPLLAN_53."</td>
|
||||
<td class='fcaption'>".LAN_USERCLASS."</td>
|
||||
<td class='fcaption'>".UPLLAN_54."</td>
|
||||
<td class='fcaption' style='text-align:center'>".UPLLAN_55."</td>
|
||||
<td class='fcaption' style='text-align:center'>".UPLAN_DELETE."</td>
|
||||
<td class='fcaption' style='text-align:center'>".LAN_DELETE."</td>
|
||||
</tr>";
|
||||
foreach ($current_perms as $uclass => $uinfo)
|
||||
{
|
||||
@ -620,7 +620,7 @@ switch ($action)
|
||||
</table></form>
|
||||
</div>";
|
||||
|
||||
$ns->tablerender(UPLLAN_49, $text);
|
||||
$ns->tablerender(LAN_FILETYPES, $text);
|
||||
break;
|
||||
|
||||
case 'options' :
|
||||
@ -651,7 +651,7 @@ switch ($action)
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan='2' class='forumheader' style='text-align:center'>". $rs->form_button("submit", "optionsubmit", UPLLAN_39)."
|
||||
<td colspan='2' class='forumheader' style='text-align:center'>". $rs->form_button("submit", "optionsubmit", LAN_SUBMIT)."
|
||||
</td>
|
||||
</tr>
|
||||
</table>". $rs->form_close()."
|
||||
@ -703,32 +703,32 @@ switch ($action)
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3'>".UPLLAN_8."</td>
|
||||
<td class='forumheader3'>".LAN_FILE_NAME."</td>
|
||||
<td class='forumheader3'>".($upload_name ? $upload_name: " - ")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3'>".UPLLAN_9."</td>
|
||||
<td class='forumheader3'>".LAN_VERSION."</td>
|
||||
<td class='forumheader3'>".($upload_version ? $upload_version : " - ")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3'>".UPLLAN_10."</td>
|
||||
<td class='forumheader3'>".LAN_FILE."</td>
|
||||
<td class='forumheader3'>".(is_numeric($upload_file) ? "Binary file ID ".$upload_file : "<a href='".e_SELF."?dl.{$upload_file}'>$upload_file</a>")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3'>".UPLLAN_11."</td>
|
||||
<td class='forumheader3'>".LAN_SIZE."</td>
|
||||
<td class='forumheader3'>".$e107->parseMemorySize($upload_filesize)."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3'>".UPLLAN_12."</td>
|
||||
<td class='forumheader3'>".LAN_SCREENSHOT."</td>
|
||||
<td class='forumheader3'>".($upload_ss ? "<a href='".e_BASE."request.php?upload.".$upload_id."'>".$upload_ss."</a>" : " - ")."</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='forumheader3'>".UPLLAN_13."</td>
|
||||
<td class='forumheader3'>".LAN_DESCRIPTION."</td>
|
||||
<td class='forumheader3'>{$upload_description}</td>
|
||||
</tr>
|
||||
|
||||
@ -766,10 +766,10 @@ switch ($action)
|
||||
<td class='fcaption'>".LAN_ID."</td>
|
||||
<td class='fcaption'>".LAN_DATE."</td>
|
||||
<td class='fcaption'>".UPLLAN_5."</td>
|
||||
<td class='fcaption'>".UPLLAN_23."</td>
|
||||
<td class='fcaption'>".UPLLAN_8."</td>
|
||||
<td class='fcaption'>".UPLLAN_35."</td>
|
||||
<td class='fcaption'>".UPLLAN_42."</td>
|
||||
<td class='fcaption'>".LAN_NAME."</td>
|
||||
<td class='fcaption'>".LAN_FILE_NAME."</td>
|
||||
<td class='fcaption'>".LAN_SIZE."</td>
|
||||
<td class='fcaption'>".LAN_ACTIONS."</td>
|
||||
</tr>";
|
||||
|
||||
$text .= "<tr><td class='forumheader3' style='text-align:center' colspan='6'>";
|
||||
@ -810,7 +810,7 @@ switch ($action)
|
||||
}
|
||||
$text .= "</table>\n</div>";
|
||||
|
||||
$ns->tablerender(UPLLAN_43, $text);
|
||||
$ns->tablerender(LAN_UPLOADS, $text);
|
||||
} // end - switch($action)
|
||||
|
||||
|
||||
@ -826,15 +826,15 @@ function upload_adminmenu()
|
||||
|
||||
if(getperms("0"))
|
||||
{
|
||||
$var['filetypes']['text'] = UPLLAN_49;
|
||||
$var['filetypes']['text'] = LAN_FILETYPES;
|
||||
$var['filetypes']['link'] = e_SELF."?filetypes";
|
||||
$var['filetypes']['perm'] = "0";
|
||||
|
||||
$var['options']['text'] = UPLLAN_50;
|
||||
$var['options']['text'] = LAN_OPTIONS;
|
||||
$var['options']['link'] = e_SELF."?options";
|
||||
$var['options']['perm'] = "0";
|
||||
}
|
||||
show_admin_menu(UPLLAN_43, $action, $var);
|
||||
show_admin_menu(LAN_UPLOADS, $action, $var);
|
||||
}
|
||||
|
||||
|
||||
|
@ -27,9 +27,9 @@ if($parm == "request"){
|
||||
|
||||
$agreetext = $tp->toJS($tp->toHTML($pref['agree_text'],FALSE,'DESCRIPTION'));
|
||||
if($row['download_mirror_type']){
|
||||
$text = ($pref['agree_flag'] ? "<a href='".e_BASE."download.php?mirror.".$row['download_id']."' onclick= \"return confirm('{$agreetext}');\">" : "<a href='".e_BASE."download.php?mirror.".$row['download_id']."' title='".LAN_dl_32."'>");
|
||||
$text = ($pref['agree_flag'] ? "<a href='".e_BASE."download.php?mirror.".$row['download_id']."' onclick= \"return confirm('{$agreetext}');\">" : "<a href='".e_BASE."download.php?mirror.".$row['download_id']."' title='".LAN_DOWNLOAD."'>");
|
||||
}else{
|
||||
$text = ($pref['agree_flag'] ? "<a href='".e_BASE."request.php?".$row['download_id']."' onclick= \"return confirm('{$agreetext}');\">" : "<a href='".e_BASE."request.php?".$row['download_id']."' title='".LAN_dl_32."'>");
|
||||
$text = ($pref['agree_flag'] ? "<a href='".e_BASE."request.php?".$row['download_id']."' onclick= \"return confirm('{$agreetext}');\">" : "<a href='".e_BASE."request.php?".$row['download_id']."' title='".LAN_DOWNLOAD."'>");
|
||||
}
|
||||
$text .= $tp->toHTML($row['download_name'], FALSE, 'USER_TITLE')."</a>";
|
||||
return $text;
|
||||
@ -53,7 +53,7 @@ SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_LIST_ICON
|
||||
global $row;
|
||||
$img = "<img src='".IMAGE_DOWNLOAD."' alt='' style='border:0' title='".LAN_dl_32."' />";
|
||||
$img = "<img src='".IMAGE_DOWNLOAD."' alt='' style='border:0' title='".LAN_DOWNLOAD."' />";
|
||||
if($parm == "link"){
|
||||
return "<a href='".e_BASE."download.php?view.".$row['download_id']."' >".$img."</a>";
|
||||
}else{
|
||||
@ -315,7 +315,7 @@ SC_BEGIN DOWNLOAD_VIEW_RATING
|
||||
else if(!USER) {
|
||||
$text .= " ";
|
||||
} else {
|
||||
$text .= LAN_dl_15;
|
||||
$text .= LAN_THANK_YOU;
|
||||
}
|
||||
$text .= "</td></tr></table>";
|
||||
return $text;
|
||||
@ -338,7 +338,7 @@ SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_VIEW_AUTHOR_LAN
|
||||
global $dl;
|
||||
return ($dl['download_author']) ? LAN_dl_24 : "";
|
||||
return ($dl['download_author']) ? LAN_AUTHOR : "";
|
||||
SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_VIEW_AUTHOREMAIL_LAN
|
||||
@ -353,11 +353,11 @@ SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_VIEW_DATE_LAN
|
||||
global $dl;
|
||||
return ($dl['download_datestamp']) ? LAN_dl_22 : "";
|
||||
return ($dl['download_datestamp']) ? LAN_DATE : "";
|
||||
SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_VIEW_IMAGE_LAN
|
||||
return LAN_dl_11;
|
||||
return LAN_IMAGE;
|
||||
SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_VIEW_REQUESTED
|
||||
@ -366,15 +366,15 @@ return $dl['download_requested'];
|
||||
SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_VIEW_RATING_LAN
|
||||
return LAN_dl_12;
|
||||
return LAN_RATING;
|
||||
SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_VIEW_FILESIZE_LAN
|
||||
return LAN_dl_10;
|
||||
return LAN_SIZE;
|
||||
SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_VIEW_DESCRIPTION_LAN
|
||||
return LAN_dl_7;
|
||||
return LAN_DESCRIPTION;
|
||||
SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_VIEW_REQUESTED_LAN
|
||||
@ -382,7 +382,7 @@ return LAN_dl_77;
|
||||
SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_VIEW_LINK_LAN
|
||||
return LAN_dl_32;
|
||||
return LAN_DOWNLOAD;
|
||||
SC_END
|
||||
|
||||
|
||||
@ -417,7 +417,7 @@ SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_BACK_TO_LIST
|
||||
global $dl;
|
||||
return "<a href='".e_BASE."download.php?list.".$dl['download_category']."'>".LAN_dl_35."</a>";
|
||||
return "<a href='".e_BASE."download.php?list.".$dl['download_category']."'>".LAN_BACK."</a>";
|
||||
SC_END
|
||||
|
||||
SC_BEGIN DOWNLOAD_BACK_TO_CATEGORY_LIST
|
||||
|
@ -48,11 +48,13 @@ define("EMESSLAN_TITLE_DEBUG", "System Debug");
|
||||
|
||||
define("LAN_EDIT","Edit");
|
||||
define("LAN_DELETE","Delete");
|
||||
define("LAN_DEFAULT","Default");
|
||||
define("LAN_MORE", "More..");
|
||||
define("LAN_READ_MORE", "Read more..");
|
||||
define("LAN_GOPAGE", "Go to page");
|
||||
define("LAN_GOTOPAGEX", "Go to page [x]");
|
||||
define("LAN_GO", "Go");
|
||||
define("LAN_SUBMIT", "Submit");
|
||||
define("LAN_NONE", "None");
|
||||
define("LAN_WARNING", "Warning!");
|
||||
define("LAN_ERROR", "Error");
|
||||
@ -61,14 +63,22 @@ define("LAN_EMAIL_SUBS", "-email-");
|
||||
define("LAN_YES", "Yes");
|
||||
define("LAN_NO", "No");
|
||||
define("LAN_OK", "OK");
|
||||
define("LAN_ACTIONS", "Actions");
|
||||
define("LAN_THANK_YOU", "Thank you");
|
||||
define("LAN_CONTINUE", "Continue");
|
||||
define("LAN_ENTER", "Enter");
|
||||
define("LAN_ENTER_CODE", "Enter code");
|
||||
define("LAN_INVALID_CODE", "Incorrect code entered.");
|
||||
define("LAN_SEARCH", "Search");
|
||||
define("LAN_VIEW", "View");
|
||||
define("LAN_SORT", "Sort");
|
||||
define("LAN_ORDER_BY", "Order By");
|
||||
define("LAN_ASCENDING", "Ascending");
|
||||
define("LAN_DESCENDING", "Descending");
|
||||
define("LAN_SHARE", "Share");
|
||||
define("LAN_BACK", "Back");
|
||||
define("LAN_NAME", "Name");
|
||||
define("LAN_DESCRIPTION", "Description");
|
||||
define("LAN_CANCEL","Cancel");
|
||||
define("LAN_DATE","Date");
|
||||
define("LAN_DATE_POSTED", "Date posted");
|
||||
@ -85,8 +95,17 @@ define("LAN_SETTINGS", "Settings");
|
||||
define("LAN_PASSWORD", "Password");
|
||||
define("LAN_TYPE", "Type");
|
||||
define("LAN_DESCRIPTION", "Description");
|
||||
define("LAN_SCREENSHOT", "Screenshot");
|
||||
define("LAN_FILE", "File");
|
||||
define("LAN_FILETYPES", "Filetypes");
|
||||
define("LAN_FILE_NOT_FOUND", "File Not Found");
|
||||
define("LAN_FILES","Files");
|
||||
define("LAN_SIZE", "Size");
|
||||
define("LAN_VERSION", "Version");
|
||||
define("LAN_DOWNLOAD", "Download");
|
||||
define("LAN_COMMENTS", "Comments");
|
||||
define("LAN_LOCATION", "Location");
|
||||
define("LAN_NO_RECORDS_FOUND","No Records Found.");
|
||||
|
||||
define("LAN_ENTER_USRNAME_EMAIL", "Please enter your username or email"); // admin php hover field admin name
|
||||
define("LAN_PWD_REQUIRED", "Password is required"); // admin php hover field admin password
|
||||
|
@ -284,6 +284,7 @@ define("LAN_BAN","Ban");
|
||||
define("LAN_RATING", "Rating");
|
||||
|
||||
define("LAN_UPLOAD", "Upload");
|
||||
define("LAN_UPLOADS","Uploads");
|
||||
define("LAN_UPLOAD_IMAGES","Upload Images");
|
||||
define("LAN_UPLOAD_FILES","Upload Files");
|
||||
define("LAN_UPLOAD_ADDFILE","Add Another File");
|
||||
|
@ -25,15 +25,15 @@ define("UPLLAN_2", "Settings saved in database");
|
||||
//define("UPLLAN_3", "Upload ID");//LAN_ID
|
||||
define('UPLLAN_4', 'Nothing changed - not updated');
|
||||
define("UPLLAN_5", "Poster");
|
||||
define("UPLLAN_6", "Email");
|
||||
//define("UPLLAN_6", "Email");//LAN_EMAIL
|
||||
define("UPLLAN_7", "Website");
|
||||
define("UPLLAN_8", "File Name");
|
||||
//define("UPLLAN_8", "File Name");//LAN_FILE_NAME
|
||||
|
||||
define("UPLLAN_9", "Version");
|
||||
define("UPLLAN_10", "File");
|
||||
define("UPLLAN_11", "File Size");
|
||||
define("UPLLAN_12", "Screenshot");
|
||||
define("UPLLAN_13", "Description");
|
||||
//define("UPLLAN_9", "Version");//LAN_VERSION
|
||||
//define("UPLLAN_10", "File");//LAN_FILE
|
||||
//define("UPLLAN_11", "File Size");// LAN_SIZE
|
||||
//define("UPLLAN_12", "Screenshot");// LAN_SCREENSHOT
|
||||
//define("UPLLAN_13", "Description");// LAN_DESCRIPTION
|
||||
define("UPLLAN_14", "Demo");
|
||||
|
||||
define("UPLLAN_16", "copy to newspost");
|
||||
@ -43,7 +43,7 @@ define("UPLLAN_19", "There are no unmoderated public uploads");
|
||||
define("UPLLAN_20", "There");
|
||||
define("UPLLAN_21", "unmoderated public upload");
|
||||
//define("UPLLAN_22", "ID");//LAN_ID
|
||||
define("UPLLAN_23", "Name");
|
||||
//define("UPLLAN_23", "Name");//LAN_NAME
|
||||
define("UPLLAN_24", "Filetype");
|
||||
define("UPLLAN_25", "Uploads Enabled?");
|
||||
define("UPLLAN_26", "No public uploads will be permitted if disabled");
|
||||
@ -55,23 +55,23 @@ define("UPLLAN_27", "unmoderated public uploads");
|
||||
//define("UPLLAN_32", "Binary");
|
||||
define("UPLLAN_33", "Maximum file size");
|
||||
define("UPLLAN_34", "Absolute maximum upload size in bytes. Further limited by settings from php.ini, and by the settings in filetypes.xml");
|
||||
define("UPLLAN_35", 'Size');
|
||||
//define("UPLLAN_35", 'Size');LAN_SIZE
|
||||
//define("UPLLAN_36", "Please enter one type per line");
|
||||
define("UPLLAN_37", "Permission");
|
||||
define("UPLLAN_38", "Select to allow only certain users to upload");
|
||||
define("UPLLAN_39", "Submit");
|
||||
//define("UPLLAN_39", "Submit");//LAN_SUBMIT
|
||||
|
||||
define("UPLLAN_41", "Please note - file uploads are disabled from your php.ini, it will not be possible to upload files until you set it to On.");
|
||||
define("UPLLAN_42", "Actions");
|
||||
define("UPLLAN_43", "Uploads");
|
||||
define("UPLLAN_44", "Upload");
|
||||
//define("UPLLAN_42", "Actions");//LAN_ACTIONS
|
||||
//define("UPLLAN_43", "Uploads");//LAN_UPLOADS
|
||||
//define("UPLLAN_44", "Upload");//LAN_UPLOAD
|
||||
define("UPLLAN_45", "Are you sure you want to delete the following file...");
|
||||
|
||||
define("UPLAN_COPYTODLM", "copy to download manager");
|
||||
define("UPLAN_IS", "is ");
|
||||
define("UPLAN_ARE", "are ");
|
||||
define("UPLAN_COPYTODLS", "Copy to Downloads");
|
||||
define('UPLAN_DELETE', 'Delete');
|
||||
//define('UPLAN_DELETE', 'Delete');//LAN_DELETE
|
||||
|
||||
/*
|
||||
define("UPLLAN_48", "For security reasons allowed file types has been moved out of the database into a
|
||||
@ -79,16 +79,16 @@ flatfile located in your admin directory. To use, rename the file e107_admin/fil
|
||||
and add a comma delimited list of file type extensions to it. You should not allow the upload of .html, .txt, etc., as an attacker may upload a file of this type which includes malicious javascript. You should also, of course, not allow
|
||||
the upload of .php files or any other type of executable script.");
|
||||
*/
|
||||
define('UPLLAN_49', 'File Types');
|
||||
define('UPLLAN_50', 'Options');
|
||||
//define('UPLLAN_49', 'File Types');LAN_FILETYPES
|
||||
//define('UPLLAN_50', 'Options');//LAN_OPTIONS
|
||||
define('UPLLAN_51', 'List Uploads');
|
||||
define('UPLLAN_52', 'This page helps you create a file for managing file upload permissions. The file is saved as --SOURCE--, and must be copied to --DEST-- before it takes effect.');
|
||||
define('UPLLAN_53', 'User Class');
|
||||
//define('UPLLAN_53', 'User Class');//LAN_USERCLASS
|
||||
define('UPLLAN_54', 'File Extensions');
|
||||
define('UPLLAN_55', 'Max upload size');
|
||||
define('UPLLAN_56', 'Generate file');
|
||||
define('UPLLAN_57', 'Source for values: ');
|
||||
define('UPLLAN_58', 'Default');
|
||||
//define('UPLLAN_58', 'Default');LAN_DEFAULT
|
||||
define('UPLLAN_59', 'Settings written to ');
|
||||
define('UPLLAN_60', 'Now move this file to ');
|
||||
define('UPLLAN_61', 'Error writing file: ');
|
||||
@ -96,9 +96,9 @@ define('UPLLAN_61', 'Error writing file: ');
|
||||
define('UPLLAN_62', 'Download plugin is not installed - activation not possible.');
|
||||
define('UPLLAN_63', 'Record moved to Downloads. [x]');
|
||||
define('UPLLAN_64', 'Manage Download');
|
||||
define('UPLLAN_65', 'File not found');
|
||||
//define('UPLLAN_65', 'File not found');//LAN_FILE_NOT_FOUND
|
||||
define('UPLLAN_66', 'Download path error');
|
||||
define('UPLLAN_67', 'Anonymous');
|
||||
//define('UPLLAN_67', 'Anonymous');//LAN_ANONYMOUS
|
||||
define('UPLLAN_68', 'SQL Error:');
|
||||
define('UPLLAN_69', '');
|
||||
define('UPLLAN_70', '');
|
||||
|
@ -43,7 +43,7 @@ define("LAN_408", "Underlined");
|
||||
define("LAN_409", "Name of file");
|
||||
define("LAN_410", "Version");
|
||||
define("LAN_411", "File");
|
||||
define("LAN_412", "Screenshot");
|
||||
//define("LAN_412", "Screenshot");//LAN_SCREENSHOT
|
||||
define("LAN_413", "Description");
|
||||
define("LAN_414", "Working demo");
|
||||
define("LAN_415", "enter URL to site where demo can be viewed");
|
||||
|
@ -207,22 +207,22 @@ class download_shortcodes extends e_shortcode
|
||||
{
|
||||
case 'name':
|
||||
$qry['order'] = 'name';
|
||||
$text = LAN_dl_28;
|
||||
$text = LAN_NAME;
|
||||
break;
|
||||
|
||||
case 'datestamp':
|
||||
$qry['order'] = 'datestamp';
|
||||
$text = LAN_dl_22;
|
||||
$text = LAN_DATE;
|
||||
break;
|
||||
|
||||
case 'author':
|
||||
$qry['order'] = 'author';
|
||||
$text = LAN_dl_24;
|
||||
$text = LAN_AUTHOR;
|
||||
break;
|
||||
|
||||
case 'filesize':
|
||||
$qry['order'] = 'filesize';
|
||||
$text = LAN_dl_21;
|
||||
$text = LAN_SIZE;
|
||||
break;
|
||||
|
||||
case 'requested':
|
||||
@ -231,7 +231,7 @@ class download_shortcodes extends e_shortcode
|
||||
break;
|
||||
|
||||
case 'rating':
|
||||
$text = LAN_dl_12;
|
||||
$text = LAN_RATING;
|
||||
break;
|
||||
|
||||
case 'link':
|
||||
@ -265,11 +265,11 @@ class download_shortcodes extends e_shortcode
|
||||
|
||||
if ($this->var['download_mirror_type'])
|
||||
{
|
||||
$text = ($pref['agree_flag'] ? "<a href='".e_PLUGIN_ABS."download/download.php?mirror.".$this->var['download_id']."' onclick= \"return confirm('{$agreetext}');\">" : "<a href='".e_PLUGIN_ABS."download/download.php?mirror.".$this->var['download_id']."' title='".LAN_dl_32."'>");
|
||||
$text = ($pref['agree_flag'] ? "<a href='".e_PLUGIN_ABS."download/download.php?mirror.".$this->var['download_id']."' onclick= \"return confirm('{$agreetext}');\">" : "<a href='".e_PLUGIN_ABS."download/download.php?mirror.".$this->var['download_id']."' title='".LAN_DOWNLOAD."'>");
|
||||
}
|
||||
else
|
||||
{
|
||||
$text = ($pref['agree_flag'] ? "<a href='".e_PLUGIN_ABS."download/request.php?".$this->var['download_id']."' onclick= \"return confirm('{$agreetext}');\">" : "<a href='".e_PLUGIN_ABS."download/request.php?".$this->var['download_id']."' title='".LAN_dl_32."'>");
|
||||
$text = ($pref['agree_flag'] ? "<a href='".e_PLUGIN_ABS."download/request.php?".$this->var['download_id']."' onclick= \"return confirm('{$agreetext}');\">" : "<a href='".e_PLUGIN_ABS."download/request.php?".$this->var['download_id']."' title='".LAN_DOWNLOAD."'>");
|
||||
}
|
||||
|
||||
$text .= $tp->toHTML($this->var['download_name'], FALSE, 'TITLE')."</a>";
|
||||
@ -352,7 +352,7 @@ class download_shortcodes extends e_shortcode
|
||||
|
||||
$agreetext = $tp->toJS($tp->toHTML($pref['agree_text'],FALSE,'DESCRIPTION'));
|
||||
|
||||
$img = "<img src='".IMAGE_DOWNLOAD."' alt='".LAN_dl_32."' title='".LAN_dl_32."' />";
|
||||
$img = "<img src='".IMAGE_DOWNLOAD."' alt='".LAN_DOWNLOAD."' title='".LAN_DOWNLOAD."' />";
|
||||
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
@ -362,14 +362,14 @@ class download_shortcodes extends e_shortcode
|
||||
|
||||
if ($this->var['download_mirror_type'])
|
||||
{
|
||||
return "<a class='e-tip' title='".LAN_dl_32."' href='".e_PLUGIN_ABS."download/download.php?mirror.".$this->var['download_id']."'>{$img}</a>";
|
||||
return "<a class='e-tip' title='".LAN_DOWNLOAD."' href='".e_PLUGIN_ABS."download/download.php?mirror.".$this->var['download_id']."'>{$img}</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$url = e107::getUrl()->create('download/request/item',array('id'=>$this->var['download_id'], 'name'=>$this->var['download_sef']));
|
||||
return ($pref['agree_flag'] ? "<a class='e-tip' title='".LAN_dl_32."' href='".$url."' onclick= \"return confirm('{$agreetext}');\">{$img}</a>" : "<a class='e-tip' title='".LAN_dl_32."' href='".$url."' >{$img}</a>");
|
||||
return ($pref['agree_flag'] ? "<a class='e-tip' title='".LAN_DOWNLOAD."' href='".$url."' onclick= \"return confirm('{$agreetext}');\">{$img}</a>" : "<a class='e-tip' title='".LAN_DOWNLOAD."' href='".$url."' >{$img}</a>");
|
||||
|
||||
// return ($pref['agree_flag'] ? "<a class='e-tip' title='".LAN_dl_32."' href='".e_PLUGIN_ABS."download/request.php?".$this->var['download_id']."' onclick= \"return confirm('{$agreetext}');\">{$img}</a>" : "<a class='e-tip' title='".LAN_dl_32."' href='".e_PLUGIN_ABS."download/request.php?".$this->var['download_id']."' >{$img}</a>");
|
||||
// return ($pref['agree_flag'] ? "<a class='e-tip' title='".LAN_DOWNLOAD."' href='".e_PLUGIN_ABS."download/request.php?".$this->var['download_id']."' onclick= \"return confirm('{$agreetext}');\">{$img}</a>" : "<a class='e-tip' title='".LAN_DOWNLOAD."' href='".e_PLUGIN_ABS."download/request.php?".$this->var['download_id']."' >{$img}</a>");
|
||||
}
|
||||
}
|
||||
|
||||
@ -423,7 +423,7 @@ class download_shortcodes extends e_shortcode
|
||||
function sc_download_list_total_files()
|
||||
{
|
||||
global $dlft;
|
||||
return intval($dlft)." ".LAN_dl_17;
|
||||
return intval($dlft)." ".strtolower(LAN_FILES);
|
||||
}
|
||||
|
||||
|
||||
@ -594,7 +594,7 @@ class download_shortcodes extends e_shortcode
|
||||
|
||||
$click = "";
|
||||
|
||||
$img = "<img src='".IMAGE_DOWNLOAD."' alt='".LAN_dl_32."' title='".LAN_dl_32."' />";
|
||||
$img = "<img src='".IMAGE_DOWNLOAD."' alt='".LAN_DOWNLOAD."' title='".LAN_DOWNLOAD."' />";
|
||||
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
@ -674,7 +674,7 @@ class download_shortcodes extends e_shortcode
|
||||
else if (!USER) {
|
||||
$text .= " ";
|
||||
} else {
|
||||
$text .= LAN_dl_15;
|
||||
$text .= LAN_THANK_YOU;
|
||||
}
|
||||
$text .= "</td></tr></table>";
|
||||
return $text;
|
||||
@ -740,14 +740,14 @@ class download_shortcodes extends e_shortcode
|
||||
|
||||
$click = " onclick='return confirm(\"".$tp->toJS($tp->toHTML($pref['agree_text'],FALSE,'DESCRIPTION'))."\")'";
|
||||
|
||||
$img = "<img src='".IMAGE_DOWNLOAD."' alt='".LAN_dl_32."' title='".LAN_dl_32."' />";
|
||||
$img = "<img src='".IMAGE_DOWNLOAD."' alt='".LAN_DOWNLOAD."' title='".LAN_DOWNLOAD."' />";
|
||||
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
$img = '<i class="icon-download"></i>';
|
||||
}
|
||||
|
||||
return "<a href='".e_PLUGIN_ABS."download/download.php?mirror.{$this->var['download_id']}.{$this->mirror['dlmirrorfile'][0]}' title='".LAN_dl_32."'{$click}>".$img."</a>";
|
||||
return "<a href='".e_PLUGIN_ABS."download/download.php?mirror.{$this->var['download_id']}.{$this->mirror['dlmirrorfile'][0]}' title='".LAN_DOWNLOAD."'{$click}>".$img."</a>";
|
||||
}
|
||||
|
||||
function sc_download_mirror_requests()
|
||||
@ -766,7 +766,7 @@ class download_shortcodes extends e_shortcode
|
||||
function sc_download_view_author_lan()
|
||||
{
|
||||
|
||||
return ($this->var['download_author']) ? LAN_dl_24 : "";
|
||||
return ($this->var['download_author']) ? LAN_AUTHOR : "";
|
||||
}
|
||||
|
||||
function sc_download_view_authoremail_lan()
|
||||
@ -784,12 +784,12 @@ class download_shortcodes extends e_shortcode
|
||||
function sc_download_view_date_lan()
|
||||
{
|
||||
|
||||
return ($this->var['download_datestamp']) ? LAN_dl_22 : "";
|
||||
return ($this->var['download_datestamp']) ? LAN_DATE: "";
|
||||
}
|
||||
|
||||
function sc_download_view_image_lan()
|
||||
{
|
||||
return LAN_dl_11;
|
||||
return LAN_IMAGE;
|
||||
}
|
||||
|
||||
function sc_download_view_requested()
|
||||
@ -800,17 +800,17 @@ class download_shortcodes extends e_shortcode
|
||||
|
||||
function sc_download_view_rating_lan()
|
||||
{
|
||||
return LAN_dl_12;
|
||||
return LAN_RATING;
|
||||
}
|
||||
|
||||
function sc_download_view_filesize_lan()
|
||||
{
|
||||
return LAN_dl_10;
|
||||
return LAN_SIZE;
|
||||
}
|
||||
|
||||
function sc_download_view_description_lan()
|
||||
{
|
||||
return LAN_dl_7;
|
||||
return LAN_DESCRIPTION;
|
||||
}
|
||||
|
||||
function sc_download_view_requested_lan()
|
||||
@ -820,7 +820,7 @@ class download_shortcodes extends e_shortcode
|
||||
|
||||
function sc_download_view_link_lan()
|
||||
{
|
||||
return LAN_dl_32;
|
||||
return LAN_DOWNLOAD;
|
||||
}
|
||||
|
||||
|
||||
@ -911,7 +911,7 @@ class download_shortcodes extends e_shortcode
|
||||
{
|
||||
$text = "<form class='form-search form-inline' method='get' action='".e_BASE."search.php'>";
|
||||
$text .= '<div><div class="input-group">';
|
||||
$text .= "<input class='tbox form-control search-query' type='text' name='q' size='30' value='' placeholder=\"".LAN_dl_41."\" maxlength='50' />
|
||||
$text .= "<input class='tbox form-control search-query' type='text' name='q' size='30' value='' placeholder=\"".LAN_SEARCH."\" maxlength='50' />
|
||||
<input type='hidden' name='r' value='0' />
|
||||
<input type='hidden' name='t' value='download' />
|
||||
";
|
||||
@ -929,7 +929,7 @@ class download_shortcodes extends e_shortcode
|
||||
|
||||
return "<form class='form-search form-inline' method='get' action='".e_BASE."search.php'>
|
||||
<div class='input-group'>
|
||||
<input class='tbox form-control search-query' type='text' name='q' size='30' value='' placeholder=\"".LAN_dl_41."\" maxlength='50' />
|
||||
<input class='tbox form-control search-query' type='text' name='q' size='30' value='' placeholder=\"".LAN_SEARCH."\" maxlength='50' />
|
||||
<button class='btn btn-primary button' type='submit' name='s' value='1' />".LAN_GO."</button>
|
||||
<input type='hidden' name='r' value='0' />
|
||||
</div>
|
||||
|
@ -208,7 +208,7 @@ class download
|
||||
|
||||
if ($dlcat->down_count == 0)
|
||||
{
|
||||
return $ns->tablerender(LAN_PLUGIN_DOWNLOAD_NAME, "<div style='text-align:center'>".LAN_dl_2."</div>",'download-categories',true);
|
||||
return $ns->tablerender(LAN_PLUGIN_DOWNLOAD_NAME, "<div style='text-align:center'>".LAN_NO_RECORDS_FOUND."</div>",'download-categories',true);
|
||||
}
|
||||
|
||||
$download_cat_table_string = "";
|
||||
@ -321,7 +321,7 @@ class download
|
||||
if(!$sql->gen($query))
|
||||
{
|
||||
//require_once(HEADERF);
|
||||
return $ns->tablerender(LAN_PLUGIN_DOWNLOAD_NAME, "<div style='text-align:center'>".LAN_dl_3."</div>", 'download-view', true);
|
||||
return $ns->tablerender(LAN_PLUGIN_DOWNLOAD_NAME, "<div style='text-align:center'>".LAN_NO_RECORDS_FOUND."."</div>", 'download-view', true);
|
||||
//require_once(FOOTERF);
|
||||
//exit;
|
||||
}
|
||||
@ -684,7 +684,7 @@ class download
|
||||
{
|
||||
$report_add = $tp->toDB($_POST['report_add']);
|
||||
$download_name = $tp->toDB($download_name);
|
||||
$user = USER ? USERNAME : LAN_dl_52;
|
||||
$user = USER ? USERNAME : LAN_GUEST;
|
||||
|
||||
if ($pref['download_email'])
|
||||
{ // this needs to be moved into the NOTIFY, with an event.
|
||||
@ -720,7 +720,7 @@ class download
|
||||
|
||||
$text .= "<form action='".e_SELF."?report.{$download_id}' method='post'>
|
||||
<div>
|
||||
".LAN_dl_32.": <a href='".e_PLUGIN."download/download?action=view&id={$download_id}'>".$download_name."</a>
|
||||
".LAN_DOWNLOAD.": <a href='".e_PLUGIN."download/download?action=view&id={$download_id}'>".$download_name."</a>
|
||||
</div>
|
||||
<div>".LAN_dl_54."<br />".LAN_dl_55."</div>
|
||||
<div> ".$frm->textarea('report_add')."</div>
|
||||
@ -888,10 +888,10 @@ class download
|
||||
break;
|
||||
|
||||
default: // Generic error - shouldn't happen
|
||||
$errmsg = LAN_dl_61." ".$this->qry['error'];
|
||||
$errmsg = LAN_ERROR." ".$this->qry['error'];
|
||||
}
|
||||
|
||||
return $ns->tablerender(LAN_dl_61, $header. "<div class='alert alert-error alert-danger alert-block' style='text-align:center'>".$errmsg."</div>". $footer, 'download-error', true);
|
||||
return $ns->tablerender(LAN_ERROR, $header. "<div class='alert alert-error alert-danger alert-block' style='text-align:center'>".$errmsg."</div>". $footer, 'download-error', true);
|
||||
|
||||
}
|
||||
|
||||
|
@ -7,50 +7,50 @@
|
||||
*/
|
||||
|
||||
define("LAN_dl_1", "(Restricted)");
|
||||
define("LAN_dl_2", "No downloads yet, please check back soon");
|
||||
define("LAN_dl_3", "No downloads in this category yet");
|
||||
//define("LAN_dl_2", "No downloads yet, please check back soon");//LAN_NO_RECORDS_FOUND
|
||||
//define("LAN_dl_3", "No downloads in this category yet");//LAN_NO_RECORDS_FOUND
|
||||
define("LAN_dl_4", "Files available: ");
|
||||
define("LAN_dl_5", "Total size of files: ");
|
||||
define("LAN_dl_6", "Files downloaded: ");
|
||||
define("LAN_dl_7", "Description");
|
||||
//define("LAN_dl_7", "Description"); // LAN_DESCRIPTION
|
||||
define("LAN_dl_8", "Get");
|
||||
define("LAN_dl_9", "Return to Category List");
|
||||
define("LAN_dl_10", "Filesize");
|
||||
define("LAN_dl_11", "Image"); //FIXME Use Generic
|
||||
define("LAN_dl_12", "Rating");
|
||||
//define("LAN_dl_10", "Filesize");//LAN_SIZE
|
||||
//define("LAN_dl_11", "Image"); //FIXME Use Generic LAN_IMAGE
|
||||
//define("LAN_dl_12", "Rating");//LAN_RATING
|
||||
define("LAN_dl_13", "Not rated");
|
||||
define("LAN_dl_14", "Rate this download");
|
||||
define("LAN_dl_15", "Thanks for rating");
|
||||
//define("LAN_dl_15", "Thanks for rating");LAN_THANK_YOU
|
||||
define("LAN_dl_16", "download(s) from");
|
||||
define("LAN_dl_17", "files");
|
||||
//define("LAN_dl_17", "files"); //LAN_FILES
|
||||
// define("LAN_dl_18", "Downloads");
|
||||
define("LAN_dl_19", "Category"); //FIXME Use Generic
|
||||
define("LAN_dl_20", "Files");
|
||||
define("LAN_dl_21", "Size");
|
||||
define("LAN_dl_22", "Date"); //FIXME Use Generic
|
||||
define("LAN_dl_23", "Filename");
|
||||
define("LAN_dl_24", "Author"); //FIXME Use Generic
|
||||
define("LAN_dl_25", "Ascending");
|
||||
define("LAN_dl_26", "Descending");
|
||||
//define("LAN_dl_19", "Category"); //FIXME Use Generic LAN_CATEGORY
|
||||
//define("LAN_dl_20", "Files"); LAN_FILES
|
||||
//define("LAN_dl_21", "Size"); LAN_SIZE
|
||||
//define("LAN_dl_22", "Date"); //FIXME Use Generic LAN_DATE
|
||||
//define("LAN_dl_23", "Filename"); //LAN_FILE
|
||||
//define("LAN_dl_24", "Author"); //FIXME Use Generic LAN_AUTHOR
|
||||
//define("LAN_dl_25", "Ascending");LAN_ASCENDING
|
||||
//define("LAN_dl_26", "Descending");LAN_DESCENDING
|
||||
// define("LAN_dl_27", "Go");
|
||||
define("LAN_dl_28", "Name"); //FIXME Use Generic
|
||||
//define("LAN_dl_28", "Name"); //FIXME Use Generic LAN_NAME
|
||||
define("LAN_dl_29", "DL's");
|
||||
define("LAN_dl_30", "Author email");
|
||||
define("LAN_dl_31", "Author website");
|
||||
define("LAN_dl_32", "Download");
|
||||
//define("LAN_dl_32", "Download");//LAN_DOWNLOAD
|
||||
// define("LAN_dl_33", "Previous");
|
||||
// define("LAN_dl_34", "Next");
|
||||
define("LAN_dl_35", "Back to list"); //FIXME Use Generic
|
||||
//define("LAN_dl_35", "Back to list"); //FIXME Use Generic LAN_BACK
|
||||
define("LAN_dl_36", "New downloads");
|
||||
|
||||
define("LAN_dl_37", "View"); //FIXME Use Generic
|
||||
define("LAN_dl_38", "Order by");
|
||||
define("LAN_dl_39", "Sort"); //FIXME Use Generic
|
||||
//define("LAN_dl_37", "View"); //FIXME Use Generic LAN_VIEW
|
||||
//define("LAN_dl_38", "Order by"); //LAN_ORDER_BY
|
||||
//define("LAN_dl_39", "Sort"); //FIXME Use Generic //LAN_SORT
|
||||
|
||||
define("LAN_dl_40", "Click here for screenshot");
|
||||
define("LAN_dl_41", "Search Downloads");
|
||||
//define("LAN_dl_41", "Search Downloads");//LAN_SEARCH
|
||||
|
||||
define("LAN_dl_42", "Sub-category");
|
||||
//define("LAN_dl_42", "Sub-category");//usage not found
|
||||
define("LAN_dl_43", "vote");
|
||||
define("LAN_dl_44", "votes");
|
||||
define("LAN_dl_45", "Report broken download");
|
||||
@ -61,7 +61,7 @@ define("LAN_dl_48", "Download has been reported to administrator.<br />Thank you
|
||||
define("LAN_dl_49", "Click here to return to download");
|
||||
define("LAN_dl_50", "Broken download reported");
|
||||
define("LAN_dl_51", "Reporting download: ");
|
||||
define("LAN_dl_52", "Guest");
|
||||
//define("LAN_dl_52", "Guest");//LAN_GUEST
|
||||
define("LAN_dl_53", "Click to view download");
|
||||
define("LAN_dl_54", "An administrator will be made aware of this download, please leave a message if you feel it necessary.");
|
||||
define("LAN_dl_55", "<b>Do not</b> use this form to contact the admin for any other reason.");
|
||||
@ -71,28 +71,28 @@ define("LAN_dl_58", "The following download has been reported as broken from sit
|
||||
define("LAN_dl_59", "Reported by: ");
|
||||
define("LAN_dl_60", "Broken download report from");
|
||||
|
||||
define("LAN_dl_61", "Download Error");
|
||||
//define("LAN_dl_61", "Download Error"); //LAN_ERROR
|
||||
define("LAN_dl_62", "You have been prevented from downloading this file; you have exceeded your download quota");
|
||||
define("LAN_dl_63", "You do not have the correct permissions to download this file.");
|
||||
// define("LAN_dl_64", "Back");
|
||||
define("LAN_dl_65", "File Not Found");
|
||||
//define("LAN_dl_65", "File Not Found");LAN_FILE_NOT_FOUND
|
||||
|
||||
define("LAN_dl_66", "Select download mirror");
|
||||
|
||||
define("LAN_dl_67", "Select mirror ...");
|
||||
define("LAN_dl_68", "Mirror Host");
|
||||
// define("LAN_dl_69", "Download"); // duplicate
|
||||
define("LAN_dl_70", "Location");
|
||||
define("LAN_dl_71", "About");
|
||||
//define("LAN_dl_70", "Location");LAN_LOCATION
|
||||
//define("LAN_dl_71", "About");//ADLAN_CL_20
|
||||
|
||||
define("LAN_dl_72", "Requesting file: ");
|
||||
define("LAN_dl_73", "Downloads from this mirror: ");
|
||||
define("LAN_dl_74", "Total downloads from this mirror: ");
|
||||
|
||||
define("LAN_dl_75", "no image available ");
|
||||
//define("LAN_dl_76", "Go to page"); //FIXME Use Generic
|
||||
//define("LAN_dl_76", "Go to page"); //FIXME Use Generic
|
||||
define("LAN_dl_77", "Downloads"); // Intentional duplicate - some languages need it to be different. This is for number of downloads
|
||||
|
||||
define('LAN_dl_78', 'That download has been disabled or discontinued. Please check in the --LINK--downloads</a> area for a more recent version.');
|
||||
define('LAN_dl_78', 'That download has been disabled or discontinued. Please check in the [link=--LINK--]downloads area[/link] for a more recent version.');
|
||||
|
||||
?>
|
||||
|
@ -122,7 +122,7 @@ if (preg_match("#.*\.[a-z,A-Z]{3,4}#", e_QUERY))
|
||||
$log->addError("Line".__LINE__.": Couldn't find ".e_DOWNLOAD.e_QUERY);
|
||||
$log->toFile('download_requests','Download Requests', true); // Create a log file and add the log messages
|
||||
require_once(HEADERF);
|
||||
$ns->tablerender(LAN_dl_61, "<div style='text-align:center'>".LAN_dl_65."\n<br /><br />\n<a href='javascript:history.back(1)'>".LAN_BACK."</a></div>");
|
||||
$ns->tablerender(LAN_ERROR, "<div style='text-align:center'>".LAN_FILE_NOT_FOUND."\n<br /><br />\n<a href='javascript:history.back(1)'>".LAN_BACK."</a></div>");
|
||||
require_once(FOOTERF);
|
||||
exit();
|
||||
}
|
||||
@ -141,7 +141,7 @@ if ($type == "file")
|
||||
if ($row['download_active'] == 0)
|
||||
{ // Inactive download - don't allow
|
||||
require_once(HEADERF);
|
||||
$ns->tablerender(LAN_dl_61, "<div style='text-align:center'>".str_replace('--LINK--',"<a href='".e_HTTP.'download.php'."'>",LAN_dl_78).'</div>');
|
||||
$ns->tablerender(LAN_ERROR, "<div style='text-align:center'>".str_replace('--LINK--',e_HTTP.'download.php',LAN_dl_78).'</div>');
|
||||
require_once(FOOTERF);
|
||||
exit();
|
||||
}
|
||||
@ -275,7 +275,7 @@ if ($type == "file")
|
||||
$log->addError("Line".__LINE__.": Couldn't find ".e_DOWNLOAD.e_QUERY);
|
||||
$log->toFile('download_requests','Download Requests', true); // Create a log file and add the log messages
|
||||
require_once(HEADERF);
|
||||
$ns -> tablerender(LAN_dl_61, "<div style='text-align:center'>".LAN_dl_65."<br /><br /><a href='javascript:history.back(1)'>".LAN_BACK."</a></div>");
|
||||
$ns -> tablerender(LAN_ERROR, "<div style='text-align:center'>".LAN_FILE_NOT_FOUND."<br /><br /><a href='javascript:history.back(1)'>".LAN_BACK."</a></div>");
|
||||
require_once(FOOTERF);
|
||||
exit();
|
||||
}
|
||||
@ -341,7 +341,7 @@ else
|
||||
else
|
||||
{
|
||||
require_once(HEADERF);
|
||||
$ns->tablerender(LAN_dl_61, "<div style='text-align:center'>".LAN_dl_65."<br /><br /><a href='javascript:history.back(1)'>".LAN_BACK."</a></div>");
|
||||
$ns->tablerender(LAN_ERROR, "<div style='text-align:center'>".LAN_FILE_NOT_FOUND."<br /><br /><a href='javascript:history.back(1)'>".LAN_BACK."</a></div>");
|
||||
require_once(FOOTERF);
|
||||
exit;
|
||||
}
|
||||
@ -378,7 +378,7 @@ function check_download_limits()
|
||||
// Exceeded download count limit
|
||||
header("Location: ".e_BASE."download.php?error.{$cutoff}.2");
|
||||
/* require_once(HEADERF);
|
||||
$ns->tablerender(LAN_dl_61, LAN_dl_62);
|
||||
$ns->tablerender(LAN_ERROR, LAN_dl_62);
|
||||
require(FOOTERF); */
|
||||
exit();
|
||||
}
|
||||
@ -408,7 +408,7 @@ function check_download_limits()
|
||||
{ //Exceed bandwith limit
|
||||
header("Location: ".e_BASE."download.php?error.{$cutoff}.2");
|
||||
/* require(HEADERF);
|
||||
$ns->tablerender(LAN_dl_61, LAN_dl_62);
|
||||
$ns->tablerender(LAN_ERROR, LAN_dl_62);
|
||||
require(FOOTERF); */
|
||||
exit();
|
||||
}
|
||||
|
@ -37,9 +37,9 @@ if(!isset($DOWNLOAD_CAT_TABLE_START))
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class='fcaption' colspan='2'>".LAN_dl_19."</th>
|
||||
<th class='fcaption' colspan='2'>".LAN_CATEGORY."</th>
|
||||
<th class='fcaption'>".LAN_dl_20."</th>
|
||||
<th class='fcaption'>".LAN_dl_21."</th>
|
||||
<th class='fcaption'>".LAN_SIZE."</th>
|
||||
<th class='fcaption'>".LAN_dl_77."</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -306,10 +306,10 @@ if(!isset($DOWNLOAD_MIRROR_START))
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='forumheader' colspan='2'>".LAN_dl_68."</th>
|
||||
<th class='forumheader'>".LAN_dl_71."</th>
|
||||
<th class='forumheader'>".LAN_dl_70."</th>
|
||||
<th class='forumheader'>".LAN_dl_21."</th>
|
||||
<th class='forumheader'>".LAN_dl_32."</th>
|
||||
<th class='forumheader'>".ADLAN_CL_20."</th>
|
||||
<th class='forumheader'>".LAN_LOCATION."</th>
|
||||
<th class='forumheader'>".LAN_SIZE"</th>
|
||||
<th class='forumheader'>".LAN_DOWNLOAD."</th>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
@ -360,9 +360,9 @@ $DOWNLOAD_TEMPLATE['categories']['start'] = "
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan='2'>".LAN_dl_19."</th>
|
||||
<th colspan='2'>".LAN_CATEGORY."</th>
|
||||
<th>".LAN_dl_20."</th>
|
||||
<th>".LAN_dl_21."</th>
|
||||
<th>".LAN_SIZE."</th>
|
||||
<th>".LAN_dl_77."</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -616,10 +616,10 @@ $DOWNLOAD_TEMPLATE['mirror']['start'] = "
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan='2'>".LAN_dl_68."</th>
|
||||
<th>".LAN_dl_71."</th>
|
||||
<th>".LAN_dl_70."</th>
|
||||
<th>".LAN_dl_21."</th>
|
||||
<th>".LAN_dl_32."</th>
|
||||
<th>".ADLAN_CL_20."</th>
|
||||
<th>".LAN_LOCATION."</th>
|
||||
<th>".LAN_SIZE."</th>
|
||||
<th>".LAN_DOWNLOAD."</th>
|
||||
</tr>
|
||||
";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user