Changeset 1652
- Timestamp:
- Dec 13, 2006, 2:05:38 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/configuration.php
r1617 r1652 53 53 'history_guest', 54 54 'login_history', 55 'email_admin_on_new_user' 55 'email_admin_on_new_user', 56 'allow_user_registration', 56 57 ); 57 58 -
trunk/identification.php
r1615 r1652 58 58 { 59 59 $remember_me = false; 60 if ($conf['authorize_remembering'] 61 and isset($_POST['remember_me']) 60 if (isset($_POST['remember_me']) 62 61 and $_POST['remember_me'] == 1) 63 62 { … … 86 85 $template->assign_vars( 87 86 array( 88 89 87 'U_REGISTER' => PHPWG_ROOT_PATH.'register.php', 90 88 'U_LOST_PASSWORD' => PHPWG_ROOT_PATH.'password.php', … … 99 97 $template->assign_block_vars('remember_me',array()); 100 98 } 99 if ($conf['allow_user_registration']) 100 { 101 $template->assign_block_vars('register',array()); 102 } 103 101 104 //-------------------------------------------------------------- errors display 102 105 if ( sizeof( $errors ) != 0 ) -
trunk/include/functions_html.inc.php
r1649 r1652 615 615 616 616 /** 617 * exits the current script with 403 code 618 * @param string msg a message to display 619 * @param string alternate_url redirect to this url 620 */ 621 function page_forbidden($msg, $alternate_url=null) 622 { 623 set_status_header(403); 624 if ($alternate_url==null) 625 $alternate_url = make_index_url(); 626 redirect_html( $alternate_url, 627 '<div style="text-align:left; margin-left:5em;margin-bottom:5em;"> 628 <h1 style="text-align:left; font-size:36px;">Forbidden</h1><br/>' 629 .$msg.'</div>', 630 5 ); 631 } 632 633 /** 617 634 * exits the current script with 404 code when a page cannot be found 618 635 * @param string msg a message to display -
trunk/include/menubar.inc.php
r1650 r1652 207 207 if ($user['is_the_guest']) 208 208 { 209 $template->assign_block_vars('register', array());210 209 $template->assign_block_vars('login', array()); 211 210 … … 214 213 { 215 214 $template->assign_block_vars('quickconnect.remember_me', array()); 215 } 216 if ($conf['allow_user_registration']) 217 { 218 $template->assign_block_vars('register', array()); 219 $template->assign_block_vars('quickconnect.register', array()); 216 220 } 217 221 } -
trunk/install/config.sql
r1617 r1652 23 23 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('history_guest','true','keep a history of guest visits on your website'); 24 24 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('login_history','true','keep a history of user logins on your website'); 25 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('allow_user_registration','true','allow visitors to register?'); 25 26 -- Notification by mail 26 27 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('nbm_send_mail_as','','Send mail as param value for notification by mail'); -
trunk/language/en_UK.iso-8859-1/admin.lang.php
r1617 r1652 49 49 $lang['Add selected elements to caddie'] = 'Add selected elements to caddie'; 50 50 $lang['Add'] = 'Add'; 51 $lang['Allow user registration'] = 'Allow user registration'; 51 52 $lang['Apply to subcategories'] = 'Apply to subcategories'; 52 53 $lang['Are you sure?'] = 'Are you sure?'; … … 153 154 $lang['Rating'] = 'Rating'; 154 155 $lang['Recent period'] = 'Recent period'; 155 $lang['Registration date'] = 'Registration date';156 156 $lang['Reject All'] = 'Reject All'; 157 157 $lang['Reject'] = 'Reject'; -
trunk/language/fr_FR.iso-8859-1/admin.lang.php
r1617 r1652 49 49 $lang['Add selected elements to caddie'] = 'Ajouter les éléments sélectionnés au panier'; 50 50 $lang['Add'] = 'Ajouter'; 51 $lang['Allow user registration'] = 'Permettre l\'enregistrement des utilisateurs'; 51 52 $lang['Apply to subcategories'] = 'Appliquer au sous-catégories'; 52 53 $lang['Are you sure?'] = 'Etes-vous sur?'; … … 153 154 $lang['Rating'] = 'Notation'; 154 155 $lang['Recent period'] = 'Période récente'; 155 $lang['Registration date'] = 'Date d\'enregistrement';156 156 $lang['Reject All'] = 'Tout rejeter'; 157 157 $lang['Reject'] = 'Rejeter'; -
trunk/register.php
r1615 r1652 30 30 include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); 31 31 //----------------------------------------------------------- user registration 32 33 if (!$conf['allow_user_registration']) 34 { 35 page_forbidden('User registration closed'); 36 } 37 32 38 $errors = array(); 33 39 if (isset($_POST['submit'])) -
trunk/template/yoga/admin/configuration.tpl
r1617 r1652 57 57 <span class="property">{lang:Email admin when a new user registers}</span> 58 58 <input type="checkbox" name="email_admin_on_new_user" {general.EMAIL_ADMIN_ON_NEW_USER} /> 59 </label> 60 </li> 61 62 <li> 63 <label for="allow_user_registration"> 64 <span class="property">{lang:Allow user registration}</span> 65 <input type="checkbox" name="allow_user_registration" id="allow_user_registration" {general.ALLOW_USER_REGISTRATION} /> 59 66 </label> 60 67 </li> -
trunk/template/yoga/admin/picture_modify.tpl
r1119 r1652 24 24 25 25 <tr> 26 <td><strong>{lang: Registrationdate}</strong></td>26 <td><strong>{lang:Post date}</strong></td> 27 27 <td>{REGISTRATION_DATE}</td> 28 28 </tr> … … 104 104 </tr> 105 105 106 106 107 107 <tr> 108 108 <td><strong>{lang:Description}</strong></td> -
trunk/template/yoga/default-layout.css
r1537 r1652 182 182 padding: 0; 183 183 line-height: 1.8em; 184 clear: left; 184 185 } 185 186 -
trunk/template/yoga/identification.tpl
r1620 r1652 5 5 <ul class="categoryActions"> 6 6 <li><a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}"><img src="{themeconf:icon_dir}/lost_password.png" class="button" alt="{lang:Forgot your password?}"></a></li> 7 <!-- BEGIN register --> 7 8 <li><a href="{U_REGISTER}" title="{lang:Create a new account}"><img src="{themeconf:icon_dir}/register.png" class="button" alt="{lang:register}"/></a></li> 9 <!-- END register --> 8 10 <li><a href="{U_HOME}" title="{lang:Go through the gallery as a visitor}"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li> 9 11 </ul> … … 61 63 62 64 <p> 63 <a href="{U_REGISTER}"><img src="{themeconf:icon_dir}/register.png" class="button" alt=""> {lang:Register}</a> 64 <a href="{U_LOST_PASSWORD}"><img src="{themeconf:icon_dir}/lost_password.png" class="button" alt=""> {lang:Forgot your password?}</a> 65 <!-- BEGIN register --> 66 <a href="{U_REGISTER}" title="{lang:Create a new account}"><img src="{themeconf:icon_dir}/register.png" class="button" alt=""> {lang:Register}</a> 67 <!-- END register --> 68 <a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}"><img src="{themeconf:icon_dir}/lost_password.png" class="button" alt=""> {lang:Forgot your password?}</a> 65 69 </p> 66 70 -
trunk/template/yoga/menubar.tpl
r1651 r1652 80 80 <ul> 81 81 <!-- BEGIN register --> 82 <li><a href="{U_REGISTER}" rel="nofollow">{lang:Register}</a></li>82 <li><a href="{U_REGISTER}" title="{lang:Create a new account}" rel="nofollow">{lang:Register}</a></li> 83 83 <!-- END register --> 84 84 <!-- BEGIN login --> … … 122 122 <ul class="actions"> 123 123 <li><a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/lost_password.png" class="button" alt="{lang:Forgot your password?}"></a></li> 124 <!-- BEGIN register --> 124 125 <li><a href="{U_REGISTER}" title="{lang:Create a new account}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/register.png" class="button" alt="{lang:register}"/></a></li> 126 <!-- END register --> 125 127 </ul> 126 128
Note: See TracChangeset
for help on using the changeset viewer.