[ Index ] |
PHP Cross Reference of Textpattern 4.0.8 |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 $HeadURL: https://textpattern.googlecode.com/svn/releases/4.0.8/source/textpattern/update/_to_4.0.4.php $ 5 $LastChangedRevision: 3047 $ 6 */ 7 8 if (!defined('TXP_UPDATE')) 9 { 10 exit("Nothing here. You can't access this file directly."); 11 } 12 13 if (!safe_field('name', 'txp_prefs', "name = 'allow_raw_php_scripting'")) 14 { 15 safe_insert('txp_prefs', "prefs_id = 1, name = 'allow_raw_php_scripting', val = '1', type = '1', html='yesnoradio'"); 16 } else { 17 safe_update( 'txp_prefs', "html='yesnoradio'", "name='allow_raw_php_scripting'"); 18 } 19 20 if (!safe_field('name', 'txp_prefs', "name = 'log_list_pageby'")) 21 { 22 safe_insert('txp_prefs', "prefs_id = 1, name = 'log_list_pageby', val = '25', type = 2, event = 'publish'"); 23 } 24 25 // turn on lastmod handling, and reset the lastmod date 26 safe_update('txp_prefs', "val='1'", "name='send_lastmod' and prefs_id='1'"); 27 update_lastmod(); 28 29 // speed up article queries 30 $has_ss_idx = 0; 31 $rs = getRows('show index from `'.PFX.'textpattern`'); 32 foreach ($rs as $row) 33 if ($row['Key_name'] == 'section_status_idx') 34 $has_ss_idx = 1; 35 if (!$has_ss_idx) 36 safe_query('alter ignore table `'.PFX.'textpattern` add index section_status_idx (Section,Status)'); 37 38 39 if (!safe_field('name', 'txp_prefs', "name = 'title_no_widow'")) 40 safe_insert('txp_prefs', "prefs_id = 1, name = 'title_no_widow', val = '1', type = '1', html='yesnoradio'"); 41 42 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu May 21 23:03:01 2009 | Cross-referenced by PHPXref 0.7 |