Пример #1
0
  	</ul>
  </li>
</ol>
<p><strong>phpwcms</strong> has
  automatic image resizing capabilities. This works very well for standard graphics
  file formats like JPEG, GIF and PNG as long as your PHP installation has built-in
  support for <a href="http://en.wikipedia.org/wiki/GD_Graphics_Library" target="_blank">GD</a> &#8212; <strong>GD2</strong> with
  freetype support is always recommend. <strong>Note:</strong> It
  is not neccessary but recommend that you have installed <a href="http://www.imagemagick.org" target="_blank">ImageMagick</a> and <a href="http://www.ghostscript.com/" target="_blank">GhostScript</a> on
  your server system which enables image resizing for nearly every
  graphics file format.</p>
<?php 
// is the setup config file writable
if (!is_writable($DOCROOT . '/setup/setup.conf.inc.php')) {
    if (!@chmod($DOCROOT . '/setup/setup.conf.inc.php', 0666)) {
        echo errorWarning('The file <i>setup.conf.inc.php</i> in which all values are stored is NOT writable.');
        ?>
<p>Please correct this problem before you can continue (connect to your account by FTP and permissions to chmod 777).</p>
<?php 
    }
} else {
    if (!$setup_recommend) {
        echo '<p class="error">
		<img src="../img/famfamfam/icon_alert.gif" alt="" class="icon1" />
		It is not recommend to continue with setup. See the warnings!
		</p>';
    }
    ?>
<form action="setup.php?step=1" method="post">
	<input name="Submit" type="submit" value="Start setup of phpwcms" />
  	&nbsp;&nbsp;
Пример #2
0
        }
        echo '<tr><td>&nbsp;</td><td colspan="2">';
        if (!empty($create_user)) {
            // update
            echo '<img src="../img/famfamfam/icon_accept.gif" alt="Juchu" class="icon1" />';
            echo '<strong>Done!</strong> Account for user <b>' . html_specialchars($phpwcms['admin_user']) . '</b> was created.';
            echo '<input type="hidden" name="user_account" value="1" />';
        }
        if (!empty($update_user)) {
            // update
            echo '<img src="../img/famfamfam/icon_accept.gif" alt="Juchu" class="icon1" />';
            echo '<strong>Done!</strong> Account of user <b>' . html_specialchars($phpwcms['admin_user']) . '</b> was updated.';
            echo '<input type="hidden" name="user_account" value="1" />';
        }
        if ($user_check === false) {
            // db error
            echo errorWarning('There is a database problem!');
            echo '<p>Account for user <b>' . html_specialchars($phpwcms['admin_user']) . '</b> was not created or updated.<br />Click <b>continue</b> to try again.</p>';
            $_SESSION['admin_save'] = false;
        }
        echo '</td></tr>';
    }
}
?>
		  <tr><td colspan="3"><img src="../img/leer.gif" alt="" width="1" height="15" /></td>
		  </tr>
          <tr>
            <td align="right" class="v10">&nbsp;</td>
            <td colspan="2"><input name="dbsavesubmit" type="submit" value="Continue" /></td>
          </tr>
</table><input name="do" type="hidden" value="1" /></form>