Skip to content

Commit

Permalink
[MOD] Base site URL and add installation method
Browse files Browse the repository at this point in the history
  • Loading branch information
domProjects committed Feb 6, 2018
1 parent ffeba99 commit f856c58
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 13 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
# CI-AdminLTE v1.7.0
# CI-AdminLTE
CodeIgniter 3.x with AdminLTE 2.3.x

## Installation

1. Unzip the package.
2. Upload the `CI-AdminLTE` folders and files to your server. Normally the index.php file will be at your root.
3. Open the `application/config/common/dp_config.php` file with a text editor and set your base URL:

```
// Fill in the file of your project here when you develop locally.
$host_dev = 'CI-AdminLTE';
// Fill in the domain name here when your project is online.
// Example : www.johndoe.com
// johndoe.com
$host_prod = 'your_domain.tld';
```

## Demo

Coming soon

### Login
* Email : `[email protected]`
* Password : `password`
* Email : `[email protected]` / Password : `password`

## Browser Compatibility
Support for most major browsers including Chrome, Firefox, IE9+, Opera and Safari.
Expand Down
42 changes: 41 additions & 1 deletion application/config/common/dp_config.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,51 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
*/
// Possible hosts locally. You can add some if needed.
$config['host_dev'] = array('localhost', '127.0.0.1', '::1');

// Fill in the file of your project here when you develop locally.
$host_dev = 'CI-AdminLTE';

// Fill in the domain name here when your project is online.
// Example : www.johndoe.com
// johndoe.com
$host_prod = 'your_domain.tld';

// WARNING: Do not modify the lines below
$domain = (in_array($_SERVER['HTTP_HOST'], $config['host_dev'], TRUE)) ? $_SERVER['HTTP_HOST'] . '/' . $host_dev : $host_prod;

$config['base_url'] = ( ! empty($_SERVER['HTTPS'])) ? 'https://' . $domain : 'http://' . $domain;

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
*/
$config['index_page'] = '';

/*
|--------------------------------------------------------------------------
| Assets
|--------------------------------------------------------------------------
|
*/
$config['assets_dir'] = 'assets';
$config['frameworks_dir'] = $config['assets_dir'] . '/frameworks';
$config['plugins_dir'] = $config['assets_dir'] . '/plugins';

/*
|--------------------------------------------------------------------------
| Upload
|--------------------------------------------------------------------------
|
*/
$config['upload_dir'] = 'upload';
$config['avatar_dir'] = $config['upload_dir'] . '/avatar';

3 changes: 1 addition & 2 deletions application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
| variable so that it is blank.
|
*/
//$config['index_page'] = 'index.php';
$config['index_page'] = '';
$config['index_page'] = 'index.php';

/*
|--------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions application/views/admin/_templates/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

<footer class="main-footer">
<div class="pull-right hidden-xs">
<b><?php echo lang('footer_version'); ?></b> 1.3.0
<b><?php echo lang('footer_version'); ?></b> Development
</div>
<strong><?php echo lang('footer_copyright'); ?> &copy; 2014-<?php echo date('Y'); ?> <a href="http://almsaeedstudio.com" target="_blank">Almsaeed Studio</a> &amp; <a href="http://domprojects.com" target="_blank">domProjects</a>.</strong> <?php echo lang('footer_all_rights_reserved'); ?>.
<strong><?php echo lang('footer_copyright'); ?> &copy; 2014-<?php echo date('Y'); ?> <a href="http://almsaeedstudio.com" target="_blank">Almsaeed Studio</a> &amp; <a href="https://domprojects.com" target="_blank">domProjects</a>.</strong> <?php echo lang('footer_all_rights_reserved'); ?>.
</footer>
</div>

Expand Down
3 changes: 1 addition & 2 deletions robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
# Allow crawling of all content
User-agent: *
Disallow: /admin/
Allow: /
Sitemap: http://www.domprojects.com/sitemap.xml
Allow: /
5 changes: 2 additions & 3 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.domprojects.com/</loc>
<lastmod>2015-09-26</lastmod>
<loc>https://domprojects.com</loc>
<lastmod>2018-02-06</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
Expand Down

0 comments on commit f856c58

Please sign in to comment.