Location: PHPKode > projects > BackendPro > install/index.php
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="../assets/css/reset.css" />
    
    <!--[if IE 6]>
    <link rel="stylesheet" type="text/css" href="../assets/css/reset[ie_6].css" />
    <![endif]-->
    
    <!--[if gte IE 6]>
    <link rel="stylesheet" type="text/css" href="../assets/css/reset[gte_ie_6].css" />
    <![endif]-->

    <link rel="stylesheet" type="text/css" href="../assets/css/typography.css" />
    <link rel="stylesheet" type="text/css" href="../assets/css/bep_front_layout.css" />
    <link rel="stylesheet" type="text/css" href="../assets/css/forms.css" />
    <title>Installation</title>
</head>

<body>
<div id="wrapper">
    <a name="top"></a>
    <div id="header">
        <h1>BackendPro Installation Process</h1>
    </div>

    <div id="content">
    	<a name="top"></a>
    	<?php
    		include_once("common/CommonFunctions.php");
    		
    		// Check the install folder is realy writable
    		if(!is_really_writable($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['SCRIPT_NAME']))):
   		?>
   		<p>Before you can install BackendPro please make sure the following folder is writable, then re-run this 
   		install:</p>
   		<p><b><?php print $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['SCRIPT_NAME']) ?></b></p>
   		<?php else:?>        
        <p>Lets get started, all we are going to do here is setup some basic details to get
        your system up and running.</p>

        <form action="install_status.php" method="POST" class="horizontal">
            <h3>CodeIgniter File System</h3>
            <p>First lets get some information about your CodeIgniter setup.
            Please make sure all the following paths are relative to the Base Path.
            <b>Please note this will not change the files in CI and is only used
            during the install process.</b></p>
            <p>Make sure all folders are relative to <b><?php print $_SERVER['DOCUMENT_ROOT'] . dirname(dirname($_SERVER['SCRIPT_NAME']))?>/</b></p>

            <fieldset>
                <ol>
                    <li>
                        <label for="ci_system">System Folder</label>
                        <input type="text" name="ci_system" class="text" value="system" />
                    </li>
                    <li>
                        <label for="ci_application">Application Folder</label>
                        <input type="text" name="ci_application" class="text" value="system/application" />
                    </li>
                    <li>
                        <label for="ci_modules">Modules Folder</label>
                        <input type="text" name="ci_modules" class="text" value="modules" />
                    </li>
                    <li>
                        <label for="ci_logs">Log Folder</label>
                        <input type="text" name="ci_logs" class="text" value="system/logs" />
                    </li>
                    <li>
                        <label for="ci_cache">Cache Folder</label>
                        <input type="text" name="ci_cache" class="text" value="system/cache" />
                    </li>
                </ol>
            </fieldset>

            <br>
            <h3>Database</h3>
            <p>Now lets get some information about your database you are going to use.
            Please make sure the user you specify has the ability to create new tables,
            and insert data.</p>

            <fieldset>
                <ol>
                    <li>
                        <label for="database_host">Database Host</label>
                        <input type="text" name="database_host" class="text" value="localhost" />
                    </li>
                    <li>
                        <label for="database_name">Database Name</label>
                        <input type="text" name="database_name" class="text" />
                    </li>
                    <li>
                        <label for="database_user">Database User</label>
                        <input type="text" name="database_user" class="text" value="root" />
                    </li>
                    <li>
                        <label for="database_password">Database Password</label>
                        <input type="text" name="database_password" class="text" />
                    </li>
                </ol>
            </fieldset>

            <br>
            <h3>User Account</h3>
            <p>Now lets get you setup with some login details, please remember your email address is
            used when logging in to the system.</p>
            <fieldset>
                <ol>
                    <li>
                        <label for="username">Username</label>
                        <input type="text" name="username" class="text" value="Administrator" />
                    </li>
                    <li>
                        <label for="email">Email</label>
                        <input type="text" name="email" class="text" />
                    </li>
                    <li>
                        <label for="password">Password</label>
                        <input type="text" name="password" class="text" />
                    </li>
                </ol>
            </fieldset>

            <br>
            <h3>Encryption Key</h3>
            <p>Throughout the BackendPro system, encryption is used to protect sensitive data.
            For this we need an encryption key, please specify one below. If you do not
            provide one, a random key will be generated for you. When picking a key please
            ensure it is at least 32 characters long and as random as possible. <b>If this key
            is lost for any reason any data encrypted using it will also be lost.</b></p>
            <fieldset>
                <ol>
                    <li>
                        <label for="username">Key</label>
                        <input type="text" name="encryption_key" class="text" value="" />
                    </li>
                </ol>
            </fieldset>

            <br>
            <h3>ReCAPTCHA</h3>
            <p>Now BackendPro can use ReCAPTCHA to verify someone isn't a bot, but for this we need both
            your public and private keys. If you don't have a public/private key please go <a href="https://admin.recaptcha.net/accounts/signup/?next=%2Frecaptcha%2Fcreatesite%2F">here</a>
            to get one. <b>This is an optional field, not entering a key will only mean ReCAPTCHA isn't
            available to you</b></p>
            <fieldset>
                <ol>
                    <li>
                        <label for="public_key">Public Key</label>
                        <input type="text" name="public_key" class="text" />
                    </li>
                    <li>
                        <label for="private_key">Private Key</label>
                        <input type="text" name="private_key" class="text" />
                    </li>
                </ol>
            </fieldset>

            <fieldset>
                <ol>
                    <li class="submit">
                        <input type="submit" name="submit" value="INSTALL BACKENDPRO" />
                    </li>
                </ol>
            </fieldset>
        </form>
        <?php endif;?>
    </div>

    <div id="footer">
        <a href="#top">Top</a><br />
        This site is powered by BackendPro 0.6<br />
        &copy; Copyright 2009 - Adam Price -  All rights Reserved
    </div>
</div>

</body>
</html>
Return current item: BackendPro