new appraoch
This commit is contained in:
14
pancake/installer/views/error.php
Executable file
14
pancake/installer/views/error.php
Executable file
@@ -0,0 +1,14 @@
|
||||
<h2>Error</h2>
|
||||
|
||||
<p>
|
||||
It looks like Pancake has not been installed. <strong>To run the installer, <?php echo anchor('', 'click here'); ?></strong>.
|
||||
</p>
|
||||
<p>Pancake thinks that the URL to your Pancake is:<br /><strong><?php echo BASE_URL;?></strong></p><p>Pancake thinks that you were trying to load the following page:<br /><strong><?php echo $this->uri->uri_string();?></strong></p>
|
||||
<p>If you haven't installed, and the above information is incorrect, that means that Pancake is having problems making sense of your server's configurations. <a href="<?php echo PANCAKEAPP_COM_BASE_URL; ?>account/support/ticket/new">Start a <strong>free</strong> support ticket</a>, and we'll help you sort it out.</p>
|
||||
|
||||
<p class="fail">
|
||||
If you have any difficulty installing Pancake, don't forget:<br/>
|
||||
<strong>We can install Pancake for you, for free.</strong><br/>Just
|
||||
<a href="<?php echo PANCAKEAPP_COM_BASE_URL; ?>account/support/ticket/new">start a
|
||||
<strong>free</strong> support ticket</a>.
|
||||
</p>
|
||||
10
pancake/installer/views/index.html
Executable file
10
pancake/installer/views/index.html
Executable file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
96
pancake/installer/views/steps/checks.php
Executable file
96
pancake/installer/views/steps/checks.php
Executable file
@@ -0,0 +1,96 @@
|
||||
<h2>Your server is missing a couple of things.</h2>
|
||||
<p class="fail">
|
||||
If you have any difficulty installing Pancake, don't forget:<br/>
|
||||
<strong>We can install Pancake for you, for free.</strong><br/>Just
|
||||
<a href="<?php echo PANCAKEAPP_COM_BASE_URL; ?>account/support/ticket/new">start a
|
||||
<strong>free</strong> support ticket</a>.
|
||||
</p>
|
||||
<p>Please fix the below errors and refresh to re-check.</p>
|
||||
|
||||
<table cellspacing="0" class="listtable checks-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="10%">Status</th>
|
||||
<th>Requirement</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="<?php echo $is_url_rewriting_working ? 'pass' : 'fail'; ?>"><?php echo $is_url_rewriting_working ? 'PASS' : 'FAIL'; ?></span>
|
||||
</td>
|
||||
<td>Pancake must be able to reliably detect whether URL rewriting is on or off.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="<?php echo $manage_pancakeapp ? 'pass' : 'fail'; ?>"><?php echo $manage_pancakeapp ? 'PASS' : 'FAIL'; ?></span>
|
||||
</td>
|
||||
<td>Your server must be able to communicate with pancakeapp.com (otherwise you won't be able to receive updates).</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="<?php echo $license_valid ? 'pass' : 'fail'; ?>"><?php echo $license_valid ? 'PASS' : 'FAIL'; ?></span>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($license_valid): ?>
|
||||
Your license key is valid.
|
||||
<?php else: ?>
|
||||
Your license key is not valid.
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="<?php echo $curl_installed ? 'pass' : 'fail'; ?>"><?php echo $curl_installed ? 'PASS' : 'FAIL'; ?></span>
|
||||
</td>
|
||||
<td>The Curl PHP extension must be installed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="<?php echo $installed['gd'] ? 'pass' : 'fail'; ?>"><?php echo $installed['gd'] ? 'PASS' : 'FAIL'; ?></span>
|
||||
</td>
|
||||
<td>The GD PHP extension must be installed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="<?php echo $installed['json'] ? 'pass' : 'fail'; ?>"><?php echo $installed['json'] ? 'PASS' : 'FAIL'; ?></span>
|
||||
</td>
|
||||
<td>The JSON PHP extension must be installed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="<?php echo $installed['dom'] ? 'pass' : 'fail'; ?>"><?php echo $installed['dom'] ? 'PASS' : 'FAIL'; ?></span>
|
||||
</td>
|
||||
<td>The DOM PHP extension must be installed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="<?php echo $installed['mysql'] ? 'pass' : 'fail'; ?>"><?php echo $installed['mysql'] ? 'PASS' : 'FAIL'; ?></span>
|
||||
</td>
|
||||
<td>The MySQL (or MySQLi) PHP extension must be installed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="<?php echo $installed['xml'] ? 'pass' : 'fail'; ?>"><?php echo $installed['xml'] ? 'PASS' : 'FAIL'; ?></span>
|
||||
</td>
|
||||
<td>The XML PHP extension must be installed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="<?php echo $tls12 ? 'pass' : 'fail'; ?>"><?php echo $tls12 ? 'PASS' : 'FAIL'; ?></span>
|
||||
</td>
|
||||
<td>Your server must be able to make TLS 1.2 connections to other servers.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="<?php echo $config_writable ? 'pass' : 'fail'; ?>"><?php echo $config_writable ? 'PASS' : 'FAIL</span>'; ?></span>
|
||||
</td>
|
||||
<td>The system/pancake/config folder must be writable.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="<?php echo $upload_writable ? 'pass' : 'fail'; ?>"><?php echo $upload_writable ? 'PASS' : 'FAIL'; ?></span>
|
||||
</td>
|
||||
<td>The uploads directory must be writable.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
8
pancake/installer/views/steps/complete.php
Executable file
8
pancake/installer/views/steps/complete.php
Executable file
@@ -0,0 +1,8 @@
|
||||
<h2 class="installed">Congratulations!</h2>
|
||||
<p>Pancake has been successfully installed on your server!</p>
|
||||
|
||||
<p>If you have a couple seconds would you mind telling your friends about us? A quick <a href="http://twitter.com/home?status=I%20just%20installed%20@pancakeapp%20and%20it%20looks%20awesome!%20http://pancakeapp.com">tweet</a> or mention on <a href="http://facebook.com">Facebook</a> is awesome!</p>
|
||||
|
||||
<h4>You rule! Now go collect stacks!</h4>
|
||||
|
||||
<p class="center"><a href="<?php echo site_url('admin/users/login'); ?>" class="button">Login!</a></p>
|
||||
89
pancake/installer/views/steps/single_step.php
Executable file
89
pancake/installer/views/steps/single_step.php
Executable file
@@ -0,0 +1,89 @@
|
||||
<h2>Let's make some Pancakes!</h2>
|
||||
<?php
|
||||
$errors = validation_errors(' ', '<br />');
|
||||
$has_errors = ($errors || isset($error));
|
||||
?>
|
||||
<p class="<?php echo $has_errors ? "fail" : ""; ?>">
|
||||
If you have any difficulty installing Pancake, don't forget:<br/>
|
||||
<strong>We can install Pancake for you, for free.</strong><br/>Just
|
||||
<a href="<?php echo PANCAKEAPP_COM_BASE_URL; ?>account/support/ticket/new">start a
|
||||
<strong>free</strong> support ticket</a>.
|
||||
</p>
|
||||
<hr>
|
||||
|
||||
<?php if (isset($error)): ?>
|
||||
<p class="notification error"><?php echo $error; ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if ($errors): ?>
|
||||
<p class="notification error"><?php echo $errors; ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="post" action="" id="form" name="form">
|
||||
<p>Enter your database connection settings.</p>
|
||||
<table style="width: 100%;">
|
||||
<tr>
|
||||
<th class="col1"><label for="db_host">Database Host:</label></th>
|
||||
<td class="col2">
|
||||
<input id="db_host" name="db_host" type="text" size="20" value="<?php echo set_value("db_host", "localhost"); ?>"/>
|
||||
</td>
|
||||
<td class="col3">localhost or an ip (192.168.0.1)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col1"><label for="db_port">Database Port:</label></th>
|
||||
<td class="col2">
|
||||
<input id="db_port" name="db_port" type="text" size="20" value="<?php echo set_value("db_port", "3306"); ?>"/>
|
||||
</td>
|
||||
<td class="col3">Which port is MySQL running on? Usually 3306.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col1"><label for="db_name">Database Name:</label></th>
|
||||
<td class="col2">
|
||||
<input id="db_name" name="db_name" type="text" size="20" value="<?php echo set_value("db_name"); ?>"/>
|
||||
</td>
|
||||
<td class="col3">The name of the database to use.</td>
|
||||
</tr>
|
||||
<input name="dbprefix" type="hidden" value="pancake_"/>
|
||||
<tr>
|
||||
<th class="col1"><label for="db_user">Username:</label></th>
|
||||
<td class="col2">
|
||||
<input id="db_user" name="db_user" type="text" size="20" value="<?php echo set_value("db_user"); ?>"/>
|
||||
</td>
|
||||
<td class="col3">Your MySQL username.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="col1"><label for="db_pass">Password:</label></th>
|
||||
<td class="col2"><input id="db_pass" name="db_pass" type="password" size="20" value=""/>
|
||||
</td>
|
||||
<td class="col3">Your MySQL password.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<p>Enter the login details you want to use for Pancake.</p>
|
||||
<table style="width: 100%;">
|
||||
<tr>
|
||||
<th class="col1"><label for="username">Admin Username</label></th>
|
||||
<td class="col2">
|
||||
<input id="username" name="username" type="text" size="20" value="<?php echo set_value('username', 'admin'); ?>"/>
|
||||
</td>
|
||||
<td class="col3">What you want to login with.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th class="col1"><label for="password">Password</label></th>
|
||||
<td class="col2"><input id="password" name="password" type="password" size="20"/></td>
|
||||
<td class="col3">Choose a password.</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th class="col1"><label for="password_confirm">Confirm Password</label></th>
|
||||
<td class="col2"><input id="password_confirm" name="password_confirm" type="password" size="20"/></td>
|
||||
<td class="col3">Confirm the password.</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<br/>
|
||||
|
||||
<p class="center">
|
||||
<button type="submit" class="button">Mmmm... Let's Eat!</button>
|
||||
</p>
|
||||
</form>
|
||||
13
pancake/installer/views/steps/stop.php
Executable file
13
pancake/installer/views/steps/stop.php
Executable file
@@ -0,0 +1,13 @@
|
||||
<h2>Stop!</h2>
|
||||
<p>You have already installed Pancake!<br/>You almost certainly don't want to overwrite all the data you had.</p>
|
||||
<p>
|
||||
If you are just updating your Pancake's files manually, you should find the file that was in
|
||||
<code>system/pancake/config/database.php</code> before the update, and put it back there.
|
||||
</p>
|
||||
<p>You cannot use the installer because you've already installed Pancake.</p>
|
||||
<p class="fail">
|
||||
If you have any difficulty installing Pancake, don't forget:<br/>
|
||||
<strong>We can install Pancake for you, for free.</strong><br/>Just
|
||||
<a href="<?php echo PANCAKEAPP_COM_BASE_URL; ?>account/support/ticket/new">start a
|
||||
<strong>free</strong> support ticket</a>.
|
||||
</p>
|
||||
13
pancake/installer/views/steps/welcome.php
Executable file
13
pancake/installer/views/steps/welcome.php
Executable file
@@ -0,0 +1,13 @@
|
||||
<h2>Let's make some Pancakes!</h2>
|
||||
<p>Ingredient list, make sure you have these to hand:</p>
|
||||
<ul class="requirements">
|
||||
<li>License key (in receipt email)</li>
|
||||
<li>Database name</li>
|
||||
<li>Database username</li>
|
||||
<li>Database password</li>
|
||||
<li>Database host</li>
|
||||
</ul>
|
||||
<p>If you have all the information ready yourself, then you're ready to go. Hit the "Install Pancake!" link below to continue.</p>
|
||||
<p>If for any reason this recipe fails and the file creation doesn't work please try again then <a href="<?php echo PANCAKEAPP_COM_BASE_URL; ?>account/support/ticket/new">open a <strong>free</strong> support ticket</a> if it still does not work.</p>
|
||||
|
||||
<p class="center"><a href="<?php echo BASE_URL."index.php?/wizard/step1"; ?>" class="button">Install Pancake!</a></p>
|
||||
27
pancake/installer/views/template.php
Executable file
27
pancake/installer/views/template.php
Executable file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Pancake Payments Install Wizard</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" href="<?php echo Asset::get_src('style.css', 'css'); ?>" media="screen">
|
||||
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Paytone+One&v1' media="screen">
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="content" class="no_object_notification">
|
||||
<?php echo $content; ?>
|
||||
</div>
|
||||
<!-- /content -->
|
||||
|
||||
<div id="footer">
|
||||
</div>
|
||||
<!-- /footer -->
|
||||
|
||||
</div>
|
||||
<!-- /wrapper -->
|
||||
|
||||
<script src="<?php echo Asset::get_src('jquery-1.11.2.min.js', 'js'); ?>"></script>
|
||||
<script src="<?php echo Asset::get_src('main.js', 'js'); ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user