~ubuntu-branches/ubuntu/trusty/pluxml/trusty-proposed

« back to all changes in this revision

Viewing changes to install.php

  • Committer: Package Import Robot
  • Author(s): Tanguy Ortolo
  • Date: 2014-01-14 21:55:05 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140114215505-q8b6y30b69q29cx0
Tags: 5.3-1
* New upstream release.
* debian/po/es.po: Spanish translation, thanks to Matías Bellone.
 (Closes: #733066)
* debian/control: update Standards-Version to 3.9.5 (no change needed).
* debian/postinst: update PluXml version in configuration file, to avoid
  triggering the update script (nothing else to do).

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
# On vérifie que PHP 5 ou superieur soit installé
40
40
if(version_compare(PHP_VERSION, '5.0.0', '<')){
41
 
    header('Content-Type: text/plain charset=UTF-8');
42
 
    echo utf8_decode(L_WRONG_PHP_VERSION);
43
 
    exit;
 
41
        header('Content-Type: text/plain charset=UTF-8');
 
42
        echo utf8_decode(L_WRONG_PHP_VERSION);
 
43
        exit;
44
44
}
45
45
 
46
46
# On vérifie que PluXml n'est pas déjà installé
167
167
        $xml .= "\t".'<statique number="001" active="1" menu="oui" url="'.L_DEFAULT_STATIC_URL.'" template="static.php"><group><![CDATA[]]></group><name><![CDATA['.plxUtils::strRevCheck(L_DEFAULT_STATIC_TITLE).']]></name><meta_description><![CDATA[]]></meta_description><meta_keywords><![CDATA[]]></meta_keywords><title_htmltag><![CDATA[]]></title_htmltag></statique>'."\n";
168
168
        $xml .= '</document>';
169
169
        plxUtils::write($xml,path('XMLFILE_STATICS'));
170
 
 
171
 
        $cs = '<p><?php echo \''.plxUtils::strRevCheck(L_DEFAULT_STATIC_CONTENT).'\'; ?></p>';
172
 
        plxUtils::write($cs,PLX_ROOT.$config['racine_statiques'].'001.'.L_DEFAULT_STATIC_URL.'.php');
 
170
        plxUtils::write(file_get_contents(PLX_CORE.'/lib/html.static.txt'),PLX_ROOT.$config['racine_statiques'].'001.'.L_DEFAULT_STATIC_URL.'.php');
173
171
 
174
172
        # Création du premier article
 
173
        $html = explode('-----', file_get_contents(PLX_CORE.'/lib/html.article.txt'));
175
174
        $xml = '<?xml version="1.0" encoding="'.PLX_CHARSET.'"?>'."\n";
176
175
        $xml .= '<document>
177
176
        <title><![CDATA['.plxUtils::strRevCheck(L_DEFAULT_ARTICLE_TITLE).']]></title>
178
177
        <allow_com>1</allow_com>
179
178
        <template><![CDATA[article.php]]></template>
180
179
        <chapo>
181
 
                <![CDATA[]]>
 
180
                <![CDATA['.$html[0].']]>
182
181
        </chapo>
183
182
        <content>
184
 
                <![CDATA[<p>'.plxUtils::strRevCheck(L_DEFAULT_ARTICLE_CONTENT).'</p>]]>
 
183
                <![CDATA['.$html[1].']]>
185
184
        </content>
186
185
        <tags>
187
186
                <![CDATA[PluXml]]>
252
251
<head>
253
252
        <title><?php echo L_PLUXML_INSTALLATION.' '.L_VERSION.' '.$version ?></title>
254
253
        <meta http-equiv="Content-Type" content="text/html; charset=<?php echo strtolower(PLX_CHARSET) ?>" />
255
 
    <link rel="stylesheet" type="text/css" href="<?php echo PLX_CORE ?>admin/theme/reset.css" media="screen" />
 
254
        <link rel="stylesheet" type="text/css" href="<?php echo PLX_CORE ?>admin/theme/reset.css" media="screen" />
256
255
        <link rel="stylesheet" type="text/css" href="<?php echo PLX_CORE ?>admin/theme/base.css" media="screen" />
257
256
        <link rel="stylesheet" type="text/css" href="<?php echo PLX_CORE ?>admin/theme/style.css" media="screen" />
258
257
</head>