diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/config/autoload.php | 24 | ||||
-rw-r--r-- | application/config/config.php | 48 | ||||
-rw-r--r-- | application/config/constants.php | 6 | ||||
-rw-r--r-- | application/config/database.php | 16 | ||||
-rw-r--r-- | application/config/foreign_chars.php | 2 | ||||
-rw-r--r-- | application/config/hooks.php | 4 | ||||
-rw-r--r-- | application/config/mimes.php | 13 | ||||
-rw-r--r-- | application/config/profiler.php | 2 | ||||
-rw-r--r-- | application/config/routes.php | 2 | ||||
-rw-r--r-- | application/config/smileys.php | 4 | ||||
-rw-r--r-- | application/config/user_agents.php | 6 | ||||
-rw-r--r-- | application/controllers/welcome.php | 22 | ||||
-rw-r--r-- | application/errors/error_404.php | 58 | ||||
-rw-r--r-- | application/errors/error_db.php | 58 | ||||
-rw-r--r-- | application/errors/error_general.php | 58 | ||||
-rw-r--r-- | application/errors/error_php.php | 2 | ||||
-rw-r--r-- | application/views/welcome_message.php | 108 |
17 files changed, 280 insertions, 153 deletions
diff --git a/application/config/autoload.php b/application/config/autoload.php index 90b1a808f..1c492a20d 100644 --- a/application/config/autoload.php +++ b/application/config/autoload.php @@ -1,4 +1,4 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER @@ -8,7 +8,7 @@ | In order to keep the framework as light-weight as possible only the | absolute minimal resources are loaded by default. For example, | the database is not connected to automatically since no assumption -| is made regarding whether you intend to use it. This file lets +| is made regarding whether you intend to use it. This file lets | you globally define which systems you would like loaded with every | request. | @@ -29,20 +29,20 @@ /* | ------------------------------------------------------------------- -| Auto-load Packges +| Auto-load Packges | ------------------------------------------------------------------- | Prototype: | -| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared'); +| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared'); | */ -$autoload['packages'] = array(APPPATH.'third_party'); +$autoload['packages'] = array(); /* | ------------------------------------------------------------------- -| Auto-load Libraries +| Auto-load Libraries | ------------------------------------------------------------------- | These are the classes located in the system/libraries folder | or in your application/libraries folder. @@ -57,7 +57,7 @@ $autoload['libraries'] = array(); /* | ------------------------------------------------------------------- -| Auto-load Helper Files +| Auto-load Helper Files | ------------------------------------------------------------------- | Prototype: | @@ -69,14 +69,14 @@ $autoload['helper'] = array(); /* | ------------------------------------------------------------------- -| Auto-load Config files +| Auto-load Config files | ------------------------------------------------------------------- | Prototype: | | $autoload['config'] = array('config1', 'config2'); | | NOTE: This item is intended for use ONLY if you have created custom -| config files. Otherwise, leave it blank. +| config files. Otherwise, leave it blank. | */ @@ -85,13 +85,13 @@ $autoload['config'] = array(); /* | ------------------------------------------------------------------- -| Auto-load Language files +| Auto-load Language files | ------------------------------------------------------------------- | Prototype: | | $autoload['language'] = array('lang1', 'lang2'); | -| NOTE: Do not include the "_lang" part of your file. For example +| NOTE: Do not include the "_lang" part of your file. For example | "codeigniter_lang.php" would be referenced as array('codeigniter'); | */ @@ -101,7 +101,7 @@ $autoload['language'] = array(); /* | ------------------------------------------------------------------- -| Auto-load Models +| Auto-load Models | ------------------------------------------------------------------- | Prototype: | diff --git a/application/config/config.php b/application/config/config.php index dc029a94b..bcda884f0 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -1,4 +1,4 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- @@ -34,7 +34,7 @@ $config['index_page'] = 'index.php'; |-------------------------------------------------------------------------- | | This item determines which server global should be used to retrieve the -| URI string. The default setting of 'AUTO' works for most servers. +| URI string. The default setting of 'AUTO' works for most servers. | If your links do not seem to work, try one of the other delicious flavors: | | 'AUTO' Default - auto detects @@ -88,7 +88,7 @@ $config['charset'] = 'UTF-8'; |-------------------------------------------------------------------------- | | If you would like to use the 'hooks' feature you must enable it by -| setting this variable to TRUE (boolean). See the user guide for details. +| setting this variable to TRUE (boolean). See the user guide for details. | */ $config['enable_hooks'] = FALSE; @@ -100,7 +100,7 @@ $config['enable_hooks'] = FALSE; |-------------------------------------------------------------------------- | | This item allows you to set the filename/classname prefix when extending -| native libraries. For more information please see the user guide: +| native libraries. For more information please see the user guide: | | http://codeigniter.com/user_guide/general/core_classes.html | http://codeigniter.com/user_guide/general/creating_libraries.html @@ -115,11 +115,11 @@ $config['subclass_prefix'] = 'MY_'; |-------------------------------------------------------------------------- | | This lets you specify with a regular expression which characters are permitted -| within your URLs. When someone tries to submit a URL with disallowed +| within your URLs. When someone tries to submit a URL with disallowed | characters they will get a warning message. | | As a security measure you are STRONGLY encouraged to restrict URLs to -| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_- +| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_- | | Leave blank to allow all characters -- but only if you are insane. | @@ -137,7 +137,7 @@ $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; | By default CodeIgniter uses search-engine friendly segment based URLs: | example.com/who/what/where/ | -| By default CodeIgniter enables access to the $_GET array. If for some +| By default CodeIgniter enables access to the $_GET array. If for some | reason you would like to disable it, set 'allow_get_array' to FALSE. | | You can optionally enable standard query string based URLs: @@ -210,7 +210,7 @@ $config['log_date_format'] = 'Y-m-d H:i:s'; |-------------------------------------------------------------------------- | | Leave this BLANK unless you would like to set something other than the default -| system/cache/ folder. Use a full server path with trailing slash. +| system/cache/ folder. Use a full server path with trailing slash. | */ $config['cache_path'] = ''; @@ -221,7 +221,7 @@ $config['cache_path'] = ''; |-------------------------------------------------------------------------- | | If you use the Encryption class or the Session class you -| MUST set an encryption key. See the user guide for info. +| MUST set an encryption key. See the user guide for info. | */ $config['encryption_key'] = ''; @@ -233,9 +233,9 @@ $config['encryption_key'] = ''; | | 'sess_cookie_name' = the name you want for the cookie | 'sess_expiration' = the number of SECONDS you want the session to last. -| by default sessions last 7200 seconds (two hours). Set to zero for no expiration. +| by default sessions last 7200 seconds (two hours). Set to zero for no expiration. | 'sess_expire_on_close' = Whether to cause the session to expire automatically -| when the browser window is closed +| when the browser window is closed | 'sess_encrypt_cookie' = Whether to encrypt the cookie | 'sess_use_database' = Whether to save the session data to a database | 'sess_table_name' = The name of the session database table @@ -261,12 +261,14 @@ $config['sess_time_to_update'] = 300; | | 'cookie_prefix' = Set a prefix if you need to avoid collisions | 'cookie_domain' = Set to .your-domain.com for site-wide cookies -| 'cookie_path' = Typically will be a forward slash +| 'cookie_path' = Typically will be a forward slash +| 'cookie_secure' = Cookies will only be set if a secure HTTPS connection exists. | */ -$config['cookie_prefix'] = ''; -$config['cookie_domain'] = ''; -$config['cookie_path'] = '/'; +$config['cookie_prefix'] = ""; +$config['cookie_domain'] = ""; +$config['cookie_path'] = "/"; +$config['cookie_secure'] = FALSE; /* |-------------------------------------------------------------------------- @@ -301,16 +303,16 @@ $config['csrf_expire'] = 7200; | Output Compression |-------------------------------------------------------------------------- | -| Enables Gzip output compression for faster page loads. When enabled, +| Enables Gzip output compression for faster page loads. When enabled, | the output class will test whether your server supports Gzip. | Even if it does, however, not all browsers support compression | so enable only if you are reasonably sure your visitors can handle it. | -| VERY IMPORTANT: If you are getting a blank page when compression is enabled it +| VERY IMPORTANT: If you are getting a blank page when compression is enabled it | means you are prematurely outputting something to your browser. It could -| even be a line of whitespace at the end of one of your scripts. For +| even be a line of whitespace at the end of one of your scripts. For | compression to work, nothing can be sent before the output buffer is called -| by the output class. Do not 'echo' any values with compression enabled. +| by the output class. Do not 'echo' any values with compression enabled. | */ $config['compress_output'] = FALSE; @@ -320,9 +322,9 @@ $config['compress_output'] = FALSE; | Master Time Reference |-------------------------------------------------------------------------- | -| Options are 'local' or 'gmt'. This pref tells the system whether to use +| Options are 'local' or 'gmt'. This pref tells the system whether to use | your server's local time as the master 'now' reference, or convert it to -| GMT. See the 'date helper' page of the user guide for information +| GMT. See the 'date helper' page of the user guide for information | regarding date handling. | */ @@ -336,7 +338,7 @@ $config['time_reference'] = 'local'; | | If your PHP installation does not have short tag support enabled CI | can rewrite the tags on-the-fly, enabling you to utilize that syntax -| in your view files. Options are TRUE or FALSE (boolean) +| in your view files. Options are TRUE or FALSE (boolean) | */ $config['rewrite_short_tags'] = FALSE; @@ -357,4 +359,4 @@ $config['proxy_ips'] = ''; /* End of file config.php */ -/* Location: ./application/config/config.php */
\ No newline at end of file +/* Location: ./application/config/config.php */ diff --git a/application/config/constants.php b/application/config/constants.php index 4a879d360..edaefe86b 100644 --- a/application/config/constants.php +++ b/application/config/constants.php @@ -1,4 +1,4 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- @@ -6,10 +6,10 @@ |-------------------------------------------------------------------------- | | These prefs are used when checking and setting modes when working -| with the file system. The defaults are fine on servers with proper +| with the file system. The defaults are fine on servers with proper | security, but you may wish (or even need) to change the values in | certain environments (Apache running a separate process for each -| user, PHP under CGI with Apache suEXEC, etc.). Octal values should +| user, PHP under CGI with Apache suEXEC, etc.). Octal values should | always be used to set the mode correctly. | */ diff --git a/application/config/database.php b/application/config/database.php index 24d611ac5..e77bf97df 100644 --- a/application/config/database.php +++ b/application/config/database.php @@ -1,4 +1,4 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS @@ -16,23 +16,29 @@ | ['username'] The username used to connect to the database | ['password'] The password used to connect to the database | ['database'] The name of the database you want to connect to -| ['dbdriver'] The database type. ie: mysql. Currently supported: - mysql, mysqli, postgre, odbc, mssql, sqlite, oci8 +| ['dbdriver'] The database type. ie: mysql. Currently supported: +| mysql, mysqli, postgre, odbc, mssql, sqlite, oci8 | ['dbprefix'] You can add an optional prefix, which will be added -| to the table name when using the Active Record class +| to the table name when using the Active Record class | ['pconnect'] TRUE/FALSE - Whether to use a persistent connection | ['db_debug'] TRUE/FALSE - Whether database errors should be displayed. | ['cache_on'] TRUE/FALSE - Enables/disables query caching | ['cachedir'] The path to the folder where cache files should be stored | ['char_set'] The character set used in communicating with the database | ['dbcollat'] The character collation used in communicating with the database +| NOTE: For MySQL and MySQLi databases, this setting is only used +| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7. +| There is an incompatibility in PHP with mysql_real_escape_string() which +| can make your site vulnerable to SQL injection if you are using a +| multi-byte character set and are running versions lower than these. +| Sites using Latin-1 or UTF-8 database character set and collation are unaffected. | ['swap_pre'] A default table prefix that should be swapped with the dbprefix | ['autoinit'] Whether or not to automatically initialize the database. | ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections | - good for ensuring strict SQL while developing | | The $active_group variable lets you choose which connection group to -| make active. By default there is only one group (the 'default' group). +| make active. By default there is only one group (the 'default' group). | | The $active_record variables lets you determine whether or not to load | the active record class diff --git a/application/config/foreign_chars.php b/application/config/foreign_chars.php index 14b0d7373..111fe5821 100644 --- a/application/config/foreign_chars.php +++ b/application/config/foreign_chars.php @@ -1,4 +1,4 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | Foreign Characters diff --git a/application/config/hooks.php b/application/config/hooks.php index a4ad2be6d..4b2666569 100644 --- a/application/config/hooks.php +++ b/application/config/hooks.php @@ -1,10 +1,10 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | Hooks | ------------------------------------------------------------------------- | This file lets you define "hooks" to extend CI without hacking the core -| files. Please see the user guide for info: +| files. Please see the user guide for info: | | http://codeigniter.com/user_guide/general/hooks.html | diff --git a/application/config/mimes.php b/application/config/mimes.php index de923c45a..e573ed061 100644 --- a/application/config/mimes.php +++ b/application/config/mimes.php @@ -1,9 +1,9 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | MIME TYPES | ------------------------------------------------------------------- -| This file contains an array of mime types. It is used by the +| This file contains an array of mime types. It is used by the | Upload class to help identify allowed file types. | */ @@ -51,12 +51,12 @@ $mimes = array( 'hqx' => 'application/mac-binhex40', 'tgz' => array('application/x-tar', 'application/x-gzip-compressed'), 'xhtml' => 'application/xhtml+xml', 'xht' => 'application/xhtml+xml', - 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'), + 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'), 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mpga' => 'audio/mpeg', 'mp2' => 'audio/mpeg', - 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3'), + 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'), 'aif' => 'audio/x-aiff', 'aiff' => 'audio/x-aiff', 'aifc' => 'audio/x-aiff', @@ -71,7 +71,7 @@ $mimes = array( 'hqx' => 'application/mac-binhex40', 'jpeg' => array('image/jpeg', 'image/pjpeg'), 'jpg' => array('image/jpeg', 'image/pjpeg'), 'jpe' => array('image/jpeg', 'image/pjpeg'), - 'png' => array('image/png', 'image/x-png'), + 'png' => array('image/png', 'image/x-png'), 'tiff' => 'image/tiff', 'tif' => 'image/tiff', 'css' => 'text/css', @@ -97,7 +97,8 @@ $mimes = array( 'hqx' => 'application/mac-binhex40', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'word' => array('application/msword', 'application/octet-stream'), 'xl' => 'application/excel', - 'eml' => 'message/rfc822' + 'eml' => 'message/rfc822', + 'json' => array('application/json', 'text/json') ); diff --git a/application/config/profiler.php b/application/config/profiler.php index f8a5b1a1e..b0f43b1d8 100644 --- a/application/config/profiler.php +++ b/application/config/profiler.php @@ -1,4 +1,4 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | Profiler Sections diff --git a/application/config/routes.php b/application/config/routes.php index 5f9a58343..480645c83 100644 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -1,4 +1,4 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING diff --git a/application/config/smileys.php b/application/config/smileys.php index 25d28b2c4..5b2964e24 100644 --- a/application/config/smileys.php +++ b/application/config/smileys.php @@ -1,10 +1,10 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | SMILEYS | ------------------------------------------------------------------- | This file contains an array of smileys for use with the emoticon helper. -| Individual images can be used to replace multiple simileys. For example: +| Individual images can be used to replace multiple simileys. For example: | :-) and :) use the same image replacement. | | Please see user guide for more info: diff --git a/application/config/user_agents.php b/application/config/user_agents.php index e2d3c3af0..3c018a357 100644 --- a/application/config/user_agents.php +++ b/application/config/user_agents.php @@ -1,11 +1,11 @@ -<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); +<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | USER AGENT TYPES | ------------------------------------------------------------------- -| This file contains four arrays of user agent data. It is used by the +| This file contains four arrays of user agent data. It is used by the | User Agent Class to help identify browser, platform, robot, and -| mobile device data. The array keys are used to identify the device +| mobile device data. The array keys are used to identify the device | and the array values are used to set the actual name of the item. | */ diff --git a/application/controllers/welcome.php b/application/controllers/welcome.php index 79689f012..65d55bffd 100644 --- a/application/controllers/welcome.php +++ b/application/controllers/welcome.php @@ -2,12 +2,22 @@ class Welcome extends CI_Controller { - function __construct() - { - parent::__construct(); - } - - function index() + /** + * Index Page for this controller. + * + * Maps to the following URL + * http://example.com/index.php/welcome + * - or - + * http://example.com/index.php/welcome/index + * - or - + * Since this controller is set as the default controller in + * config/routes.php, it's displayed at http://example.com/ + * + * So any other public methods not prefixed with an underscore will + * map to /index.php/welcome/<method_name> + * @see http://codeigniter.com/user_guide/general/urls.html + */ + public function index() { $this->load->view('welcome_message'); } diff --git a/application/errors/error_404.php b/application/errors/error_404.php index a304f4561..792726a67 100644 --- a/application/errors/error_404.php +++ b/application/errors/error_404.php @@ -1,32 +1,60 @@ -<html> +<!DOCTYPE html> +<html lang="en"> <head> <title>404 Page Not Found</title> <style type="text/css"> +::selection{ background-color: #E13300; color: white; } +::moz-selection{ background-color: #E13300; color: white; } +::webkit-selection{ background-color: #E13300; color: white; } + body { -background-color: #fff; -margin: 40px; -font-family: Lucida Grande, Verdana, Sans-serif; -font-size: 12px; -color: #000; + background-color: #fff; + margin: 40px; + font: 13px/20px normal Helvetica, Arial, sans-serif; + color: #4F5155; } -#content { -border: #999 1px solid; -background-color: #fff; -padding: 20px 20px 12px 20px; +a { + color: #003399; + background-color: transparent; + font-weight: normal; } h1 { -font-weight: normal; -font-size: 14px; -color: #990000; -margin: 0 0 4px 0; + color: #444; + background-color: transparent; + border-bottom: 1px solid #D0D0D0; + font-size: 19px; + font-weight: normal; + margin: 0 0 14px 0; + padding: 14px 15px 10px 15px; +} + +code { + font-family: Consolas, Monaco, Courier New, Courier, monospace; + font-size: 12px; + background-color: #f9f9f9; + border: 1px solid #D0D0D0; + color: #002166; + display: block; + margin: 14px 0 14px 0; + padding: 12px 10px 12px 10px; +} + +#container { + margin: 10px; + border: 1px solid #D0D0D0; + -webkit-box-shadow: 0 0 8px #D0D0D0; +} + +p { + margin: 12px 15px 12px 15px; } </style> </head> <body> - <div id="content"> + <div id="container"> <h1><?php echo $heading; ?></h1> <?php echo $message; ?> </div> diff --git a/application/errors/error_db.php b/application/errors/error_db.php index 181de960b..b396cda9f 100644 --- a/application/errors/error_db.php +++ b/application/errors/error_db.php @@ -1,32 +1,60 @@ -<html> +<!DOCTYPE html> +<html lang="en"> <head> <title>Database Error</title> <style type="text/css"> +::selection{ background-color: #E13300; color: white; } +::moz-selection{ background-color: #E13300; color: white; } +::webkit-selection{ background-color: #E13300; color: white; } + body { -background-color: #fff; -margin: 40px; -font-family: Lucida Grande, Verdana, Sans-serif; -font-size: 12px; -color: #000; + background-color: #fff; + margin: 40px; + font: 13px/20px normal Helvetica, Arial, sans-serif; + color: #4F5155; } -#content { -border: #999 1px solid; -background-color: #fff; -padding: 20px 20px 12px 20px; +a { + color: #003399; + background-color: transparent; + font-weight: normal; } h1 { -font-weight: normal; -font-size: 14px; -color: #990000; -margin: 0 0 4px 0; + color: #444; + background-color: transparent; + border-bottom: 1px solid #D0D0D0; + font-size: 19px; + font-weight: normal; + margin: 0 0 14px 0; + padding: 14px 15px 10px 15px; +} + +code { + font-family: Consolas, Monaco, Courier New, Courier, monospace; + font-size: 12px; + background-color: #f9f9f9; + border: 1px solid #D0D0D0; + color: #002166; + display: block; + margin: 14px 0 14px 0; + padding: 12px 10px 12px 10px; +} + +#container { + margin: 10px; + border: 1px solid #D0D0D0; + -webkit-box-shadow: 0 0 8px #D0D0D0; +} + +p { + margin: 12px 15px 12px 15px; } </style> </head> <body> - <div id="content"> + <div id="container"> <h1><?php echo $heading; ?></h1> <?php echo $message; ?> </div> diff --git a/application/errors/error_general.php b/application/errors/error_general.php index 7734d34c7..fd63ce2c5 100644 --- a/application/errors/error_general.php +++ b/application/errors/error_general.php @@ -1,32 +1,60 @@ -<html> +<!DOCTYPE html> +<html lang="en"> <head> <title>Error</title> <style type="text/css"> +::selection{ background-color: #E13300; color: white; } +::moz-selection{ background-color: #E13300; color: white; } +::webkit-selection{ background-color: #E13300; color: white; } + body { -background-color: #fff; -margin: 40px; -font-family: Lucida Grande, Verdana, Sans-serif; -font-size: 12px; -color: #000; + background-color: #fff; + margin: 40px; + font: 13px/20px normal Helvetica, Arial, sans-serif; + color: #4F5155; } -#content { -border: #999 1px solid; -background-color: #fff; -padding: 20px 20px 12px 20px; +a { + color: #003399; + background-color: transparent; + font-weight: normal; } h1 { -font-weight: normal; -font-size: 14px; -color: #990000; -margin: 0 0 4px 0; + color: #444; + background-color: transparent; + border-bottom: 1px solid #D0D0D0; + font-size: 19px; + font-weight: normal; + margin: 0 0 14px 0; + padding: 14px 15px 10px 15px; +} + +code { + font-family: Consolas, Monaco, Courier New, Courier, monospace; + font-size: 12px; + background-color: #f9f9f9; + border: 1px solid #D0D0D0; + color: #002166; + display: block; + margin: 14px 0 14px 0; + padding: 12px 10px 12px 10px; +} + +#container { + margin: 10px; + border: 1px solid #D0D0D0; + -webkit-box-shadow: 0 0 8px #D0D0D0; +} + +p { + margin: 12px 15px 12px 15px; } </style> </head> <body> - <div id="content"> + <div id="container"> <h1><?php echo $heading; ?></h1> <?php echo $message; ?> </div> diff --git a/application/errors/error_php.php b/application/errors/error_php.php index f085c2037..5f0c07bfd 100644 --- a/application/errors/error_php.php +++ b/application/errors/error_php.php @@ -3,7 +3,7 @@ <h4>A PHP Error was encountered</h4> <p>Severity: <?php echo $severity; ?></p> -<p>Message: <?php echo $message; ?></p> +<p>Message: <?php echo $message; ?></p> <p>Filename: <?php echo $filepath; ?></p> <p>Line Number: <?php echo $line; ?></p> diff --git a/application/views/welcome_message.php b/application/views/welcome_message.php index ca68fc101..0bf5a8d2e 100644 --- a/application/views/welcome_message.php +++ b/application/views/welcome_message.php @@ -4,61 +4,85 @@ <meta charset="utf-8"> <title>Welcome to CodeIgniter</title> -<style type="text/css"> + <style type="text/css"> -body { - background-color: #fff; - margin: 40px; - font-family: Lucida Grande, Verdana, Sans-serif; - font-size: 14px; - color: #4F5155; -} + ::selection{ background-color: #E13300; color: white; } + ::moz-selection{ background-color: #E13300; color: white; } + ::webkit-selection{ background-color: #E13300; color: white; } -a { - color: #003399; - background-color: transparent; - font-weight: normal; -} + body { + background-color: #fff; + margin: 40px; + font: 13px/20px normal Helvetica, Arial, sans-serif; + color: #4F5155; + } -h1 { - color: #444; - background-color: transparent; - border-bottom: 1px solid #D0D0D0; - font-size: 16px; - font-weight: bold; - margin: 24px 0 2px 0; - padding: 5px 0 6px 0; -} + a { + color: #003399; + background-color: transparent; + font-weight: normal; + } -code { - font-family: Monaco, Verdana, Sans-serif; - font-size: 12px; - background-color: #f9f9f9; - border: 1px solid #D0D0D0; - color: #002166; - display: block; - margin: 14px 0 14px 0; - padding: 12px 10px 12px 10px; -} + h1 { + color: #444; + background-color: transparent; + border-bottom: 1px solid #D0D0D0; + font-size: 19px; + font-weight: normal; + margin: 0 0 14px 0; + padding: 14px 15px 10px 15px; + } -</style> + code { + font-family: Consolas, Monaco, Courier New, Courier, monospace; + font-size: 12px; + background-color: #f9f9f9; + border: 1px solid #D0D0D0; + color: #002166; + display: block; + margin: 14px 0 14px 0; + padding: 12px 10px 12px 10px; + } + + #body{ + margin: 0 15px 0 15px; + } + + p.footer{ + text-align: right; + font-size: 11px; + border-top: 1px solid #D0D0D0; + line-height: 32px; + padding: 0 10px 0 10px; + margin: 20px 0 0 0; + } + + #container{ + margin: 10px; + border: 1px solid #D0D0D0; + -webkit-box-shadow: 0 0 8px #D0D0D0; + } + </style> </head> <body> -<h1>Welcome to CodeIgniter!</h1> - -<p>The page you are looking at is being generated dynamically by CodeIgniter.</p> +<div id="container"> + <h1>Welcome to CodeIgniter!</h1> -<p>If you would like to edit this page you'll find it located at:</p> -<code>application/views/welcome_message.php</code> + <div id="body"> + <p>The page you are looking at is being generated dynamically by CodeIgniter.</p> -<p>The corresponding controller for this page is found at:</p> -<code>application/controllers/welcome.php</code> + <p>If you would like to edit this page you'll find it located at:</p> + <code>application/views/welcome_message.php</code> -<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p> + <p>The corresponding controller for this page is found at:</p> + <code>application/controllers/welcome.php</code> + <p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p> + </div> -<p><br />Page rendered in {elapsed_time} seconds</p> + <p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p> +</div> </body> </html>
\ No newline at end of file |