Файл: textpattern-4.5.7/textpattern/update/_to_4.0.2.php
Строк: 159
<?php
/*
$HeadURL: https://textpattern.googlecode.com/svn/releases/4.5.7/source/textpattern/update/_to_4.0.2.php $
$LastChangedRevision: 5875 $
*/
if (!defined('TXP_UPDATE'))
exit("Nothing here. You can't access this file directly.");
if (!safe_field('name', 'txp_page', "name='error_default'")){
$error_default = "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">n<head>nt<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />nnt<title><txp:site_name />: <txp:error_status /></title>nnt<link rel="home" href="<txp:site_url />" />nnt<txp:feed_link flavor="atom" format="link" label="Atom" />nt<txp:feed_link flavor="rss" format="link" label="RSS" />nnt<txp:css name="default" format="link" />n</head>n<body id="error-page">nn<!-- accessibility -->n<div id="accessibility">nt<ul>ntt<li><a href="#content"><txp:text item="go_content" /></a></li>ntt<li><a href="#sidebar-1"><txp:text item="go_nav" /></a></li>ntt<li><a href="#sidebar-2"><txp:text item="go_search" /></a></li>nt</ul>n</div>nn<div id="container">nn<!-- head -->nt<div id="head">ntt<p id="site-name"><txp:link_to_home><txp:site_name /></txp:link_to_home></p>ntt<p id="site-slogan"><txp:site_slogan /></p>nt</div>nn<!-- left -->nt<div id="sidebar-1">ntt<txp:section_list default_title='<txp:text item="home" />' include_default="1" wraptag="ul" break="li">nttt<txp:if_section name='<txp:section />'>»</txp:if_section>nttt<txp:section link="1" title="1" />nttt<txp:if_section name='<txp:section />'>ntttt<txp:article_custom section='<txp:section />' wraptag="ul" break="li">nttttt<txp:if_article_id>›</txp:if_article_id>nttttt<txp:permlink><txp:title /></txp:permlink>ntttt</txp:article_custom>nttt</txp:if_section>ntt</txp:section_list>nntt<txp:search_input wraptag="p" />nntt<p><txp:feed_link label="RSS" /> / <txp:feed_link flavor="atom" label="Atom" /></p>nt</div>nn<!-- right -->nt<div id="sidebar-2">ntt<txp:linklist wraptag="p" />nntt<p><a href="http://textpattern.com/"><img src="<txp:site_url />textpattern/txp_img/txp_slug105x45.gif" width="105" height="45" alt="Textpattern" title="" /></a></p>nt</div>nn<!-- center -->nt<div id="content">ntt<h1 class="error-status"><txp:error_status /></h1>ntt<p class="error-msg"><txp:error_message /></p>nt</div>nn<!-- footer -->nt<div id="foot"> </div>nn</div>nn</body>n</html>";
safe_insert('txp_page',"
name='error_default',
user_html='".doSlash($error_default)."'");
}
//take back use_textile
safe_update('txp_prefs',"html='pref_text'","name='use_textile'");
// ugly way to change somethign which could break BC:
// changed use_textile == 2 to convert breaks and
// use_textile == 1 to use textile - the same than in
// textile_body or textile_excerpt
if (safe_field('val','txp_prefs',"name='textile_updated'") === false) {
$ut = safe_field('val','txp_prefs',"name='use_textile'");
if ($ut == 1) {
safe_update('txp_prefs',"val='2'","name='use_textile'");
}elseif ($ut == 2){
safe_update('txp_prefs',"val='1'","name='use_textile'");
}
safe_insert('txp_prefs', "prefs_id=1, name='textile_updated',val='1', type='2'");
}
?>