[ Index ] |
|
Code source de Phorum 5.1.25 |
1 <?php 2 if(!defined("PHORUM_ADMIN")) return; 3 4 // Check if all the tables from version 2005091400 were created, 5 // before dropping the old private messages table. 6 7 $old_table = "{$PHORUM['DBCONFIG']['table_prefix']}_private_messages"; 8 9 $cid=phorum_db_mysql_connect(); 10 11 $check_tables = array( 12 $PHORUM["pm_messages_table"] => 1, 13 $PHORUM["pm_folders_table"] => 1, 14 $PHORUM["pm_xref_table"] => 1, 15 ); 16 17 $res = mysql_query("show tables"); 18 if ($res) { 19 while (($row = mysql_fetch_array($res))) { 20 if (isset($check_tables[$row[0]])) { 21 unset($check_tables[$row[0]]); 22 } 23 } 24 } 25 26 if (count($check_tables)) { ?> 27 <br/> 28 <b>Warning: database upgrade 2005091400 does not seem to have 29 completed successfully. The old style private messages table 30 <?php print $old_table ?> will be kept for backup. <?php 31 } else { 32 $upgrade_queries[] = "DROP TABLE $old_table"; 33 } 34 35 ?>
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 |
![]() |