[ Index ]

PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12)

title

Body

[close]

/setup/inc/ -> step5.inc.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2012 Oliver Georgi <oliver@phpwcms.de> // All rights reserved.
   6   
   7     This script is part of PHPWCMS. The PHPWCMS web content management system is
   8     free software; you can redistribute it and/or modify it under the terms of
   9     the GNU General Public License as published by the Free Software Foundation;
  10     either version 2 of the License, or (at your option) any later version.
  11    
  12     The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
  13     A copy is found in the textfile GPL.txt and important notices to the license 
  14     from the author is found in LICENSE.txt distributed with these scripts.
  15    
  16     This script is distributed in the hope that it will be useful, but WITHOUT ANY 
  17     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  18     PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  19   
  20     This copyright notice MUST APPEAR in all copies of the script!
  21  *************************************************************************************/
  22  
  23  
  24  $_SERVER['DOCUMENT_ROOT'] = $phpwcms['DOC_ROOT'];
  25  $phpwcms["root"] = !empty($phpwcms["root"]) ? "/".$phpwcms["root"] : "";
  26  
  27  ?>
  28  
  29  
  30  
  31  <p><span class="title"><strong>Ready to start phpwcms?</strong> Some &quot;problems&quot;
  32      maybe OK - you can check by testing phpwcms installation.</span></p>
  33  <table border="0" cellpadding="0" cellspacing="0" summary="">
  34    <tr><?php    
  35    
  36    $status = check_path_status($phpwcms["root"]."/".$phpwcms["file_path"]);    
  37    if($status != 2) {
  38        $status = set_chmod($phpwcms["root"]."/".$phpwcms["file_path"], 0777, $status);
  39    }
  40    
  41    ?>
  42      <td align="right" class="v10">filestorage:&nbsp;</td>
  43      <td<?php echo gib_bg_color($status==2?2:0) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["file_path"]) ?></font></strong>&nbsp;</td>
  44      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
  45      <td><?php echo gib_status_text($status) ?></td>
  46    </tr>
  47    
  48    <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
  49      <tr><?php    
  50    
  51    $status = check_path_status($phpwcms["root"]."/".$phpwcms["file_path"].'/can_be_deleted');
  52    if($status != 2) {
  53        $status = set_chmod($phpwcms["root"]."/".$phpwcms["file_path"].'/can_be_deleted', 0777, $status);
  54    }
  55    
  56    
  57    ?>
  58      <td align="right" class="v10">deleted&nbsp;files:&nbsp;</td>
  59      <td<?php echo gib_bg_color($status==2?2:0) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["file_path"].'/can_be_deleted') ?></font></strong>&nbsp;</td>
  60      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
  61      <td><?php echo gib_status_text($status) ?></td>
  62    </tr>
  63    
  64    <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
  65    <tr><?php    
  66    $status = check_path_status($phpwcms["root"]."/".$phpwcms["templates"]);
  67    
  68    ?>
  69      <td align="right" class="v10">templates:&nbsp;</td>
  70      <td<?php echo gib_bg_color($status) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["templates"]) ?></font></strong>&nbsp;</td>
  71      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
  72      <td><?php echo gib_status_text($status==1 ? 3 : $status) ?></td>
  73    </tr>
  74    
  75    <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
  76    <tr><?php
  77    
  78    $template_lang_path = trim($phpwcms["templates"], '/').'/template_lang';
  79    $status = check_path_status($phpwcms["root"]."/".$template_lang_path);
  80    
  81    ?>
  82      <td align="right" class="v10">template&nbsp;languages:&nbsp;</td>
  83      <td<?php echo gib_bg_color($status) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($template_lang_path) ?></font></strong>&nbsp;</td>
  84      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
  85      <td><?php echo gib_status_text($status==1 ? 3 : $status) ?></td>
  86    </tr>
  87    
  88      <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
  89    <tr><?php    
  90    $status = check_path_status($phpwcms["root"]."/".$phpwcms["ftp_path"]);    
  91    if($status != 2) {
  92        $status = set_chmod($phpwcms["root"]."/".$phpwcms["ftp_path"], 0777, $status);
  93    }  
  94    
  95    ?>
  96      <td align="right" class="v10">ftp&nbsp;takeover:&nbsp;</td>
  97      <td<?php echo gib_bg_color($status==2?2:0) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["ftp_path"]) ?></font></strong>&nbsp;</td>
  98      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
  99      <td><?php echo gib_status_text($status) ?></td>
 100    </tr>
 101    
 102    <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="8"></td></tr>
 103    <tr><?php    $status = check_path_status($phpwcms["root"]."/".$phpwcms["content_path"]);    ?>
 104      <td align="right" class="v10">frontend&nbsp;content:&nbsp;</td>
 105      <td<?php echo gib_bg_color($status) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["content_path"]) ?></font></strong>&nbsp;</td>
 106      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
 107      <td><?php echo gib_status_text($status==1 ? 3 : $status) ?></td>
 108    </tr>
 109    <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
 110    <tr><?php    
 111        $status = check_path_status($phpwcms["root"]."/".$phpwcms["content_path"]."/images");    
 112      if($status != 2) {
 113            $status = set_chmod($phpwcms["root"]."/".$phpwcms["content_path"]."/images", 0777, $status);
 114        }  
 115      
 116      ?>
 117      <td align="right" class="v10">frontend&nbsp;images:&nbsp;</td>
 118      <td<?php echo gib_bg_color($status==2?2:0) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["content_path"]."/images") ?></font></strong>&nbsp;</td>
 119      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
 120      <td><?php echo gib_status_text($status) ?></td>
 121    </tr>
 122    
 123      <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
 124    <tr><?php    
 125        $status = check_path_status($phpwcms["root"]."/".$phpwcms["content_path"]."/form");    
 126      if($status != 2) {
 127            $status = set_chmod($phpwcms["root"]."/".$phpwcms["content_path"]."/form", 0777, $status);
 128        } 
 129      ?>
 130      <td align="right" class="v10">frontend&nbsp;form:&nbsp;</td>
 131      <td<?php echo gib_bg_color($status==2?2:0) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["content_path"]."/form") ?></font></strong>&nbsp;</td>
 132      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
 133      <td><?php echo gib_status_text($status) ?></td>
 134    </tr>
 135    
 136      <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
 137    <tr><?php
 138        $status = check_path_status($phpwcms["root"]."/".$phpwcms["content_path"]."/tmp");
 139      if($status != 2) {
 140            $status = set_chmod($phpwcms["root"]."/".$phpwcms["content_path"]."/tmp", 0777, $status);
 141        } 
 142      
 143      ?>
 144      <td align="right" class="v10">frontend&nbsp;tmp:&nbsp;</td>
 145      <td<?php echo gib_bg_color($status==2?2:0) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["content_path"]."/tmp") ?></font></strong>&nbsp;</td>
 146      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
 147      <td><?php echo gib_status_text($status) ?></td>
 148    </tr>
 149    
 150      <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
 151    <tr><?php
 152        $status = check_path_status($phpwcms["root"]."/".$phpwcms["content_path"]."/rss");    
 153      if($status != 2) {
 154            $status = set_chmod($phpwcms["root"]."/".$phpwcms["content_path"]."/rss", 0777, $status);
 155        } 
 156      ?>
 157      <td align="right" class="v10">frontend&nbsp;rss:&nbsp;</td>
 158      <td<?php echo gib_bg_color($status==2?2:0) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["content_path"]."/rss") ?></font></strong>&nbsp;</td>
 159      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
 160      <td><?php echo gib_status_text($status) ?></td>
 161    </tr>
 162    
 163      <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
 164    <tr><?php
 165        $status = check_path_status($phpwcms["root"]."/".$phpwcms["content_path"]."/gt");    
 166      if($status != 2) {
 167            $status = set_chmod($phpwcms["root"]."/".$phpwcms["content_path"]."/gt", 0777, $status);
 168        } 
 169      ?>
 170      <td align="right" class="v10">frontend&nbsp;gt:&nbsp;</td>
 171      <td<?php echo gib_bg_color($status==2?2:0) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["content_path"]."/gt") ?></font></strong>&nbsp;</td>
 172      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
 173      <td><?php echo gib_status_text($status) ?></td>
 174    </tr>
 175    
 176       <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
 177    <tr><?php
 178        $status = check_path_status($phpwcms["root"]."/".$phpwcms["content_path"]."/pages");
 179      ?>
 180      <td align="right" class="v10">frontend&nbsp;pages:&nbsp;</td>
 181      <td<?php echo gib_bg_color($status) ?>>&nbsp;<strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["content_path"]."/pages") ?></font></strong>&nbsp;</td>
 182      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
 183      <td><?php echo gib_status_text($status==1 ? 3 : $status) ?></td>
 184    </tr>
 185    
 186    
 187         <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="8"></td></tr>
 188    <tr><?php
 189        $status = check_file_status($phpwcms["root"]."/".$phpwcms["templates"]."/inc_default/startup.php");
 190      if($status != 2) {
 191            $status = set_chmod($phpwcms["root"]."/".$phpwcms["templates"]."/inc_default/startup.php", 0666, $status, 1);
 192        } 
 193      ?>
 194      <td align="right" class="v10">startup text:&nbsp;</td>
 195      <td<?php echo gib_bg_color($status==2?2:0) ?>>&nbsp;<font color="#FFFFFF"><?php echo html_specialchars($phpwcms["templates"]."/inc_default/startup.php") ?></font>&nbsp;</td>
 196      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
 197      <td><?php echo gib_status_text($status) ?></td>
 198    </tr>
 199    
 200           <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
 201    <tr><?php    
 202        $status = check_file_status($phpwcms["root"]."/".$phpwcms["templates"]."/inc_css/frontend.css"); 
 203      if($status != 2) {
 204            $status = set_chmod($phpwcms["root"]."/".$phpwcms["templates"]."/inc_css/frontend.css", 0666, $status, 1);
 205        }
 206      
 207      ?>
 208      <td align="right" class="v10">main CSS file:&nbsp;</td>
 209      <td<?php echo gib_bg_color($status==2?2:0) ?>>&nbsp;<font color="#FFFFFF"><?php echo html_specialchars($phpwcms["templates"]."/inc_css/frontend.css") ?></font>&nbsp;</td>
 210      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
 211      <td><?php echo gib_status_text($status) ?></td>
 212    </tr>
 213    
 214    <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
 215    <tr><?php    
 216        $status = check_file_status($phpwcms["root"]."/config/phpwcms/conf.indexpage.inc.php");
 217      if($status != 2) {
 218            $status = set_chmod($phpwcms["root"]."/".$phpwcms["templates"]."/config/phpwcms/conf.indexpage.inc.php", 0666, $status, 1);
 219        }
 220      
 221      ?>
 222      <td align="right" class="v10">index level settings:&nbsp;</td>
 223      <td<?php echo gib_bg_color($status==2?2:0) ?>>&nbsp;<font color="#FFFFFF"><?php echo html_specialchars("config/phpwcms/conf.indexpage.inc.php") ?></font>&nbsp;</td>
 224      <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
 225      <td><?php echo gib_status_text($status) ?></td>
 226    </tr>
 227  
 228    <tr>
 229      <td colspan="4" class="v10">&nbsp;</td>
 230    </tr>
 231    <tr>
 232      <td align="right" class="v10">&nbsp;</td>
 233      <td colspan="3"><table border="0" cellpadding="0" cellspacing="0" summary="">
 234        <tr>
 235          <td bgcolor="#99CC00">&nbsp;&nbsp;&nbsp;</td>
 236          <td class="v10">&nbsp;OK&nbsp;&nbsp;</td>
 237          <td bgcolor="#FF3300">&nbsp;&nbsp;&nbsp;</td>
 238          <td class="v10">&nbsp;PROBLEM</td>
 239        </tr>
 240      </table></td>
 241    </tr>
 242  </table>
 243  
 244  <p><a href="get_conf_file.php"><strong>Download the created config file</strong></a>*
 245    and copy it to ./config/phpwcms/<strong>conf.inc.php</strong> &#8212; you
 246  can also edit values manually. Maybe you have to rename the file if you download
 247    using Internet Explorer (name is: <strong>conf.inc.php</strong>). Another possible way is to
 248    connect to your account by ftp. Then place the file ./setup/<strong>setup.conf.inc.php</strong>  in ./config/phpwcms. There you have to delete or rename default conf.inc.php &#8212; then
 249    rename setup.conf.inc.php to conf.inc.php. It's not possible to start the setup
 250    process again as long the setup folder still exists and if you have downloaded
 251    the created config file once.<br>
 252    <br>
 253    <strong style="color:#FF0000;">ATTENTION!!!<br>Delete
 254    the &quot;setup&quot; folder
 255  otherwise everybody might see your username, passwords and settings.</strong></p>
 256  <p>To makes changes again or proof your values:<br />
 257  &#8212; <a href="setup.php?step=1">MySQL database infos</a><br />
 258  &#8212; <a href="setup.php?step=2">site infos and admin account</a><br />
 259  &#8212; <a href="setup.php?step=3">path values</a><br />
 260  &#8212; <a href="setup.php?step=4">content values</a></p>
 261  <p>Please check infos about system and PHP version with the requirements. <strong>Very
 262      important when you use ImageMagick:</strong> Please check that the system
 263      can find the application (paths must be registered to the system - try this
 264      by using &quot;convert
 265      -version&quot; inside your terminal or command line). Check <a href="http://www.imagemagick.org/" target="_blank">http://www.imagemagick.org</a> for
 266      additional information.</p>


Generated: Sun Jan 29 16:31:14 2012 Cross-referenced by PHPXref 0.7.1