Changeset 567
- Timestamp:
- 04/25/05 12:17:55 (8 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 22 modified
-
ChangeLog (modified) (1 diff)
-
wifidog/admin/user_log.php (modified) (1 diff)
-
wifidog/admin/user_stats.php (modified) (1 diff)
-
wifidog/change_password.php (modified) (1 diff)
-
wifidog/classes/MainUI.php (modified) (8 diffs)
-
wifidog/classes/Network.php (modified) (1 diff)
-
wifidog/classes/User.php (modified) (1 diff)
-
wifidog/config.php (modified) (2 diffs)
-
wifidog/faq.php (modified) (1 diff)
-
wifidog/index.php (modified) (1 diff)
-
wifidog/login/index.php (modified) (6 diffs)
-
wifidog/lost_password.php (modified) (3 diffs)
-
wifidog/lost_username.php (modified) (3 diffs)
-
wifidog/resend_validation.php (modified) (3 diffs)
-
wifidog/signup.php (modified) (5 diffs)
-
wifidog/templates/change_password.html (modified) (1 diff)
-
wifidog/templates/lost_password.html (modified) (1 diff)
-
wifidog/templates/lost_username.html (modified) (1 diff)
-
wifidog/templates/resend_validation.html (modified) (1 diff)
-
wifidog/templates/signup.html (modified) (1 diff)
-
wifidog/templates/validate.html (modified) (1 diff)
-
wifidog/validate.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/ChangeLog
r566 r567 1 2005-04-25 François Proulx <francois.proulx@gmail.com 2 * Completed integration of new interface with new objects 3 1 4 2005-04-25 Benoit Grégoire <bock@step.polymtl.ca> 2 5 * Integration merge, should work, but there will be display problems everywhere. Expect further commits today. -
trunk/wifidog-auth/wifidog/admin/user_log.php
r566 r567 106 106 require_once BASEPATH.'classes/MainUI.php'; 107 107 $ui=new MainUI(); 108 $ui->setToolSection('ADMIN');108 $ui->setToolSection('ADMIN'); 109 109 $ui->setMainContent($smarty->fetch("admin/templates/user_log.html")); 110 110 $ui->display(); -
trunk/wifidog-auth/wifidog/admin/user_stats.php
r566 r567 38 38 $smarty->assign("most_frequent_users", Statistics::getMostFrequentUsers(10)); 39 39 $smarty->assign("most_greedy_users", Statistics::getMostGreedyUsers(10)); 40 require_once BASEPATH.'classes/MainUI.php'; 40 41 require_once BASEPATH.'classes/MainUI.php'; 41 42 $ui=new MainUI(); 42 $ui->setToolSection('ADMIN');43 $ui->setToolSection('ADMIN'); 43 44 $ui->setMainContent($smarty->fetch("admin/templates/user_stats.html")); 44 45 $ui->display(); -
trunk/wifidog-auth/wifidog/change_password.php
r530 r567 78 78 isset ($_REQUEST["auth_source"]) && $smarty->assign('selected_auth_source', $_REQUEST["auth_source"]); 79 79 80 $smarty->display("templates/change_password.html"); 80 $ui = new MainUI(); 81 $smarty->assign('SelectNetworkUI', Network::getSelectNetworkUI('auth_source')); 82 $ui->setMainContent($smarty->fetch("templates/change_password.html")); 83 $ui->display(); 84 //$smarty->display("templates/change_password.html"); 81 85 ?> -
trunk/wifidog-auth/wifidog/classes/MainUI.php
r566 r567 1 1 <?php 2 3 4 2 /********************************************************************\ 5 3 * This program is free software; you can redistribute it and/or * … … 31 29 { 32 30 private $main_content; /**<Content to be displayed in the main pane */ 33 private $tool_content; /**<Content to be displayed in the tool pane */31 private $tool_content; /**<Content to be displayed in the tool pane */ 34 32 private $smarty; 35 33 private $title; … … 53 51 public function setToolSection($section) 54 52 { 55 if ($section=='ADMIN')53 if ($section == 'ADMIN') 56 54 { 57 55 $current_user = User :: getCurrentUser(); 58 $html = '';59 $html .= "<ul>\n";60 $html .= "<li><a href='user_log.php'>"._("User logs")."</a></li>\n";61 $html .= "<li><a href='online_users.php'>"._("Online Users")."</a></li>\n";62 $html .= "<li><a href='user_stats.php'>"._("Cumulative user statistics")."</a></li>\n";63 $html .= "<li><a href='hotspot_log.php'>"._("Hotspot logs")."</a></li>\n";64 $html .= "<li><a href='import_user_database.php'>"._("Import NoCat user database")."</a></li>\n";65 $html .= "<li><a href='hotspot.php'>"._("Hotspot creation and configuration")."</a> - Beta</li>\n";66 $html .= "<li><a href='owner_sendfiles.php'>"._("Hotspot owner administration")."</a> - Beta</li>\n";67 68 /* Node admin */69 $html .= "<div class='admin_section_container'>\n";70 $html .= '<form action="'.GENERIC_OBJECT_ADMIN_ABS_HREF.'" method="get">';71 $html .= "<div class='admin_section_title'>"._("Node administration:")." </div>\n";72 73 $html .= "<div class='admin_section_data'>\n";74 $html .= "<input type='hidden' name='action' value='edit'>\n";75 $html .= "<input type='hidden' name='object_class' value='Node'>\n";76 77 if ($current_user->isSuperAdmin())78 {79 $sql_additional_where = '';80 }81 else82 {83 $sql_additional_where = "AND node_id IN (SELECT node_id from node_owners WHERE user_id='".$current_user->getId()."')";84 }85 $html .= Node :: getSelectNodeUI('object_id', $sql_additional_where);86 $html .= "</div>\n";87 $html .= "<div class='admin_section_tools'>\n";88 89 $html .= "<input type=submit name='edit_submit' value='"._("Edit")."'>\n";90 $html .= "</div>\n";91 $html .= '</form>';92 $html .= "</div>\n";93 94 /* Network admin */95 $html .= "<div class='admin_section_container'>\n";96 $html .= '<form action="'.GENERIC_OBJECT_ADMIN_ABS_HREF.'" method="post">';97 $html .= "<div class='admin_section_title'>"._("Network administration:")." </div>\n";98 99 $html .= "<div class='admin_section_data'>\n";100 $html .= "<input type='hidden' name='action' value='edit'>\n";101 $html .= "<input type='hidden' name='object_class' value='Network'>\n";102 $html .= Network :: getSelectNetworkUI('object_id');103 $html .= "</div>\n";104 $html .= "<div class='admin_section_tools'>\n";105 106 $html .= "<input type=submit name='edit_submit' value='"._("Edit")."'>\n";107 $html .= "</div>\n";108 $html .= '</form>';109 $html .= "</div>\n";110 111 $html .= "<li><a href='content_admin.php'>"._("Content manager")."</a></li>\n";112 $html .= "</ul>\n";56 $html = ''; 57 $html .= "<ul>\n"; 58 $html .= "<li><a href='user_log.php'>"._("User logs")."</a></li>\n"; 59 $html .= "<li><a href='online_users.php'>"._("Online Users")."</a></li>\n"; 60 $html .= "<li><a href='user_stats.php'>"._("Cumulative user statistics")."</a></li>\n"; 61 $html .= "<li><a href='hotspot_log.php'>"._("Hotspot logs")."</a></li>\n"; 62 $html .= "<li><a href='import_user_database.php'>"._("Import NoCat user database")."</a></li>\n"; 63 $html .= "<li><a href='hotspot.php'>"._("Hotspot creation and configuration")."</a> - Beta</li>\n"; 64 $html .= "<li><a href='owner_sendfiles.php'>"._("Hotspot owner administration")."</a> - Beta</li>\n"; 65 66 /* Node admin */ 67 $html .= "<div class='admin_section_container'>\n"; 68 $html .= '<form action="'.GENERIC_OBJECT_ADMIN_ABS_HREF.'" method="get">'; 69 $html .= "<div class='admin_section_title'>"._("Node administration:")." </div>\n"; 70 71 $html .= "<div class='admin_section_data'>\n"; 72 $html .= "<input type='hidden' name='action' value='edit'>\n"; 73 $html .= "<input type='hidden' name='object_class' value='Node'>\n"; 74 75 if ($current_user->isSuperAdmin()) 76 { 77 $sql_additional_where = ''; 78 } 79 else 80 { 81 $sql_additional_where = "AND node_id IN (SELECT node_id from node_owners WHERE user_id='".$current_user->getId()."')"; 82 } 83 $html .= Node :: getSelectNodeUI('object_id', $sql_additional_where); 84 $html .= "</div>\n"; 85 $html .= "<div class='admin_section_tools'>\n"; 86 87 $html .= "<input type=submit name='edit_submit' value='"._("Edit")."'>\n"; 88 $html .= "</div>\n"; 89 $html .= '</form>'; 90 $html .= "</div>\n"; 91 92 /* Network admin */ 93 $html .= "<div class='admin_section_container'>\n"; 94 $html .= '<form action="'.GENERIC_OBJECT_ADMIN_ABS_HREF.'" method="post">'; 95 $html .= "<div class='admin_section_title'>"._("Network administration:")." </div>\n"; 96 97 $html .= "<div class='admin_section_data'>\n"; 98 $html .= "<input type='hidden' name='action' value='edit'>\n"; 99 $html .= "<input type='hidden' name='object_class' value='Network'>\n"; 100 $html .= Network :: getSelectNetworkUI('object_id'); 101 $html .= "</div>\n"; 102 $html .= "<div class='admin_section_tools'>\n"; 103 104 $html .= "<input type=submit name='edit_submit' value='"._("Edit")."'>\n"; 105 $html .= "</div>\n"; 106 $html .= '</form>'; 107 $html .= "</div>\n"; 108 109 $html .= "<li><a href='content_admin.php'>"._("Content manager")."</a></li>\n"; 110 $html .= "</ul>\n"; 113 111 114 112 } 115 113 else 116 114 { 117 $html .= "<p class='errormsg'>"._("Unknown section:")." $section</p>\n";118 119 } 120 $this->tool_content = $html;115 $html .= "<p class='errormsg'>"._("Unknown section:")." $section</p>\n"; 116 117 } 118 $this->tool_content = $html; 121 119 } 122 120 … … 126 124 $this->tool_content = $html; 127 125 } 128 126 129 127 /** Get the content to be displayed in the tool pane 130 128 * @param section, one of: START, LOGIN, … … 143 141 $html .= '<p>'._("Logged in as:").' '.$user->getUsername().'</p>'."\n"; 144 142 $html .= '<a class="administration" HREF="?content=myprofile"><img class="administration" src="/images/profile.gif" border="0"> My profile</a>'."\n"; 145 $html .= '<a class="administration" HREF=" #"><img class="administration" src="/images/logout.gif" border="0"> Logout</a>'."\n";143 $html .= '<a class="administration" HREF="/login/?logout=true"><img class="administration" src="/images/logout.gif" border="0"> Logout</a>'."\n"; 146 144 147 145 } … … 149 147 { 150 148 $html .= '<p>'._("NOT logged in.").' <a href="'.BASE_SSL_PATH.'login/">'. ("Login?").'</a></p>'."\n"; 151 $html .= '<a class="administration" HREF="'.Network :: getCurrentNetwork()->getHomepageURL().'"><img class="administration" src="/images/lien_ext.gif"> '.Network :: getCurrentNetwork()->getName().'</a>'."\n";152 $html .= '<a class="administration" HREF="'.BASE_NON_SSL_PATH.'/faq.php"><img class="administration" src="'.BASE_NON_SSL_PATH.'/images/where.gif"> '._("Where am I?").'</a>'."\n";149 $html .= '<a class="administration" HREF="'.Network :: getCurrentNetwork()->getHomepageURL().'"><img class="administration" src="/images/lien_ext.gif"> '.Network :: getCurrentNetwork()->getName().'</a>'."\n"; 150 $html .= '<a class="administration" HREF="'.BASE_NON_SSL_PATH.'/faq.php"><img class="administration" src="'.BASE_NON_SSL_PATH.'/images/where.gif"> '._("Where am I?").'</a>'."\n"; 153 151 } 154 152 … … 166 164 $html .= '<a href="hotspots.php" class="navigation">'._("Hotspots").'</a>'."\n"; 167 165 */ 166 $html .= '<span class="navigation">'; 167 $html .= Network :: getCurrentNetwork()->getName().". Building your wireless community"; 168 $html .= '</span>'; 168 169 $html .= "</div>"."\n"; //End navigation 169 170 … … 191 192 192 193 $html .= "<div class='tool_content'>"."\n"; 193 194 194 /******************************/ 195 $html .= $this->tool_content; 196 195 $html .= $this->tool_content; 197 196 /******************************/ 198 199 197 $html .= "</div>"."\n"; //End tool_content 200 198 $html .= '<div class="avis">'."\n"; -
trunk/wifidog-auth/wifidog/classes/Network.php
r566 r567 122 122 if (!$found) 123 123 { 124 throw new Exception(_("The s ecified network doesn't exist: ").$p_network_id);124 throw new Exception(_("The specified network doesn't exist: ").$p_network_id); 125 125 } 126 126 $this->id = $p_network_id; -
trunk/wifidog-auth/wifidog/classes/User.php
r566 r567 327 327 if ($user_info['validation_grace_time_expired'] == 't') 328 328 { 329 $errmsg = _("Sorry, your "). $validation_grace_time._(" minutes grace period to retrieve your email and validate your account has now expired. You will have to connect to the internet and validate your account from another location or create a new account. For help, please ").'<a href="'.BASEPATH.'faq.php'.'">'._("click here.").'</a>';329 $errmsg = _("Sorry, your ").VALIDATION_GRACE_TIME._(" minutes grace period to retrieve your email and validate your account has now expired. You will have to connect to the internet and validate your account from another location or create a new account. For help, please ").'<a href="'.BASEPATH.'faq.php'.'">'._("click here.").'</a>'; 330 330 $retval = false; 331 331 } -
trunk/wifidog-auth/wifidog/config.php
r566 r567 7 7 * 8 8 * $Log$ 9 * Revision 1.38 2005/04/25 16:17:54 fproulx 10 * 2005-04-25 Fran�ois Proulx <francois.proulx@gmail.com 11 * * Completed integration of new interface with new objects 12 * 9 13 * Revision 1.37 2005/04/25 13:16:06 benoitg 10 14 * 2005-04-25 Benoit Gr�goire <bock@step.polymtl.ca> … … 185 189 define('SYSTEM_PATH', '/'); 186 190 /**< Set this to true if your server has SSL available, otherwise, passwords will be transmitted in clear text over the air */ 187 define('SSL_AVAILABLE', true);191 define('SSL_AVAILABLE', false); 188 192 /** @deprecated version - 2005-04-19 */ 189 193 define('HOTSPOT_NETWORK_NAME', 'Île sans fil'); -
trunk/wifidog-auth/wifidog/faq.php
r416 r567 27 27 require_once BASEPATH.'include/common.php'; 28 28 require_once BASEPATH.'include/common_interface.php'; 29 $smarty->display("templates/faq.html"); 29 require_once BASEPATH.'classes/MainUI.php'; 30 31 //$smarty->display("templates/faq.html"); 32 $ui = new MainUI(); 33 $ui->setMainContent($smarty->fetch("templates/faq.html")); 34 $ui->display(); 30 35 ?> -
trunk/wifidog-auth/wifidog/index.php
r566 r567 33 33 $smarty->assign("num_online_users", $stats->getNumOnlineUsers($node_id = null)); 34 34 35 $html = '<ul>'."\n"; 36 $html .= '<li><a href="'.BASE_SSL_PATH.'lost_username.php">'._("I Forgot my username").'</a><br>'."\n"; 37 $html .= '<li><a href="'.BASE_SSL_PATH.'lost_password.php">'._("I Forgot my password").'</a>'."\n"; 38 $html .= '<li><a href="'.BASE_SSL_PATH.'resend_validation.php">'._("Re-send the validation email").'</a><br>'."\n"; 39 $html .= '<li><a href="'.BASE_SSL_PATH.'resend_validation.php">'._("Change password").'</a><br>'."\n"; 40 $html .= '<li><a href="'.BASE_SSL_PATH.'faq.php">'._("I have trouble connecting and I would like some help").'</a><br>'."\n"; 41 $html .= '</ul>'."\n"; 42 43 $ui=new MainUI(); 44 $ui->setToolContent($html); 35 45 $smarty->assign("title", _("authentication server")); 36 $ui=new MainUI();37 46 $ui->setMainContent($smarty->fetch("templates/main.html")); 38 47 $ui->display(); 48 39 49 ?> -
trunk/wifidog-auth/wifidog/login/index.php
r566 r567 1 1 <?php 2 3 4 2 // $Id$ 5 3 /********************************************************************\ … … 34 32 require_once BASEPATH.'classes/Network.php'; 35 33 34 if (!empty ($_REQUEST['logout']) && $_REQUEST['logout'] == true) 35 { 36 $session->destroy(); 37 } 38 36 39 if (!empty ($_REQUEST['url'])) 37 40 { … … 45 48 46 49 // Authenticating the user through the selected auth source. 47 $network = Network::processSelectNetworkUI('auth_source');48 49 $user = $network->getAuthenticator()->login($_REQUEST['username'], $_REQUEST['password'], $errmsg);50 $network = Network :: processSelectNetworkUI('auth_source'); 51 52 $user = $network->getAuthenticator()->login($_REQUEST['username'], $_REQUEST['password'], $errmsg); 50 53 if ($user != null) 51 54 { … … 76 79 isset ($_REQUEST["auth_source"]) && $smarty->assign('selected_auth_source', $_REQUEST["auth_source"]); 77 80 78 $node =null;81 $node = null; 79 82 if (!empty ($_REQUEST['gw_id'])) 80 83 { 81 $gw_id =$_REQUEST['gw_id'];84 $gw_id = $_REQUEST['gw_id']; 82 85 83 86 try … … 111 114 if (empty ($_REQUEST['gw_id'])) 112 115 { 113 $html .= '<h 3>'._("This is the 'virtual login' page you can use to get the credentials which will then give you access to management functions on the network without being at a hotspot.").'</h3>'."\n";116 $html .= '<h1>'._("Virtual login").'</h1'."\n"; 114 117 } 115 118 else 116 119 { 117 $html .= '<h 3>'._("Welcome! Hotspot:")." $hotspot_name</h3>\n";120 $html .= '<h1>'._("Welcome! Hotspot:")." $hotspot_name</h1>\n"; 118 121 } 119 122 120 $html .= '<h3>'._("Please log-in or").'<br><a href="'.BASE_SSL_PATH.'signup.php">'._("Sign-up, it's free!").'</a></h3>'."\n"; 123 $html .= '<h1>'._("Sign up : ").'</h1>'; 124 $html .= '<p class="indent">'."\n"; 125 $html .= '<a href="'.BASE_SSL_PATH.'signup.php">'._("Get an account here.").'</a><br><a href="'.BASE_SSL_PATH.'faq.php">'._("Why is this service free ?").'</a>'."\n"; 126 $html .= '</p>'; 121 127 122 128 $html .= '<form name="login_form" method="post">'."\n"; 123 if ($node!=null)129 if ($node != null) 124 130 { 125 131 $html .= '<input type="hidden" name="gw_address" value="'.$gw_address.'">'."\n"; 126 $html .= '<input type="hidden" name="gw_port" value="'.$gw_port.'">'."\n";127 $html .= '<input type="hidden" name="gw_id" value="'.$gw_id.'">'."\n";132 $html .= '<input type="hidden" name="gw_port" value="'.$gw_port.'">'."\n"; 133 $html .= '<input type="hidden" name="gw_id" value="'.$gw_id.'">'."\n"; 128 134 } 129 $html .= '<table>'."\n"; 130 $html .= Network::getSelectNetworkUI('auth_source'); 131 $html .= '<tr>'."\n"; 132 $html .= '<td>'._("Username (or email)").':</td>'."\n"; 133 $html .= '<td><input type="text" name="username" value="'.$username.'" size="20"></td>'."\n"; 134 $html .= '</tr>'."\n"; 135 $html .= '<tr>'."\n"; 136 $html .= '<td>'._("Password").':</td>'."\n"; 137 $html .= '<td><input type="password" name="password" size="20"></td>'."\n"; 138 $html .= '</tr>'."\n"; 139 $html .= '<tr>'."\n"; 140 $html .= '<td></td>'."\n"; 141 $html .= '<td><input class="submit" type="submit" name="submit" value="'._("Login").'"></td>'."\n"; 142 $html .= '</tr>'."\n"; 143 $html .= '</table>'."\n"; 135 $html .= '<h1>'._("Log in : ").'</h1>'; 136 $html .= '<p class="indent">'."\n"; 137 $html .= Network::getSelectNetworkUI('auth_source')."<br>\n"; 138 $html .= _("Username (or email)").'<br>'."\n"; 139 $html .= '<input type="text" name="username" value="'.$username.'" size="20"><br>'."\n"; 140 $html .= _("Password").':<br>'."\n"; 141 $html .= '<input type="password" name="password" size="20"><br>'."\n"; 142 $html .= '<input class="submit" type="submit" name="submit" value="'._("Login").'"><br>'."\n"; 143 ; 144 144 $html .= '</form>'."\n"; 145 $html .= '</p>'; 145 146 146 $html .= '<h 3>'._("I already have an account, but").':</h3>'."\n";147 $html .= '<h1>'._("I already have an account, but").':</h1>'."\n"; 147 148 $html .= '<ul>'."\n"; 148 149 $html .= '<li><a href="'.BASE_SSL_PATH.'lost_username.php">'._("I Forgot my username").'</a><br>'."\n"; … … 170 171 require_once BASEPATH.'classes/MainUI.php'; 171 172 $ui = new MainUI(); 172 $ui->set MainContent($html);173 $ui->setToolContent($html); 173 174 $ui->display(); 174 175 ?> 175 176 177 -
trunk/wifidog-auth/wifidog/lost_password.php
r530 r567 28 28 require_once BASEPATH.'include/common_interface.php'; 29 29 require_once BASEPATH.'classes/User.php'; 30 require_once BASEPATH.'classes/MainUI.php'; 30 31 31 32 if (isset($_REQUEST['submit'])) { … … 54 55 55 56 $smarty->assign('message', _('A new password has been emailed to you.')); 56 $smarty->display('templates/validate.html'); 57 //$smarty->display('templates/validate.html'); 58 $ui = new MainUI(); 59 $ui->setMainContent($smarty->fetch("templates/validate.html")); 60 $ui->display(); 57 61 exit; 58 62 } catch (Exception $e) { … … 73 77 isset ($_REQUEST["auth_source"]) && $smarty->assign('selected_auth_source', $_REQUEST["auth_source"]); 74 78 75 $smarty->display("templates/lost_password.html"); 79 //$smarty->display("templates/lost_password.html"); 80 $ui = new MainUI(); 81 $smarty->assign('SelectNetworkUI', Network::getSelectNetworkUI('auth_source')); 82 $ui->setMainContent($smarty->fetch("templates/lost_password.html")); 83 $ui->display(); 76 84 ?> -
trunk/wifidog-auth/wifidog/lost_username.php
r530 r567 28 28 require_once BASEPATH.'include/common_interface.php'; 29 29 require_once BASEPATH.'classes/User.php'; 30 require_once BASEPATH.'classes/MainUI.php'; 30 31 31 32 if (isset($_REQUEST["submit"])) { … … 47 48 48 49 $smarty->assign("message", _("Your username has been emailed to you.")); 49 $smarty->display("templates/validate.html"); 50 //$smarty->display("templates/validate.html"); 51 $ui = new MainUI(); 52 $ui->setMainContent($smarty->fetch("templates/validate.html")); 53 $ui->display(); 50 54 exit; 51 55 } catch (Exception $e) { … … 65 69 isset ($_REQUEST["auth_source"]) && $smarty->assign('selected_auth_source', $_REQUEST["auth_source"]); 66 70 67 $smarty->display("templates/lost_username.html"); 71 //$smarty->display("templates/lost_username.html"); 72 $ui = new MainUI(); 73 $smarty->assign('SelectNetworkUI', Network::getSelectNetworkUI('auth_source')); 74 $ui->setMainContent($smarty->fetch("templates/lost_username.html")); 75 $ui->display(); 68 76 ?> -
trunk/wifidog-auth/wifidog/resend_validation.php
r530 r567 28 28 require_once BASEPATH.'include/common_interface.php'; 29 29 require_once BASEPATH.'classes/User.php'; 30 require_once BASEPATH.'classes/MainUI.php'; 30 31 31 32 if (isset($_REQUEST["submit"])) { … … 47 48 48 49 $smarty->assign('message', _("An email with confirmation instructions was sent to your email address.")); 49 $smarty->display("templates/validate.html"); 50 //$smarty->display("templates/validate.html"); 51 $ui = new MainUI(); 52 $ui->setMainContent($smarty->fetch("templates/validate.html")); 53 $ui->display(); 50 54 exit; 51 55 } catch (Exception $e) { … … 66 70 isset ($_REQUEST["auth_source"]) && $smarty->assign('selected_auth_source', $_REQUEST["auth_source"]); 67 71 68 $smarty->display("templates/resend_validation.html"); 72 //$smarty->display("templates/resend_validation.html"); 73 $ui = new MainUI(); 74 $smarty->assign('SelectNetworkUI', Network::getSelectNetworkUI('auth_source')); 75 $ui->setMainContent($smarty->fetch("templates/resend_validation.html")); 76 $ui->display(); 69 77 ?> -
trunk/wifidog-auth/wifidog/signup.php
r530 r567 1 1 <?php 2 3 2 // $Id$ 4 3 /********************************************************************\ … … 29 28 require_once BASEPATH.'include/common_interface.php'; 30 29 require_once BASEPATH.'classes/User.php'; 30 require_once BASEPATH.'classes/MainUI.php'; 31 31 32 32 if (defined("CUSTOM_SIGNUP_URL")) … … 85 85 try 86 86 { 87 if (empty($account_origin))87 if (empty ($account_origin)) 88 88 throw new Exception(_("Sorry, this network does not exist !")); 89 89 90 90 validate_username($username); 91 91 validate_email($email); … … 101 101 $user->sendValidationEmail(); 102 102 $smarty->assign('message', _('An email with confirmation instructions was sent to your email address. Your account has been granted 15 minutes of access to retrieve your email and validate your account. You may now open a browser window and go to any remote Internet address to obtain the login page.')); 103 $smarty->display("templates/validate.html"); 103 //$smarty->display("templates/validate.html"); 104 105 $ui = new MainUI(); 106 $ui->setMainContent($smarty->fetch("templates/validate.html")); 107 $ui->display(); 104 108 exit; 105 109 } … … 121 125 isset ($_REQUEST["auth_source"]) && $smarty->assign('selected_auth_source', $_REQUEST["auth_source"]); 122 126 123 $smarty->display("templates/signup.html"); 127 //$smarty->display("templates/signup.html"); 128 $ui = new MainUI(); 129 $smarty->assign('SelectNetworkUI', Network::getSelectNetworkUI('auth_source')); 130 $ui->setMainContent($smarty->fetch("templates/signup.html")); 131 $ui->display(); 124 132 ?> 125 -
trunk/wifidog-auth/wifidog/templates/change_password.html
r566 r567 4 4 <form name="form" method="post"> 5 5 <table> 6 {include file="templates/auth_sources_selection.html"} 6 {if $SelectNetworkUI} 7 {$SelectNetworkUI} 8 {/if} 7 9 <tr> 8 10 <td>{"Your username"|_}:</td> -
trunk/wifidog-auth/wifidog/templates/lost_password.html
r566 r567 4 4 <form name="form" method="post"> 5 5 <table> 6 {include file="templates/auth_sources_selection.html"} 6 {if $SelectNetworkUI} 7 {$SelectNetworkUI} 8 {/if} 7 9 <tr> 8 10 <td>{"Your username"|_}:</td> -
trunk/wifidog-auth/wifidog/templates/lost_username.html
r566 r567 5 5 <form name="form" method="post"> 6 6 <table> 7 {include file="templates/auth_sources_selection.html"} 7 {if $SelectNetworkUI} 8 {$SelectNetworkUI} 9 {/if} 8 10 <tr> 9 11 <td>{"Your email address"|_}:</td> -
trunk/wifidog-auth/wifidog/templates/resend_validation.html
r566 r567 4 4 <form name="form"> 5 5 <table> 6 {include file="templates/auth_sources_selection.html"} 6 {if $SelectNetworkUI} 7 {$SelectNetworkUI} 8 {/if} 7 9 <tr> 8 10 <td>{"Your username"|_}:</td> -
trunk/wifidog-auth/wifidog/templates/signup.html
r566 r567 4 4 <form name="signup_form" method="post"> 5 5 <table> 6 {include file="templates/auth_sources_selection.html"} 6 {if $SelectNetworkUI} 7 {$SelectNetworkUI} 8 {/if} 7 9 <tr> 8 10 <td>{"Username desired"|_}:</td> -
trunk/wifidog-auth/wifidog/templates/validate.html
r402 r567 1 {include file="templates/header_small.html"}2 1 <div id="sent_validation"> 3 2 <p>{$message|nl2br}</p> 4 3 </div> 5 {include file="templates/footer.html"} -
trunk/wifidog-auth/wifidog/validate.php
r566 r567 26 26 require_once (BASEPATH.'/include/common_interface.php'); 27 27 require_once (BASEPATH.'/classes/User.php'); 28 require_once BASEPATH.'classes/MainUI.php'; 28 29 29 30 try { … … 48 49 } 49 50 50 $smarty->display("templates/validate.html"); 51 $ui = new MainUI(); 52 $ui->setMainContent($smarty->fetch("templates/validate.html")); 53 $ui->display(); 54 //$smarty->display("templates/validate.html"); 51 55 ?>
