1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-09 09:13:25 +02:00

language cleanup

This commit is contained in:
marj
2009-07-18 17:03:39 +00:00
parent 3908f2a47c
commit 6657118a6b
2 changed files with 36 additions and 36 deletions

View File

@ -1,21 +1,19 @@
<?php <?php
/* /*
+ ----------------------------------------------------------------------------+ * e107 website system
| e107 website system *
| * Copyright (C) 2001-2008 e107 Inc (e107.org)
| Copyright (C) 2001-2009 e107 Inc * Released under the terms and conditions of the
| http://e107.org * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
| *
| *
| Released under the terms and conditions of the *
| GNU General Public License (http://gnu.org). * $Source: /cvs_backup/e107_0.8/banner.php,v $
| * $Revision: 1.5 $
| $Source: /cvs_backup/e107_0.8/banner.php,v $ * $Date: 2009-07-18 17:03:39 $
| $Revision: 1.4 $ * $Author: marj_nl_fr $
| $Date: 2009-07-14 05:31:57 $ */
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
require_once("class2.php"); require_once("class2.php");
require_once(e_HANDLER."form_handler.php"); require_once(e_HANDLER."form_handler.php");
$rs = new form; $rs = new form;
@ -39,7 +37,7 @@ if (isset($_POST['clientsubmit'])) {
$clean_password = $tp -> toDB($_POST['clientpassword']); $clean_password = $tp -> toDB($_POST['clientpassword']);
if (!$sql->db_Select("banner", "*", "`banner_clientlogin` = '{$clean_login}' AND `banner_clientpassword` = '{$clean_password}'")) { if (!$sql->db_Select("banner", "*", "`banner_clientlogin` = '{$clean_login}' AND `banner_clientpassword` = '{$clean_password}'")) {
$ns->tablerender(BANNERLAN_38, "<br /><div style='text-align:center'>".BANNERLAN_20."</div><br />"); $ns->tablerender(LAN_ERROR, "<br /><div style='text-align:center'>".BANNERLAN_20."</div><br />");
require_once(FOOTERF); require_once(FOOTERF);
exit; exit;
} }
@ -48,7 +46,7 @@ if (isset($_POST['clientsubmit'])) {
$banner_total = $sql->db_Select("banner", "*", "`banner_clientname` = '{$row['banner_clientname']}'"); $banner_total = $sql->db_Select("banner", "*", "`banner_clientname` = '{$row['banner_clientname']}'");
if (!$banner_total) { if (!$banner_total) {
$ns->tablerender(BANNERLAN_38, "<br /><div style='text-align:center'>".BANNERLAN_29."</div><br />"); $ns->tablerender(LAN_ERROR, "<br /><div style='text-align:center'>".BANNERLAN_29."</div><br />");
require_once(FOOTERF); require_once(FOOTERF);
exit; exit;
} else { } else {
@ -64,7 +62,7 @@ if (isset($_POST['clientsubmit'])) {
$BANNER_TABLE_BANNER_ID = $row['banner_id']; $BANNER_TABLE_BANNER_ID = $row['banner_id'];
$BANNER_TABLE_BANNER_CLICKS = $row['banner_clicks']; $BANNER_TABLE_BANNER_CLICKS = $row['banner_clicks'];
$BANNER_TABLE_BANNER_IMPRESSIONS = $row['banner_impressions']; $BANNER_TABLE_BANNER_IMPRESSIONS = $row['banner_impressions'];
$BANNER_TABLE_ACTIVE = BANNERLAN_36.($row['banner_active'] != "255" ? BANNERLAN_32 : "<b>".BANNERLAN_33."</b>"); $BANNER_TABLE_ACTIVE = BANNERLAN_36.($row['banner_active'] != "255" ? LAN_YES : "<b>".LAN_NO."</b>");
$BANNER_TABLE_STARTDATE = BANNERLAN_37." ".$start_date; $BANNER_TABLE_STARTDATE = BANNERLAN_37." ".$start_date;
$BANNER_TABLE_ENDDATE = BANNERLAN_34." ".$end_date; $BANNER_TABLE_ENDDATE = BANNERLAN_34." ".$end_date;
@ -110,7 +108,7 @@ if (isset($_POST['clientsubmit'])) {
$BANNER_LOGIN_TABLE_LOGIN = $rs->form_text("clientlogin", 30, $id, 20, "tbox"); $BANNER_LOGIN_TABLE_LOGIN = $rs->form_text("clientlogin", 30, $id, 20, "tbox");
$BANNER_LOGIN_TABLE_PASSW = $rs->form_password("clientpassword", 30, "", 20, "tbox"); $BANNER_LOGIN_TABLE_PASSW = $rs->form_password("clientpassword", 30, "", 20, "tbox");
$BANNER_LOGIN_TABLE_SUBMIT = $rs->form_button("submit", "clientsubmit", BANNERLAN_18); $BANNER_LOGIN_TABLE_SUBMIT = $rs->form_button("submit", "clientsubmit", LAN_CONTINUE);
if (!$BANNER_LOGIN_TABLE) { if (!$BANNER_LOGIN_TABLE) {
if (file_exists(THEME."banner_template.php")) { if (file_exists(THEME."banner_template.php")) {
@ -125,4 +123,3 @@ $ns->tablerender(BANNERLAN_19, $text);
require_once(FOOTERF); require_once(FOOTERF);
?>

View File

@ -1,19 +1,24 @@
<?php <?php
/* /*
+ ----------------------------------------------------------------------------+ * e107 website system
| e107 website system - Language File. *
| * Copyright (C) 2001-2008 e107 Inc (e107.org)
| $Source: /cvs_backup/e107_0.8/e107_languages/English/lan_banner.php,v $ * Released under the terms and conditions of the
| $Revision: 1.1.1.1 $ * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
| $Date: 2006-12-02 04:34:38 $ *
| $Author: mcfly_e107 $ *
+----------------------------------------------------------------------------+ *
*/ * $Source: /cvs_backup/e107_0.8/e107_languages/English/lan_banner.php,v $
* $Revision: 1.2 $
* $Date: 2009-07-18 17:03:39 $
* $Author: marj_nl_fr $
*/
define("PAGE_NAME", "Banner"); define("PAGE_NAME", "Banner");
define("BANNERLAN_16", "Username: "); define("BANNERLAN_16", "Username: ");
define("BANNERLAN_17", "Password: "); define("BANNERLAN_17", "Password: ");
define("BANNERLAN_18", "Continue"); //define("BANNERLAN_18", "Continue"); // English LAN_CONTINUE
define("BANNERLAN_19", "Please enter your client login and password to continue"); define("BANNERLAN_19", "Please enter your client login and password to continue");
define("BANNERLAN_20", "Sorry, unable to find those details in the database. Please contact the site administrator for details."); define("BANNERLAN_20", "Sorry, unable to find those details in the database. Please contact the site administrator for details.");
define("BANNERLAN_21", "Banners Statistics"); define("BANNERLAN_21", "Banners Statistics");
@ -27,12 +32,10 @@ define("BANNERLAN_28", "Impressions Left");
define("BANNERLAN_29", "No banners"); define("BANNERLAN_29", "No banners");
define("BANNERLAN_30", "Unlimited"); define("BANNERLAN_30", "Unlimited");
define("BANNERLAN_31", "Not applicable"); define("BANNERLAN_31", "Not applicable");
define("BANNERLAN_32", "Yes"); //define("BANNERLAN_32", "Yes"); // English LAN_YES
define("BANNERLAN_33", "No"); //define("BANNERLAN_33", "No"); // English LAN_NO
define("BANNERLAN_34", "Ends:"); define("BANNERLAN_34", "Ends:");
define("BANNERLAN_35", "Clickthrough IP addresses"); define("BANNERLAN_35", "Clickthrough IP addresses");
define("BANNERLAN_36", "Active:"); define("BANNERLAN_36", "Active:");
define("BANNERLAN_37", "Starts:"); define("BANNERLAN_37", "Starts:");
define("BANNERLAN_38", "Error"); //define("BANNERLAN_38", "Error"); // English LAN_ERROR
?>