Thread: [phpMP-CVS] CVS: phpMP/modules menu_side.php,1.4,1.5 user_side.php,1.10,1.11 usercp.php,1.8,1.9
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2002-08-10 21:39:53
|
Update of /cvsroot/phpmp/phpMP/modules In directory usw-pr-cvs1:/tmp/cvs-serv12160/modules Modified Files: menu_side.php user_side.php usercp.php Log Message: Added more support for languages. Everything in the core (not all modules) is now covered by the language packs (I hope). Index: menu_side.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/modules/menu_side.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** menu_side.php 11 Apr 2002 05:40:15 -0000 1.4 --- menu_side.php 10 Aug 2002 21:39:51 -0000 1.5 *************** *** 4,14 **** function makeLink($name, $unixname) { ! global $MPCONF; ! $link_html = $MPCONF['TPL']['bullet_html'] . ' <a href="' . $MPCONF['GEN']['uri'] . '/modules.php?module=' . $unixname . '">' . $name . '</a><br>' . "\n"; return $link_html; } ! $content .= $MPCONF['TPL']['bullet_html'] . ' <a href="' . $MPCONF['GEN']['uri'] . '/index.php">Home</a><br>' . "\n"; $result = $DBA->query("SELECT name,unixname FROM " . $MPCONF['DB']['table_prefix'] . "modules WHERE active='1' ORDER BY name"); --- 4,18 ---- function makeLink($name, $unixname) { ! global $MPCONF, $Language; ! $lng_name = 'l_' . strtolower($name); ! $use_name = $Language->lang["$lng_name"]; ! ! $link_html = ' <a href="' . $MPCONF['GEN']['uri'] . '/modules.php?module=' . $unixname . '">' . $use_name . '</a><br>' . "\n"; return $link_html; } ! global $MPCONF, $Language; ! $content .= ' <a href="' . $MPCONF['GEN']['uri'] . '/index.php">' . $Language->lang['l_home'] . '</a><br>' . "\n"; $result = $DBA->query("SELECT name,unixname FROM " . $MPCONF['DB']['table_prefix'] . "modules WHERE active='1' ORDER BY name"); Index: user_side.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/modules/user_side.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** user_side.php 10 Aug 2002 20:41:33 -0000 1.10 --- user_side.php 10 Aug 2002 21:39:51 -0000 1.11 *************** *** 2,29 **** $identFile = "user_side.php"; ! global $REQUEST_URI, $content; if($MPCONF['USR']['username'] != "Anonymous") { ! $blockname = "Welcome\n"; ! $content .= "<font size='1'>Welcome, " . $MPCONF['USR']['username'] . "!</font><br />\n"; $content .= "<br />\n"; ! $content .= "<font size='1'><a href='" . $MPCONF['GEN']['uri'] . "/members/profile.php?action=edit'>Edit User Profile</a></font><br />\n"; if($MPCONF['USR']['isadmin'] == 1) { ! $content .= "<font size='1'><a href='" . $MPCONF['GEN']['uri'] . "/admin/index.php'>Administration Area</a></font>\n"; } ! $content .= "<font size='1'><a href='" . $MPCONF['GEN']['uri'] . "/index.php?logout=true'>Logout</a></font>\n"; } else { ! $blockname = "Login"; $content .= "<form action='" . $REQUEST_URI . "' method='post'>\n"; $content .= "<table>\n"; $content .= " <tr>\n"; ! $content .= " <td><font size='1'>You are not logged in.</font></td>\n"; $content .= " </tr>\n"; $content .= " <tr>\n"; ! $content .= " <td><font size='2'>Username:</font></td>\n"; $content .= " </tr>\n"; $content .= " <tr>\n"; --- 2,29 ---- $identFile = "user_side.php"; ! global $REQUEST_URI, $Language, $content; if($MPCONF['USR']['username'] != "Anonymous") { ! $blockname = $Language->lang['l_welcome']; ! $content .= "<font size='1'>" . $Language->lang['l_welcome'] . ", " . $MPCONF['USR']['username'] . "!</font><br />\n"; $content .= "<br />\n"; ! $content .= "<font size='1'><a href='" . $MPCONF['GEN']['uri'] . "/members/profile.php?action=edit'>" . $Language->lang['l_edit_profile'] . "</a></font><br />\n"; if($MPCONF['USR']['isadmin'] == 1) { ! $content .= "<font size='1'><a href='" . $MPCONF['GEN']['uri'] . "/admin/index.php'>" . $Language->lang['l_admin_area'] . "</a></font>\n"; } ! $content .= "<font size='1'><a href='" . $MPCONF['GEN']['uri'] . "/index.php?logout=true'>" . $Language->lang['l_logout'] . "</a></font>\n"; } else { ! $blockname = $Language->lang['l_login']; $content .= "<form action='" . $REQUEST_URI . "' method='post'>\n"; $content .= "<table>\n"; $content .= " <tr>\n"; ! $content .= " <td><font size='1'>" . $Language->lang['l_not_logged_in'] . "</font></td>\n"; $content .= " </tr>\n"; $content .= " <tr>\n"; ! $content .= " <td><font size='2'>" . $Language->lang['l_username'] . ":</font></td>\n"; $content .= " </tr>\n"; $content .= " <tr>\n"; *************** *** 31,35 **** $content .= " </tr>\n"; $content .= " <tr>\n"; ! $content .= " <td><font size='2'>Password:</font></td>\n"; $content .= " </tr>\n"; $content .= " <tr>\n"; --- 31,35 ---- $content .= " </tr>\n"; $content .= " <tr>\n"; ! $content .= " <td><font size='2'>" . $Language->lang['l_password'] . ":</font></td>\n"; $content .= " </tr>\n"; $content .= " <tr>\n"; *************** *** 37,47 **** $content .= " </tr>\n"; $content .= " <tr>\n"; ! $content .= " <td align='right'><input type='submit' value='Login' /> </form></td>\n"; $content .= " </tr>\n"; $content .= " <tr>\n"; ! $content .= " <td><font size='1'><a href='" . $MPCONF['GEN']['uri'] . "/email_passwd.php'>Forgot Your Password?</a></font></td>\n"; $content .= " </tr>\n"; $content .= " <tr>\n"; ! $content .= " <td><font size='1'><a href='" . $MPCONF['GEN']['uri'] . "/profile.php?mode=register'>Register A Username</a></font></td>\n"; $content .= " </tr>\n"; $content .= "</table>\n"; --- 37,47 ---- $content .= " </tr>\n"; $content .= " <tr>\n"; ! $content .= " <td align='right'><input type='submit' value='" . $Language->lang['l_login'] . "' /> </form></td>\n"; $content .= " </tr>\n"; $content .= " <tr>\n"; ! $content .= " <td><font size='1'><a href='" . $MPCONF['GEN']['uri'] . "/email_passwd.php'>" . $Language->lang['l_forgot_password'] . "</a></font></td>\n"; $content .= " </tr>\n"; $content .= " <tr>\n"; ! $content .= " <td><font size='1'><a href='" . $MPCONF['GEN']['uri'] . "/profile.php?mode=register'>" . $Language->lang['l_register_name'] . "</a></font></td>\n"; $content .= " </tr>\n"; $content .= "</table>\n"; Index: usercp.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/modules/usercp.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** usercp.php 27 Jul 2002 05:35:59 -0000 1.8 --- usercp.php 10 Aug 2002 21:39:51 -0000 1.9 *************** *** 11,15 **** function MakeContent() { ! global $MPCONF; $this->module_content .= '<table width="100%" cellspacing="0" cellpadding="0">' . "\n"; --- 11,15 ---- function MakeContent() { ! global $MPCONF, $Language; $this->module_content .= '<table width="100%" cellspacing="0" cellpadding="0">' . "\n"; *************** *** 19,23 **** $this->module_content .= ' <tr>' . "\n"; $this->module_content .= ' <td width="100%" class="tabletitle" bordercolor=black>' . "\n"; ! $this->module_content .= " <font color=white><small>.:: {$MPCONF['TPL']['sitename']} :: User Control Panel ::.</small></font>" . "\n"; $this->module_content .= ' </td>' . "\n"; $this->module_content .= ' </tr>' . "\n"; --- 19,23 ---- $this->module_content .= ' <tr>' . "\n"; $this->module_content .= ' <td width="100%" class="tabletitle" bordercolor=black>' . "\n"; ! $this->module_content .= " <font color=white><small>.:: {$MPCONF['TPL']['sitename']} :: {$Language->lang['l_user_panel']} ::.</small></font>" . "\n"; $this->module_content .= ' </td>' . "\n"; $this->module_content .= ' </tr>' . "\n"; |