[ Index ] |
|
Code source de Phorum 5.1.25 |
1 <?php 2 if(!defined("PHORUM_ADMIN")) return; 3 /* 4 ALTER TABLE {$PHORUM['user_table']} ADD `show_signature` TINYINT( 1 ) DEFAULT '0' NOT NULL , 5 ADD `email_notify` TINYINT( 1 ) DEFAULT '0' NOT NULL , 6 ADD `tz_offset` TINYINT( 2 ) DEFAULT NULL , 7 ADD `is_dst` TINYINT( 1 ) DEFAULT '0' NOT NULL , 8 ADD `user_language` VARCHAR( 100 ) NOT NULL , 9 ADD `user_template` VARCHAR( 100 ) NOT NULL ; 10 11 create additional table for custom-fields 12 13 */ 14 15 16 // converting custom-field settings 17 if(!isset($PHORUM['PROFILE_FIELDS']['num_fields'])) { 18 $new_profile_fields=array(); 19 foreach($PHORUM['PROFILE_FIELDS'] as $id => $name) { 20 $new_profile_fields[$id]=array('name'=>$name,'length'=>255,'html_disabled'=>0); 21 } 22 23 $new_profile_fields['num_fields']=count($new_profile_fields); 24 $PHORUM['PROFILE_FIELDS']=$new_profile_fields; 25 // saving them 26 phorum_db_update_settings(array('PROFILE_FIELDS'=>$new_profile_fields)); 27 } 28 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 12:22:27 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |