[ Index ] |
|
Code source de CMS made simple 1.0.5 |
1 <?php 2 3 echo "<p>Adding fields to pages table..."; 4 5 $dbdict = NewDataDictionary($db); 6 $sqlarray = $dbdict->AddColumnSQL(cms_db_prefix()."pages", "page_header X"); 7 $dbdict->ExecuteSQLArray($sqlarray); 8 9 echo "[done]</p>"; 10 11 echo "<p>Adding fields to templates table..."; 12 13 $dbdict = NewDataDictionary($db); 14 $sqlarray = $dbdict->AddColumnSQL(cms_db_prefix()."templates", "encoding C(25)"); 15 $dbdict->ExecuteSQLArray($sqlarray); 16 17 echo "[done]</p>"; 18 19 echo "<p>Clearing cache and template directories... "; 20 21 function clear_dir_7($dir){ 22 23 $path = dirname(dirname(__FILE__))."/tmp/".$dir."/"; 24 25 $handle=opendir($path); 26 while ($file = readdir($handle)) { 27 if ($file != "." && $file != ".." && is_file($path.$file)) { 28 #echo ($path.$file); 29 unlink($path.$file); 30 } 31 } 32 } 33 34 clear_dir_7("templates_c"); 35 clear_dir_7("cache"); 36 37 echo "[done]</p>"; 38 39 echo "<p>Updating schema version... "; 40 41 $query = "UPDATE ".cms_db_prefix()."version SET version = 8"; 42 $db->Execute($query); 43 44 echo "[done]</p>"; 45 46 # vim:ts=4 sw=4 noet 47 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Tue Apr 3 18:50:37 2007 | par Balluche grâce à PHPXref 0.7 |