PHP Classes

File: install/Views/security.php

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  install/Views/security.php  >  Download  
File: install/Views/security.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Commit for update 4.4.6

1. Add the session expiration config during installation;
2. Refine the default column order when set_relation is presents;
3. Add the ability to extends the helpers inside the theme. It'll help the theme developer to create their own function to support the theme;
4. Refine the API documentation view;
5. Add the GeoPHP dependency as the Aksara is already built in with geo-mapping tools;
6. Refine the installation;
7. Refine the expandable and information collapse (under CRUD table)
Date: 21 days ago
Size: 4,504 bytes
 

Contents

Class file image Download
<form action="<?php echo site_url('system'); ?>" method="POST" class="--validate-form">
    <h4>
        <?php echo phrase('security_configuration'); ?>
</h4>
    <p>
        <?php echo phrase('enter_your_secret_formula_to_secure_your_application'); ?>
</p>
    <hr class="row" />
    <div class="form-group mb-3">
        <label class="d-block mb-0">
            <?php echo phrase('encryption_key'); ?>
<b class="text-danger">*</b>
        </label>
        <input type="text" name="encryption" class="form-control form-control-sm" placeholder="<?php echo phrase('your_encryption_key'); ?>" value="<?php echo $encryption_key; ?>" />
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group mb-3">
                <label class="d-block mb-0">
                    <?php echo phrase('cookie_name'); ?>
<b class="text-danger">*</b>
                </label>
                <input type="text" name="cookie_name" class="form-control form-control-sm" placeholder="<?php echo phrase('unique_cookie_name_to_prevent_conflict'); ?>" value="<?php echo $cookie_name; ?>" />
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group mb-3">
                <label class="d-block mb-0">
                    <?php echo phrase('session_expiration'); ?>
<b class="text-danger">*</b>
                    <i class="mdi mdi-help-circle-outline" data-bs-toggle="popover" data-bs-content="<?php echo htmlspecialchars(phrase('session_expiration_description')); ?>" data-bs-container="body"></i>
                </label>
                <input type="number" name="session_expiration" class="form-control form-control-sm" placeholder="<?php echo phrase('in_seconds'); ?>" value="<?php echo (session()->get('session_expiration') ? session()->get('session_expiration') : 86400); ?>" />
            </div>
        </div>
    </div>
    <br/>
    <h5>
        <?php echo phrase('superuser'); ?>
</h5>
    <div class="row">
        <div class="col-md-6">
            <div class="form-group mb-3">
                <label class="d-block mb-0">
                    <?php echo phrase('first_name'); ?>
<b class="text-danger">*</b>
                </label>
                <input type="text" name="first_name" class="form-control form-control-sm" placeholder="e.g: John" value="<?php echo session()->get('first_name'); ?>" />
            </div>
        </div>
        <div class="col-md-6">
            <div class="form-group mb-3">
                <label class="d-block mb-0">
                    <?php echo phrase('last_name'); ?>
</label>
                <input type="text" name="last_name" class="form-control form-control-sm" placeholder="e.g: Doe" value="<?php echo session()->get('last_name'); ?>" />
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-6">
            <div class="form-group mb-3">
                <label class="d-block mb-0">
                    <?php echo phrase('email_address'); ?>
<b class="text-danger">*</b>
                </label>
                <input type="email" name="email" class="form-control form-control-sm" placeholder="e.g: johndoe@example.com" value="<?php echo session()->get('email'); ?>" />
            </div>
        </div>
        <div class="col-md-6">
            <div class="form-group mb-3">
                <label class="d-block mb-0">
                    <?php echo phrase('username'); ?>
<b class="text-danger">*</b>
                </label>
                <input type="text" name="username" class="form-control form-control-sm" placeholder="<?php echo phrase('create_username_for_superuser'); ?>" value="<?php echo session()->get('username'); ?>" />
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-6">
            <div class="form-group mb-3">
                <label class="d-block mb-0">
                    <?php echo phrase('password'); ?>
<b class="text-danger">*</b>
                </label>
                <input type="password" name="password" class="form-control form-control-sm" placeholder="<?php echo phrase('password_for_superuser'); ?>" />
            </div>
        </div>
        <div class="col-md-6">
            <div class="form-group mb-3">
                <label class="d-block mb-0">
                    <?php echo phrase('confirm_password'); ?>
<b class="text-danger">*</b>
                </label>
                <input type="password" name="confirm_password" class="form-control form-control-sm" placeholder="<?php echo phrase('retype_the_password'); ?>" />
            </div>
        </div>
    </div>
    <hr class="row" />
    <div class="--validation-callback"></div>
    <div class="row">
        <div class="col-6">
            <a href="<?php echo site_url('database'); ?>" class="btn btn-light d-block --xhr">
                <i class="mdi mdi-arrow-left"></i>
                <?php echo phrase('back'); ?>
</a>
        </div>
        <div class="col-6">
            <div class="d-grid">
                <input type="hidden" name="_token" value="<?php echo sha1(time()); ?>" />
                <button type="submit" class="btn btn-primary">
                    <i class="mdi mdi-check"></i>
                    <?php echo phrase('continue'); ?>
</button>
            </div>
        </div>
    </div>
</form>

For more information send a message to info at phpclasses dot org.