@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>linux_monitoring</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>com.aptana.editor.php.aptanaPhpBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>com.aptana.ide.core.unifiedBuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>com.aptana.editor.php.phpNature</nature> |
||||
<nature>com.aptana.projects.webnature</nature> |
||||
</natures> |
||||
</projectDescription> |
@ -0,0 +1 @@
|
||||
This file was created by JetBrains PhpStorm 6.0.3 for binding GitHub repository |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,92 @@
|
||||
<?php |
||||
|
||||
if (!defined('BASEPATH')) |
||||
exit('No direct script access allowed'); |
||||
/* |
||||
| ------------------------------------------------------------------- |
||||
| Aauth Config |
||||
| ------------------------------------------------------------------- |
||||
| A library Basic Authorization for CodeIgniter 2.x |
||||
*/ |
||||
|
||||
|
||||
// Config variables |
||||
|
||||
$config['aauth'] = array( |
||||
'login_page' => '/login', |
||||
// if user don't have permisssion to see the page he will be |
||||
// redirected the page spesificed below |
||||
'no_permission' => '/', |
||||
//name of admin group |
||||
'admin_group' => 'admin', |
||||
//the new user is added in it |
||||
'default_group' => 'default', |
||||
// public group , people who not logged in |
||||
'public_group' => 'public', |
||||
// The table which contains users |
||||
'users' => 'aauth_users', |
||||
// the group table |
||||
'groups' => 'aauth_groups', |
||||
// |
||||
'user_to_group' => 'aauth_user_to_group', |
||||
// permitions |
||||
'perms' => 'aauth_perms', |
||||
// perms to group |
||||
'perm_to_group' => 'aauth_perm_to_group', |
||||
// pm table |
||||
'pm' => 'aauth_pm', |
||||
|
||||
|
||||
// remember time // 60*60*24*3 (default 3 days) |
||||
'remember' => ' +3 days', |
||||
|
||||
// pasword maximum char long (min is 4) |
||||
'max' => 13, |
||||
|
||||
// it limits login attempts |
||||
'dos_protection' => true, |
||||
|
||||
// login attempts time interval |
||||
// default 10 times in one minute |
||||
'try' => 10, |
||||
|
||||
// system email. |
||||
'email' => 'emre@emreakay.com', |
||||
'name' => 'Emre Akay', |
||||
'subject' => 'Account Vertification', |
||||
'reset' => 'Pasword Reset', |
||||
|
||||
// to register email verifitaion need? true / false |
||||
'verification' => true, |
||||
|
||||
// error mesages |
||||
// change to your language |
||||
|
||||
'email_taken' => 'E-mail is already taken', |
||||
'email_invalid' => 'E-mail invalid', |
||||
'pass_invalid' => 'Password invalid', |
||||
'name_invalid' => 'Name invalid', |
||||
'code' => 'Your code is: ', |
||||
'link' => ' or you can copy and paste falowing link http://localhost/vert/', |
||||
|
||||
'remind' => 'If you want to reset your password click the copy and go the link below http://localhost/reset/', |
||||
'new_password' => 'Your new password is : ', |
||||
|
||||
// no access |
||||
'no_access' => 'You dont have access.', |
||||
|
||||
// |
||||
'wrong' => 'E-mail or Password is wrong.', |
||||
'exceeded' => 'Login try limit exceeded.', |
||||
'no_user' => 'User not Exist', |
||||
'group_exist' => 'Group already exists', |
||||
|
||||
//info |
||||
'already_member' => 'User already member of group', |
||||
'already_perm' => 'Permission name already existed' |
||||
|
||||
); |
||||
|
||||
|
||||
/* End of file autoload.php */ |
||||
/* Location: ./application/config/autoload.php */ |
@ -0,0 +1,116 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
||||
/* |
||||
| ------------------------------------------------------------------- |
||||
| AUTO-LOADER |
||||
| ------------------------------------------------------------------- |
||||
| This file specifies which systems should be loaded by default. |
||||
| |
||||
| 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 |
||||
| you globally define which systems you would like loaded with every |
||||
| request. |
||||
| |
||||
| ------------------------------------------------------------------- |
||||
| Instructions |
||||
| ------------------------------------------------------------------- |
||||
| |
||||
| These are the things you can load automatically: |
||||
| |
||||
| 1. Packages |
||||
| 2. Libraries |
||||
| 3. Helper files |
||||
| 4. Custom config files |
||||
| 5. Language files |
||||
| 6. Models |
||||
| |
||||
*/ |
||||
|
||||
/* |
||||
| ------------------------------------------------------------------- |
||||
| Auto-load Packges |
||||
| ------------------------------------------------------------------- |
||||
| Prototype: |
||||
| |
||||
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared'); |
||||
| |
||||
*/ |
||||
|
||||
$autoload['packages'] = array(); |
||||
|
||||
|
||||
/* |
||||
| ------------------------------------------------------------------- |
||||
| Auto-load Libraries |
||||
| ------------------------------------------------------------------- |
||||
| These are the classes located in the system/libraries folder |
||||
| or in your application/libraries folder. |
||||
| |
||||
| Prototype: |
||||
| |
||||
| $autoload['libraries'] = array('database', 'session', 'xmlrpc'); |
||||
*/ |
||||
|
||||
$autoload['libraries'] = array('database','session'); |
||||
|
||||
|
||||
/* |
||||
| ------------------------------------------------------------------- |
||||
| Auto-load Helper Files |
||||
| ------------------------------------------------------------------- |
||||
| Prototype: |
||||
| |
||||
| $autoload['helper'] = array('url', 'file'); |
||||
*/ |
||||
|
||||
$autoload['helper'] = array(); |
||||
|
||||
|
||||
/* |
||||
| ------------------------------------------------------------------- |
||||
| 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. |
||||
| |
||||
*/ |
||||
|
||||
$autoload['config'] = array(); |
||||
|
||||
|
||||
/* |
||||
| ------------------------------------------------------------------- |
||||
| Auto-load Language files |
||||
| ------------------------------------------------------------------- |
||||
| Prototype: |
||||
| |
||||
| $autoload['language'] = array('lang1', 'lang2'); |
||||
| |
||||
| NOTE: Do not include the "_lang" part of your file. For example |
||||
| "codeigniter_lang.php" would be referenced as array('codeigniter'); |
||||
| |
||||
*/ |
||||
|
||||
$autoload['language'] = array(); |
||||
|
||||
|
||||
/* |
||||
| ------------------------------------------------------------------- |
||||
| Auto-load Models |
||||
| ------------------------------------------------------------------- |
||||
| Prototype: |
||||
| |
||||
| $autoload['model'] = array('model1', 'model2'); |
||||
| |
||||
*/ |
||||
|
||||
$autoload['model'] = array(); |
||||
|
||||
|
||||
/* End of file autoload.php */ |
||||
/* Location: ./application/config/autoload.php */ |
@ -0,0 +1,362 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Base Site URL |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| URL to your CodeIgniter root. Typically this will be your base URL, |
||||
| WITH a trailing slash: |
||||
| |
||||
| http://example.com/ |
||||
| |
||||
| If this is not set then CodeIgniter will guess the protocol, domain and |
||||
| path to your installation. |
||||
| |
||||
*/ |
||||
$config['base_url'] = 'http://localhost/aauth2'; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Index File |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| Typically this will be your index.php file, unless you've renamed it to |
||||
| something else. If you are using mod_rewrite to remove the page set this |
||||
| variable so that it is blank. |
||||
| |
||||
*/ |
||||
$config['index_page'] = 'index.php'; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| URI PROTOCOL |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| This item determines which server global should be used to retrieve the |
||||
| 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 |
||||
| 'PATH_INFO' Uses the PATH_INFO |
||||
| 'QUERY_STRING' Uses the QUERY_STRING |
||||
| 'REQUEST_URI' Uses the REQUEST_URI |
||||
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO |
||||
| |
||||
*/ |
||||
$config['uri_protocol'] = 'AUTO'; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| URL suffix |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter. |
||||
| For more information please see the user guide: |
||||
| |
||||
| http://codeigniter.com/user_guide/general/urls.html |
||||
*/ |
||||
|
||||
$config['url_suffix'] = ''; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Default Language |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| This determines which set of language files should be used. Make sure |
||||
| there is an available translation if you intend to use something other |
||||
| than english. |
||||
| |
||||
*/ |
||||
$config['language'] = 'english'; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Default Character Set |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| This determines which character set is used by default in various methods |
||||
| that require a character set to be provided. |
||||
| |
||||
*/ |
||||
$config['charset'] = 'UTF-8'; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Enable/Disable System Hooks |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| 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. |
||||
| |
||||
*/ |
||||
$config['enable_hooks'] = FALSE; |
||||
|
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Class Extension Prefix |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| This item allows you to set the filename/classname prefix when extending |
||||
| 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 |
||||
| |
||||
*/ |
||||
$config['subclass_prefix'] = 'MY_'; |
||||
|
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Allowed URL Characters |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| This lets you specify with a regular expression which characters are permitted |
||||
| 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~%.:_- |
||||
| |
||||
| Leave blank to allow all characters -- but only if you are insane. |
||||
| |
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!! |
||||
| |
||||
*/ |
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; |
||||
|
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Enable Query Strings |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| 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 |
||||
| reason you would like to disable it, set 'allow_get_array' to FALSE. |
||||
| |
||||
| You can optionally enable standard query string based URLs: |
||||
| example.com?who=me&what=something&where=here |
||||
| |
||||
| Options are: TRUE or FALSE (boolean) |
||||
| |
||||
| The other items let you set the query string 'words' that will |
||||
| invoke your controllers and its functions: |
||||
| example.com/index.php?c=controller&m=function |
||||
| |
||||
| Please note that some of the helpers won't work as expected when |
||||
| this feature is enabled, since CodeIgniter is designed primarily to |
||||
| use segment based URLs. |
||||
| |
||||
*/ |
||||
$config['allow_get_array'] = TRUE; |
||||
$config['enable_query_strings'] = FALSE; |
||||
$config['controller_trigger'] = 'c'; |
||||
$config['function_trigger'] = 'm'; |
||||
$config['directory_trigger'] = 'd'; // experimental not currently in use |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Error Logging Threshold |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| If you have enabled error logging, you can set an error threshold to |
||||
| determine what gets logged. Threshold options are: |
||||
| You can enable error logging by setting a threshold over zero. The |
||||
| threshold determines what gets logged. Threshold options are: |
||||
| |
||||
| 0 = Disables logging, Error logging TURNED OFF |
||||
| 1 = Error Messages (including PHP errors) |
||||
| 2 = Debug Messages |
||||
| 3 = Informational Messages |
||||
| 4 = All Messages |
||||
| |
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise |
||||
| your log files will fill up very fast. |
||||
| |
||||
*/ |
||||
$config['log_threshold'] = 0; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Error Logging Directory Path |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| Leave this BLANK unless you would like to set something other than the default |
||||
| application/logs/ folder. Use a full server path with trailing slash. |
||||
| |
||||
*/ |
||||
$config['log_path'] = ''; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Date Format for Logs |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| Each item that is logged has an associated date. You can use PHP date |
||||
| codes to set your own date formatting |
||||
| |
||||
*/ |
||||
$config['log_date_format'] = 'Y-m-d H:i:s'; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Cache Directory Path |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| 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. |
||||
| |
||||
*/ |
||||
$config['cache_path'] = ''; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Encryption Key |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| If you use the Encryption class or the Session class you |
||||
| MUST set an encryption key. See the user guide for info. |
||||
| |
||||
*/ |
||||
$config['encryption_key'] = 'emrexakay'; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Session Variables |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| '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. |
||||
| 'sess_expire_on_close' = Whether to cause the session to expire automatically |
||||
| 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 |
||||
| 'sess_match_ip' = Whether to match the user's IP address when reading the session data |
||||
| 'sess_match_useragent' = Whether to match the User Agent when reading the session data |
||||
| 'sess_time_to_update' = how many seconds between CI refreshing Session Information |
||||
| |
||||
*/ |
||||
$config['sess_cookie_name'] = 'ci_session'; |
||||
$config['sess_expiration'] = 7200; |
||||
$config['sess_expire_on_close'] = FALSE; |
||||
$config['sess_encrypt_cookie'] = FALSE; |
||||
$config['sess_use_database'] = FALSE; |
||||
$config['sess_table_name'] = 'ci_sessions'; |
||||
$config['sess_match_ip'] = FALSE; |
||||
$config['sess_match_useragent'] = TRUE; |
||||
$config['sess_time_to_update'] = 300; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Cookie Related Variables |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| '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_secure' = Cookies will only be set if a secure HTTPS connection exists. |
||||
| |
||||
*/ |
||||
$config['cookie_prefix'] = ""; |
||||
$config['cookie_domain'] = ""; |
||||
$config['cookie_path'] = "/"; |
||||
$config['cookie_secure'] = FALSE; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Global XSS Filtering |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| Determines whether the XSS filter is always active when GET, POST or |
||||
| COOKIE data is encountered |
||||
| |
||||
*/ |
||||
$config['global_xss_filtering'] = TRUE; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Cross Site Request Forgery |
||||
|-------------------------------------------------------------------------- |
||||
| Enables a CSRF cookie token to be set. When set to TRUE, token will be |
||||
| checked on a submitted form. If you are accepting user data, it is strongly |
||||
| recommended CSRF protection be enabled. |
||||
| |
||||
| 'csrf_token_name' = The token name |
||||
| 'csrf_cookie_name' = The cookie name |
||||
| 'csrf_expire' = The number in seconds the token should expire. |
||||
*/ |
||||
$config['csrf_protection'] = FALSE; |
||||
$config['csrf_token_name'] = 'csrf_test_name'; |
||||
$config['csrf_cookie_name'] = 'csrf_cookie_name'; |
||||
$config['csrf_expire'] = 7200; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Output Compression |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| 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 |
||||
| 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 |
||||
| 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. |
||||
| |
||||
*/ |
||||
$config['compress_output'] = FALSE; |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Master Time Reference |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| 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 |
||||
| regarding date handling. |
||||
| |
||||
*/ |
||||
$config['time_reference'] = 'local'; |
||||
|
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Rewrite PHP Short Tags |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| 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) |
||||
| |
||||
*/ |
||||
$config['rewrite_short_tags'] = FALSE; |
||||
|
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Reverse Proxy IPs |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| If your server is behind a reverse proxy, you must whitelist the proxy IP |
||||
| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR |
||||
| header in order to properly identify the visitor's IP address. |
||||
| Comma-delimited, e.g. '10.0.1.200,10.0.1.201' |
||||
| |
||||
*/ |
||||
$config['proxy_ips'] = ''; |
||||
|
||||
|
||||
/* End of file config.php */ |
||||
/* Location: ./application/config/config.php */ |
@ -0,0 +1,41 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| File and Directory Modes |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| These prefs are used when checking and setting modes when working |
||||
| 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 |
||||
| always be used to set the mode correctly. |
||||
| |
||||
*/ |
||||
define('FILE_READ_MODE', 0644); |
||||
define('FILE_WRITE_MODE', 0666); |
||||
define('DIR_READ_MODE', 0755); |
||||
define('DIR_WRITE_MODE', 0777); |
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| File Stream Modes |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| These modes are used when working with fopen()/popen() |
||||
| |
||||
*/ |
||||
|
||||
define('FOPEN_READ', 'rb'); |
||||
define('FOPEN_READ_WRITE', 'r+b'); |
||||
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care |
||||
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care |
||||
define('FOPEN_WRITE_CREATE', 'ab'); |
||||
define('FOPEN_READ_WRITE_CREATE', 'a+b'); |
||||
define('FOPEN_WRITE_CREATE_STRICT', 'xb'); |
||||
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b'); |
||||
|
||||
|
||||
/* End of file constants.php */ |
||||
/* Location: ./application/config/constants.php */ |
@ -0,0 +1,69 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
||||
/* |
||||
| ------------------------------------------------------------------- |
||||
| DATABASE CONNECTIVITY SETTINGS |
||||
| ------------------------------------------------------------------- |
||||
| This file will contain the settings needed to access your database. |
||||
| |
||||
| For complete instructions please consult the 'Database Connection' |
||||
| page of the User Guide. |
||||
| |
||||
| ------------------------------------------------------------------- |
||||
| EXPLANATION OF VARIABLES |
||||
| ------------------------------------------------------------------- |
||||
| |
||||
| ['hostname'] The hostname of your database server. |
||||
| ['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 |
||||
| ['dbprefix'] You can add an optional prefix, which will be added |
||||
| 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 |
||||
| (and in table creation queries made with DB Forge). |
||||
| 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). |
||||
| |
||||
| The $active_record variables lets you determine whether or not to load |
||||
| the active record class |
||||
*/ |
||||
|
||||
$active_group = 'default'; |
||||
$active_record = TRUE; |
||||
|
||||
$db['default']['hostname'] = 'localhost'; |
||||
$db['default']['username'] = 'root'; |
||||
$db['default']['password'] = 'root'; |
||||
$db['default']['database'] = 'aauth2'; |
||||
$db['default']['dbdriver'] = 'mysql'; |
||||
$db['default']['dbprefix'] = ''; |
||||
$db['default']['pconnect'] = TRUE; |
||||
$db['default']['db_debug'] = TRUE; |
||||
$db['default']['cache_on'] = FALSE; |
||||
$db['default']['cachedir'] = ''; |
||||
$db['default']['char_set'] = 'utf8'; |
||||
$db['default']['dbcollat'] = 'utf8_general_ci'; |
||||
$db['default']['swap_pre'] = ''; |
||||
$db['default']['autoinit'] = TRUE; |
||||
$db['default']['stricton'] = FALSE; |
||||
|
||||
|
||||
/* End of file database.php */ |
||||
/* Location: ./application/config/database.php */ |
@ -0,0 +1,15 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
||||
|
||||
$_doctypes = array( |
||||
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', |
||||
'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">', |
||||
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', |
||||
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">', |
||||
'html5' => '<!DOCTYPE html>', |
||||
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">', |
||||
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">', |
||||
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">' |
||||
); |
||||
|
||||
/* End of file doctypes.php */ |
||||
/* Location: ./application/config/doctypes.php */ |
@ -0,0 +1,64 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
||||
/* |
||||
| ------------------------------------------------------------------- |
||||
| Foreign Characters |
||||
| ------------------------------------------------------------------- |
||||
| This file contains an array of foreign characters for transliteration |
||||
| conversion used by the Text helper |
||||
| |
||||
*/ |
||||
$foreign_characters = array( |
||||
'/ä|æ|ǽ/' => 'ae', |
||||
'/ö|œ/' => 'oe', |
||||
'/ü/' => 'ue', |
||||
'/Ä/' => 'Ae', |
||||
'/Ü/' => 'Ue', |
||||
'/Ö/' => 'Oe', |
||||
'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ/' => 'A', |
||||
'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª/' => 'a', |
||||
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C', |
||||
'/ç|ć|ĉ|ċ|č/' => 'c', |
||||
'/Ð|Ď|Đ/' => 'D', |
||||
'/ð|ď|đ/' => 'd', |
||||
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E', |
||||
'/è|é|ê|ë|ē|ĕ|ė|ę|ě/' => 'e', |
||||
'/Ĝ|Ğ|Ġ|Ģ/' => 'G', |
||||
'/ĝ|ğ|ġ|ģ/' => 'g', |
||||
'/Ĥ|Ħ/' => 'H', |
||||
'/ĥ|ħ/' => 'h', |
||||
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ/' => 'I', |
||||
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı/' => 'i', |
||||
'/Ĵ/' => 'J', |
||||
'/ĵ/' => 'j', |
||||
'/Ķ/' => 'K', |
||||
'/ķ/' => 'k', |
||||
'/Ĺ|Ļ|Ľ|Ŀ|Ł/' => 'L', |
||||
'/ĺ|ļ|ľ|ŀ|ł/' => 'l', |
||||
'/Ñ|Ń|Ņ|Ň/' => 'N', |
||||
'/ñ|ń|ņ|ň|ʼn/' => 'n', |
||||
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ/' => 'O', |
||||
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º/' => 'o', |
||||
'/Ŕ|Ŗ|Ř/' => 'R', |
||||
'/ŕ|ŗ|ř/' => 'r', |
||||
'/Ś|Ŝ|Ş|Š/' => 'S', |
||||
'/ś|ŝ|ş|š|ſ/' => 's', |
||||
'/Ţ|Ť|Ŧ/' => 'T', |
||||
'/ţ|ť|ŧ/' => 't', |
||||
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U', |
||||
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ/' => 'u', |
||||
'/Ý|Ÿ|Ŷ/' => 'Y', |
||||
'/ý|ÿ|ŷ/' => 'y', |
||||
'/Ŵ/' => 'W', |
||||
'/ŵ/' => 'w', |
||||
'/Ź|Ż|Ž/' => 'Z', |
||||
'/ź|ż|ž/' => 'z', |
||||
'/Æ|Ǽ/' => 'AE', |
||||
'/ß/'=> 'ss', |
||||
'/IJ/' => 'IJ', |
||||
'/ij/' => 'ij', |
||||
'/Œ/' => 'OE', |
||||
'/ƒ/' => 'f' |
||||
); |
||||
|
||||
/* End of file foreign_chars.php */ |
||||
/* Location: ./application/config/foreign_chars.php */ |
@ -0,0 +1,16 @@
|
||||
<?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: |
||||
| |
||||
| http://codeigniter.com/user_guide/general/hooks.html |
||||
| |
||||
*/ |
||||
|
||||
|
||||
|
||||
/* End of file hooks.php */ |
||||
/* Location: ./application/config/hooks.php */ |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,41 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); |
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Enable/Disable Migrations |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| Migrations are disabled by default but should be enabled |
||||
| whenever you intend to do a schema migration. |
||||
| |
||||
*/ |
||||
$config['migration_enabled'] = FALSE; |
||||
|
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Migrations version |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| This is used to set migration version that the file system should be on. |
||||
| If you run $this->migration->latest() this is the version that schema will |
||||
| be upgraded / downgraded to. |
||||
| |
||||
*/ |
||||
$config['migration_version'] = 0; |
||||
|
||||
|
||||
/* |
||||
|-------------------------------------------------------------------------- |
||||
| Migrations Path |
||||
|-------------------------------------------------------------------------- |
||||
| |
||||
| Path to your migrations folder. |
||||
| Typically, it will be within your application path. |
||||
| Also, writing permission is required within the migrations path. |
||||
| |
||||
*/ |
||||
$config['migration_path'] = APPPATH . 'migrations/'; |
||||
|
||||
|
||||
/* End of file migration.php */ |
||||
/* Location: ./application/config/migration.php */ |
@ -0,0 +1,106 @@
|
||||
<?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 |
||||
| Upload class to help identify allowed file types. |
||||
| |
||||
*/ |
||||
|
||||
$mimes = array( 'hqx' => 'application/mac-binhex40', |
||||
'cpt' => 'application/mac-compactpro', |
||||
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'), |
||||
'bin' => 'application/macbinary', |
||||
'dms' => 'application/octet-stream', |
||||
'lha' => 'application/octet-stream', |
||||
'lzh' => 'application/octet-stream', |
||||
'exe' => array('application/octet-stream', 'application/x-msdownload'), |
||||
'class' => 'application/octet-stream', |
||||
'psd' => 'application/x-photoshop', |
||||
'so' => 'application/octet-stream', |
||||
'sea' => 'application/octet-stream', |
||||
'dll' => 'application/octet-stream', |
||||
'oda' => 'application/oda', |
||||
'pdf' => array('application/pdf', 'application/x-download'), |
||||
'ai' => 'application/postscript', |
||||
'eps' => 'application/postscript', |
||||
'ps' => 'application/postscript', |
||||
'smi' => 'application/smil', |
||||
'smil' => 'application/smil', |
||||
'mif' => 'application/vnd.mif', |
||||
'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'), |
||||
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'), |
||||
'wbxml' => 'application/wbxml', |
||||
'wmlc' => 'application/wmlc', |
||||
'dcr' => 'application/x-director', |
||||
'dir' => 'application/x-director', |
||||
'dxr' => 'application/x-director', |
||||
'dvi' => 'application/x-dvi', |
||||
'gtar' => 'application/x-gtar', |
||||
'gz' => 'application/x-gzip', |
||||
'php' => 'application/x-httpd-php', |
||||
'php4' => 'application/x-httpd-php', |
||||
'php3' => 'application/x-httpd-php', |
||||
'phtml' => 'application/x-httpd-php', |
||||
'phps' => 'application/x-httpd-php-source', |
||||
'js' => 'application/x-javascript', |
||||
'swf' => 'application/x-shockwave-flash', |
||||
'sit' => 'application/x-stuffit', |
||||
'tar' => 'application/x-tar', |
||||
'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'), |
||||
'mid' => 'audio/midi', |
||||
'midi' => 'audio/midi', |
||||
'mpga' => 'audio/mpeg', |
||||
'mp2' => 'audio/mpeg', |
||||
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'), |
||||
'aif' => 'audio/x-aiff', |
||||
'aiff' => 'audio/x-aiff', |
||||
'aifc' => 'audio/x-aiff', |
||||
'ram' => 'audio/x-pn-realaudio', |
||||
'rm' => 'audio/x-pn-realaudio', |
||||
'rpm' => 'audio/x-pn-realaudio-plugin', |
||||
'ra' => 'audio/x-realaudio', |
||||
'rv' => 'video/vnd.rn-realvideo', |
||||
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'), |
||||
'bmp' => array('image/bmp', 'image/x-windows-bmp'), |
||||
'gif' => 'image/gif', |
||||
'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'), |
||||
'tiff' => 'image/tiff', |
||||
'tif' => 'image/tiff', |
||||
'css' => 'text/css', |
||||
'html' => 'text/html', |
||||
'htm' => 'text/html', |
||||
'shtml' => 'text/html', |
||||
'txt' => 'text/plain', |
||||
'text' => 'text/plain', |
||||
'log' => array('text/plain', 'text/x-log'), |
||||
'rtx' => 'text/richtext', |
||||
'rtf' => 'text/rtf', |
||||
'xml' => 'text/xml', |
||||
'xsl' => 'text/xml', |
||||
'mpeg' => 'video/mpeg', |
||||
'mpg' => 'video/mpeg', |
||||
'mpe' => 'video/mpeg', |
||||
'qt' => 'video/quicktime', |
||||
'mov' => 'video/quicktime', |
||||
'avi' => 'video/x-msvideo', |
||||
'movie' => 'video/x-sgi-movie', |
||||
'doc' => 'application/msword', |
||||
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip'), |
||||
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip'), |
||||
'word' => array('application/msword', 'application/octet-stream'), |
||||
'xl' => 'application/excel', |
||||
'eml' => 'message/rfc822', |
||||
'json' => array('application/json', 'text/json') |
||||
); |
||||
|
||||
|
||||
/* End of file mimes.php */ |
||||
/* Location: ./application/config/mimes.php */ |
@ -0,0 +1,17 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
||||
/* |
||||
| ------------------------------------------------------------------------- |
||||
| Profiler Sections |
||||
| ------------------------------------------------------------------------- |
||||
| This file lets you determine whether or not various sections of Profiler |
||||
| data are displayed when the Profiler is enabled. |
||||
| Please see the user guide for info: |
||||
| |
||||
| http://codeigniter.com/user_guide/general/profiling.html |
||||
| |
||||
*/ |
||||
|
||||
|
||||
|
||||
/* End of file profiler.php */ |
||||
/* Location: ./application/config/profiler.php */ |
@ -0,0 +1,46 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
||||
/* |
||||
| ------------------------------------------------------------------------- |
||||
| URI ROUTING |
||||
| ------------------------------------------------------------------------- |
||||
| This file lets you re-map URI requests to specific controller functions. |
||||
| |
||||
| Typically there is a one-to-one relationship between a URL string |
||||
| and its corresponding controller class/method. The segments in a |
||||
| URL normally follow this pattern: |
||||
| |
||||
| example.com/class/method/id/ |
||||
| |
||||
| In some instances, however, you may want to remap this relationship |
||||
| so that a different class/function is called than the one |
||||
| corresponding to the URL. |
||||
| |
||||
| Please see the user guide for complete details: |
||||
| |
||||
| http://codeigniter.com/user_guide/general/routing.html |
||||
| |
||||
| ------------------------------------------------------------------------- |
||||
| RESERVED ROUTES |
||||
| ------------------------------------------------------------------------- |
||||
| |
||||
| There area two reserved routes: |
||||
| |
||||
| $route['default_controller'] = 'welcome'; |
||||
| |
||||
| This route indicates which controller class should be loaded if the |
||||
| URI contains no data. In the above example, the "welcome" class |
||||
| would be loaded. |
||||
| |
||||
| $route['404_override'] = 'errors/page_missing'; |
||||
| |
||||
| This route will tell the Router what URI segments to use if those provided |
||||
| in the URL cannot be matched to a valid route. |
||||
| |
||||
*/ |
||||
|
||||
$route['default_controller'] = "welcome"; |
||||
$route['404_override'] = ''; |
||||
|
||||
|
||||
/* End of file routes.php */ |
||||
/* Location: ./application/config/routes.php */ |
@ -0,0 +1,66 @@
|
||||
<?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: |
||||
| :-) and :) use the same image replacement. |
||||
| |
||||
| Please see user guide for more info: |
||||
| http://codeigniter.com/user_guide/helpers/smiley_helper.html |
||||
| |
||||
*/ |
||||
|
||||
$smileys = array( |
||||
|
||||
// smiley image name width height alt |
||||
|
||||
':-)' => array('grin.gif', '19', '19', 'grin'), |
||||
':lol:' => array('lol.gif', '19', '19', 'LOL'), |
||||
':cheese:' => array('cheese.gif', '19', '19', 'cheese'), |
||||
':)' => array('smile.gif', '19', '19', 'smile'), |
||||
';-)' => array('wink.gif', '19', '19', 'wink'), |
||||
';)' => array('wink.gif', '19', '19', 'wink'), |
||||
':smirk:' => array('smirk.gif', '19', '19', 'smirk'), |
||||
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), |
||||
':-S' => array('confused.gif', '19', '19', 'confused'), |
||||
':wow:' => array('surprise.gif', '19', '19', 'surprised'), |
||||
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), |
||||
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), |
||||
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), |
||||
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), |
||||
':P' => array('raspberry.gif', '19', '19', 'raspberry'), |
||||
':blank:' => array('blank.gif', '19', '19', 'blank stare'), |
||||
':long:' => array('longface.gif', '19', '19', 'long face'), |
||||
':ohh:' => array('ohh.gif', '19', '19', 'ohh'), |
||||
':grrr:' => array('grrr.gif', '19', '19', 'grrr'), |
||||
':gulp:' => array('gulp.gif', '19', '19', 'gulp'), |
||||
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'), |
||||
':down:' => array('downer.gif', '19', '19', 'downer'), |
||||
':red:' => array('embarrassed.gif', '19', '19', 'red face'), |
||||
':sick:' => array('sick.gif', '19', '19', 'sick'), |
||||
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), |
||||
':-/' => array('hmm.gif', '19', '19', 'hmmm'), |
||||
'>:(' => array('mad.gif', '19', '19', 'mad'), |
||||
':mad:' => array('mad.gif', '19', '19', 'mad'), |
||||
'>:-(' => array('angry.gif', '19', '19', 'angry'), |
||||
':angry:' => array('angry.gif', '19', '19', 'angry'), |
||||
':zip:' => array('zip.gif', '19', '19', 'zipper'), |
||||
':kiss:' => array('kiss.gif', '19', '19', 'kiss'), |
||||
':ahhh:' => array('shock.gif', '19', '19', 'shock'), |
||||
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), |
||||
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), |
||||
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), |
||||
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), |
||||
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), |
||||
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), |
||||
':vampire:' => array('vampire.gif', '19', '19', 'vampire'), |
||||
':snake:' => array('snake.gif', '19', '19', 'snake'), |
||||
':exclaim:' => array('exclaim.gif', '19', '19', 'excaim'), |
||||
':question:' => array('question.gif', '19', '19', 'question') // no comma after last item |
||||
|
||||
); |
||||
|
||||
/* End of file smileys.php */ |
||||
/* Location: ./application/config/smileys.php */ |
@ -0,0 +1,178 @@
|
||||
<?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 |
||||
| User Agent Class to help identify browser, platform, robot, and |
||||
| 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. |
||||
| |
||||
*/ |
||||
|
||||
$platforms = array ( |
||||
'windows nt 6.0' => 'Windows Longhorn', |
||||
'windows nt 5.2' => 'Windows 2003', |
||||
'windows nt 5.0' => 'Windows 2000', |
||||
'windows nt 5.1' => 'Windows XP', |
||||
'windows nt 4.0' => 'Windows NT 4.0', |
||||
'winnt4.0' => 'Windows NT 4.0', |
||||
'winnt 4.0' => 'Windows NT', |
||||
'winnt' => 'Windows NT', |
||||
'windows 98' => 'Windows 98', |
||||
'win98' => 'Windows 98', |
||||
'windows 95' => 'Windows 95', |
||||
'win95' => 'Windows 95', |
||||
'windows' => 'Unknown Windows OS', |
||||
'os x' => 'Mac OS X', |
||||
'ppc mac' => 'Power PC Mac', |
||||
'freebsd' => 'FreeBSD', |
||||
'ppc' => 'Macintosh', |
||||
'linux' => 'Linux', |
||||
'debian' => 'Debian', |
||||
'sunos' => 'Sun Solaris', |
||||
'beos' => 'BeOS', |
||||
'apachebench' => 'ApacheBench', |
||||
'aix' => 'AIX', |
||||
'irix' => 'Irix', |
||||
'osf' => 'DEC OSF', |
||||
'hp-ux' => 'HP-UX', |
||||
'netbsd' => 'NetBSD', |
||||
'bsdi' => 'BSDi', |
||||
'openbsd' => 'OpenBSD', |
||||
'gnu' => 'GNU/Linux', |
||||
'unix' => 'Unknown Unix OS' |
||||
); |
||||
|
||||
|
||||
// The order of this array should NOT be changed. Many browsers return |
||||
// multiple browser types so we want to identify the sub-type first. |
||||
$browsers = array( |
||||
'Flock' => 'Flock', |
||||
'Chrome' => 'Chrome', |
||||
'Opera' => 'Opera', |
||||
'MSIE' => 'Internet Explorer', |
||||
'Internet Explorer' => 'Internet Explorer', |
||||
'Shiira' => 'Shiira', |
||||
'Firefox' => 'Firefox', |
||||
'Chimera' => 'Chimera', |
||||
'Phoenix' => 'Phoenix', |
||||
'Firebird' => 'Firebird', |
||||
'Camino' => 'Camino', |
||||
'Netscape' => 'Netscape', |
||||
'OmniWeb' => 'OmniWeb', |
||||
'Safari' => 'Safari', |
||||
'Mozilla' => 'Mozilla', |
||||
'Konqueror' => 'Konqueror', |
||||
'icab' => 'iCab', |
||||
'Lynx' => 'Lynx', |
||||
'Links' => 'Links', |
||||
'hotjava' => 'HotJava', |
||||
'amaya' => 'Amaya', |
||||
'IBrowse' => 'IBrowse' |
||||
); |
||||
|
||||
$mobiles = array( |
||||
// legacy array, old values commented out |
||||
'mobileexplorer' => 'Mobile Explorer', |
||||
// 'openwave' => 'Open Wave', |
||||
// 'opera mini' => 'Opera Mini', |
||||
// 'operamini' => 'Opera Mini', |
||||
// 'elaine' => 'Palm', |
||||
'palmsource' => 'Palm', |
||||
// 'digital paths' => 'Palm', |
||||
// 'avantgo' => 'Avantgo', |
||||
// 'xiino' => 'Xiino', |
||||
'palmscape' => 'Palmscape', |
||||
// 'nokia' => 'Nokia', |
||||
// 'ericsson' => 'Ericsson', |
||||
// 'blackberry' => 'BlackBerry', |
||||
// 'motorola' => 'Motorola' |
||||
|
||||
// Phones and Manufacturers |
||||
'motorola' => "Motorola", |
||||
'nokia' => "Nokia", |
||||
'palm' => "Palm", |
||||
'iphone' => "Apple iPhone", |
||||
'ipad' => "iPad", |
||||
'ipod' => "Apple iPod Touch", |
||||
'sony' => "Sony Ericsson", |
||||
'ericsson' => "Sony Ericsson", |
||||
'blackberry' => "BlackBerry", |
||||
'cocoon' => "O2 Cocoon", |
||||
'blazer' => "Treo", |
||||
'lg' => "LG", |
||||
'amoi' => "Amoi", |
||||
'xda' => "XDA", |
||||
'mda' => "MDA", |
||||
'vario' => "Vario", |
||||
'htc' => "HTC", |
||||
'samsung' => "Samsung", |
||||
'sharp' => "Sharp", |
||||
'sie-' => "Siemens", |
||||
'alcatel' => "Alcatel", |
||||
'benq' => "BenQ", |
||||
'ipaq' => "HP iPaq", |
||||
'mot-' => "Motorola", |
||||
'playstation portable' => "PlayStation Portable", |
||||
'hiptop' => "Danger Hiptop", |
||||
'nec-' => "NEC", |
||||
'panasonic' => "Panasonic", |
||||
'philips' => "Philips", |
||||
'sagem' => "Sagem", |
||||
'sanyo' => "Sanyo", |
||||
'spv' => "SPV", |
||||
'zte' => "ZTE", |
||||
'sendo' => "Sendo", |
||||
|
||||
// Operating Systems |
||||
'symbian' => "Symbian", |
||||
'SymbianOS' => "SymbianOS", |
||||
'elaine' => "Palm", |
||||
'palm' => "Palm", |
||||
'series60' => "Symbian S60", |
||||
'windows ce' => "Windows CE", |
||||
|
||||
// Browsers |
||||
'obigo' => "Obigo", |
||||
'netfront' => "Netfront Browser", |
||||
'openwave' => "Openwave Browser", |
||||
'mobilexplorer' => "Mobile Explorer", |
||||
'operamini' => "Opera Mini", |
||||
'opera mini' => "Opera Mini", |
||||
|
||||
// Other |
||||
'digital paths' => "Digital Paths", |
||||
'avantgo' => "AvantGo", |
||||
'xiino' => "Xiino", |
||||
'novarra' => "Novarra Transcoder", |
||||
'vodafone' => "Vodafone", |
||||
'docomo' => "NTT DoCoMo", |
||||
'o2' => "O2", |
||||
|
||||
// Fallback |
||||
'mobile' => "Generic Mobile", |
||||
'wireless' => "Generic Mobile", |
||||
'j2me' => "Generic Mobile", |
||||
'midp' => "Generic Mobile", |
||||
'cldc' => "Generic Mobile", |
||||
'up.link' => "Generic Mobile", |
||||
'up.browser' => "Generic Mobile", |
||||
'smartphone' => "Generic Mobile", |
||||
'cellphone' => "Generic Mobile" |
||||
); |
||||
|
||||
// There are hundreds of bots but these are the most common. |
||||
$robots = array( |
||||
'googlebot' => 'Googlebot', |
||||
'msnbot' => 'MSNBot', |
||||
'slurp' => 'Inktomi Slurp', |
||||
'yahoo' => 'Yahoo', |
||||
'askjeeves' => 'AskJeeves', |
||||
'fastcrawler' => 'FastCrawler', |
||||
'infoseek' => 'InfoSeek Robot 1.0', |
||||
'lycos' => 'Lycos' |
||||
); |
||||
|
||||
/* End of file user_agents.php */ |
||||
/* Location: ./application/config/user_agents.php */ |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,207 @@
|
||||
<?php |
||||
|
||||
if (!defined('BASEPATH')) |
||||
exit('No direct script access allowed'); |
||||
|
||||
/** |
||||
* |
||||
* @property Login_control $Login_control |
||||
* @property Aauth $aauth Description |
||||
*/ |
||||
class Login extends CI_Controller { |
||||
|
||||
public function __construct() { |
||||
parent::__construct(); |
||||
// Your own constructor code |
||||
$this->load->library("Aauth"); |
||||
} |
||||
|
||||
function deneme(){ |
||||
|
||||
echo "<pre>"; |
||||
|
||||
print_r( |
||||
//$this->aauth->is_admin() |
||||
//$this->aauth->get_user() |
||||
//$this->aauth->control_group("Mod") |
||||
//$this->aauth->control_perm(1) |
||||
//$this->aauth->list_groups() |
||||
//$this->aauth->list_users() |
||||
//$this->aauth->is_allowed(1) |
||||
//$this->aauth->is_admin() |
||||
//$this->aauth->create_perm("deneme",'defff') |
||||
//$this->aauth->update_perm(3,'dess','asd') |
||||
//$this->aauth->allow(1,1) |
||||
//$this->aauth->add_member(1,1) |
||||
//$this->aauth->deny(1,1) |
||||
//$this->aauth->mail() |
||||
//$this->aauth->create_user('seass@asds.com','asdasdsdsdasd','asd') |
||||
//$this->aauth->verify_user(11, 'MLUguBbXpd9Eeu5B') |
||||
//$this->aauth->remind_password('seass@asds.com') |
||||
//$this->aauth->reset_password(11,'0ghUM3oIC95p7uMa') |
||||
//$this->aauth->is_allowed(1) |
||||
//$this->aauth->control(1) |
||||
//$this->aauth->send_pm(1,2,'asd') |
||||
//$this->session->flashdata('d') |
||||
//$this->aauth->add_member(1,1) |
||||
$this->aauth->create_user('asd@asd.co','d') |
||||
|
||||
|
||||
); |
||||
|
||||
echo '<br>---- errrroor --- <br>'; |
||||
echo $this->aauth->get_errors(); |
||||
|
||||
echo '<br>---- infoviç --- <br>'; |
||||
echo $this->aauth->get_infos(); |
||||
|
||||
echo "</pre>"; |
||||
} |
||||
|
||||
function flash(){ |
||||
$d['a'] = 'asd'; |
||||
$d['3'] = 'asdasd'; |
||||
|
||||
$this->session->set_flashdata('d', $d); |
||||
|
||||
$d['4'] = 'tttt'; |
||||
|
||||
$this->session->set_flashdata('d', $d); |
||||
} |
||||
|
||||
|
||||
function ayar() { |
||||
|
||||
//echo $this->aauth->_get_login_attempts(4); |
||||
//echo $this->aauth->get_user_id('emre@emreakay.com'); |
||||
//$this->aauth->_increase_login_attempts('emre@emreakay.com'); |
||||
//$this->aauth->_reset_login_attempts(1); |
||||
} |
||||
|
||||
public function index() { |
||||
|
||||
if ($this->aauth->login('emre@emreakay.com', '111111', true)) |
||||
echo 'tmm'; |
||||
|
||||
//echo date("Y-m-d H:i:s"); |
||||
} |
||||
|
||||
|
||||
public function is_loggedin() { |
||||
|
||||
if ($this->aauth->is_loggedin()) |
||||
echo 'girdin'; |
||||
} |
||||
|
||||
public function logout() { |
||||
|
||||
$this->aauth->logout(); |
||||
} |
||||
|
||||
public function is_member() { |
||||
|
||||
if ($this->aauth->is_member('Admin')) |
||||
echo 'uye'; |
||||
} |
||||
|
||||
public function is_admin() { |
||||
|
||||
if ($this->aauth->is_member('Admin')) |
||||
echo 'adminovic'; |
||||
} |
||||
|
||||
function get_user_groups(){ |
||||
//print_r( $this->aauth->get_user_groups()); |
||||
|
||||
foreach($this->aauth->get_user_groups() as $a){ |
||||
|
||||
echo $a->id . " " . $a->name . "<br>"; |
||||
} |
||||
} |
||||
|
||||
public function group() { |
||||
|
||||
echo $this->aauth->get_group_id("Admin"); |
||||
} |
||||
|
||||
public function list_users() { |
||||
echo '<pre>'; |
||||
print_r($this->aauth->list_users("Mod")); |
||||
echo '</pre>'; |
||||
} |
||||
|
||||
public function list_groups() { |
||||
echo '<pre>'; |
||||
print_r($this->aauth->list_groups()); |
||||
echo '</pre>'; |
||||
} |
||||
|
||||
public function check_email() { |
||||
|
||||
if ($this->aauth->check_email("emre@emreakay.com")) |
||||
echo 'uygun '; |
||||
else |
||||
echo 'alindi '; |
||||
|
||||
echo $this->aauth->get_errors(); |
||||
|
||||
echo ' sadsad'; |
||||
} |
||||
|
||||
public function get_user() { |
||||
print_r($this->aauth->get_user(1)); |
||||
} |
||||
|
||||
function create_user() { |
||||
$a = $this->aauth->create_user("ess@as.com", "asd", "asdasd"); |
||||
|
||||
print_r($this->aauth->get_user($a)); |
||||
} |
||||
|
||||
public function is_banned() { |
||||
print_r($this->aauth->is_banned(6)); |
||||
} |
||||
|
||||
function ban_user() { |
||||
|
||||
$a = $this->aauth->ban_user(6); |
||||
|
||||
print_r($a); |
||||
} |
||||
|
||||
function update_user() { |
||||
$a = $this->aauth->update_user(3, "xxx@ssdas.com", "asd", "asdasd"); |
||||
|
||||
print_r($a); |
||||
} |
||||
|
||||
function create_group() { |
||||
|
||||
$a = $this->aauth->create_group("denemeee"); |
||||
} |
||||
|
||||
function delete_group() { |
||||
|
||||
$a = $this->aauth->delete_group(3); |
||||
} |
||||
|
||||
function update_group() { |
||||
|
||||
$a = $this->aauth->update_group(4, "zxxx"); |
||||
} |
||||
|
||||
function add_member() { |
||||
|
||||
$a = $this->aauth->add_member(1, 4); |
||||
} |
||||
|
||||
function fire_member() { |
||||
|
||||
$a = $this->aauth->fire_member(1, 4); |
||||
} |
||||
|
||||
|
||||
|
||||
} |
||||
|
||||
/* End of file welcome.php */ |
@ -0,0 +1,25 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
||||
|
||||
|
||||
/** |
||||
* |
||||
* |
||||
*/ |
||||
class Misal extends CI_Controller { |
||||
//put your code here |
||||
|
||||
public function index() { |
||||
|
||||
$this->load->model("Modelamca"); |
||||
echo $this->Modelamca->al(); |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo 'ea'; |
||||
} |
||||
|
||||
} |
||||
|
||||
/* End of file welcome.php */ |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,62 @@
|
||||
<!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: 13px/20px normal Helvetica, Arial, sans-serif; |
||||
color: #4F5155; |
||||
} |
||||
|
||||
a { |
||||
color: #003399; |
||||
background-color: transparent; |
||||
font-weight: normal; |
||||
} |
||||
|
||||
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; |
||||
} |
||||
|
||||
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="container"> |
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?> |
||||
</div> |
||||
</body> |
||||
</html> |
@ -0,0 +1,62 @@
|
||||
<!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: 13px/20px normal Helvetica, Arial, sans-serif; |
||||
color: #4F5155; |
||||
} |
||||
|
||||
a { |
||||
color: #003399; |
||||
background-color: transparent; |
||||
font-weight: normal; |
||||
} |
||||
|
||||
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; |
||||
} |
||||
|
||||
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="container"> |
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?> |
||||
</div> |
||||
</body> |
||||
</html> |
@ -0,0 +1,62 @@
|
||||
<!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: 13px/20px normal Helvetica, Arial, sans-serif; |
||||
color: #4F5155; |
||||
} |
||||
|
||||
a { |
||||
color: #003399; |
||||
background-color: transparent; |
||||
font-weight: normal; |
||||
} |
||||
|
||||
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; |
||||
} |
||||
|
||||
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="container"> |
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?> |
||||
</div> |
||||
</body> |
||||
</html> |
@ -0,0 +1,10 @@
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"> |
||||
|
||||
<h4>A PHP Error was encountered</h4> |
||||
|
||||
<p>Severity: <?php echo $severity; ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $filepath; ?></p>
|
||||
<p>Line Number: <?php echo $line; ?></p>
|
||||
|
||||
</div> |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,977 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); |
||||
|
||||
/** |
||||
* Description of Aauth |
||||
* |
||||
* @author Emre Akay |
||||
* |
||||
*/ |
||||
|
||||
/** |
||||
* Coming with v2 |
||||
* ------------- |
||||
* public id sini 0 a eşitleyip öyle kontrol yapabilirdik |
||||
* permission id yi permission parametre yap |
||||
* performance impr. // tablo isimlerini configden çekmesin |
||||
* captcha |
||||
* errorlar düzenlenecek hepisiiii |
||||
* mail fonksiyonları imtihanı |
||||
* |
||||
* Done staff |
||||
* ----------- |
||||
* tamam hacı // control die bi fonksiyon yazıp adam önce login omuşmu sonra da yetkisi var mı die kontrol et. yetkisi yoksa yönlendir ve aktivitiyi güncelle |
||||
* tamam hacı // grupları yetkilendirme, yetki ekleme, alma alow deny |
||||
* tamam gibi // Email and pass validation with form helper |
||||
* biraz oldu // laguage file support |
||||
* tamam // forget pass |
||||
* tamam // yetkilendirme sistemi |
||||
* tamam // Login e remember eklencek |
||||
* tamam // şifremi unuttum ve random string |
||||
* sanırım şimdi tamam // hatalı girişde otomatik süreli kilit |
||||
* ?? tamam heral // mail ile bilgilendirme |
||||
* tamam heral // activasyon emaili |
||||
* tamam gibi // yerine email check // username check |
||||
* tamamlandı // public erişimi |
||||
* tamam // Private messsages |
||||
* |
||||
*/ |
||||
//last activity check email |
||||
class Aauth { |
||||
|
||||
public $CI; |
||||
public $config_vars; |
||||
public $errors = array(); |
||||
public $infos = array(); |
||||
|
||||
public function __construct() { |
||||
|
||||
// delete all errors at first :) |
||||
$this->errors = array(); |
||||
|
||||
$this->CI = & get_instance(); |
||||
|
||||
// dependancies |
||||
$this->CI->load->library('session'); |
||||
$this->CI->load->library('email'); |
||||
$this->CI->load->database(); |
||||
$this->CI->load->helper('url'); |
||||
$this->CI->load->helper('string'); |
||||
$this->CI->load->helper('email'); |
||||
|
||||
// config/aauth.php |
||||
$this->CI->config->load('aauth'); |
||||
|
||||
// the array which came from aauth config file |
||||
// $this->config_vars |
||||
$this->config_vars = & $this->CI->config->item('aauth'); |
||||
} |
||||
|
||||
// most important function. it controls if a logged or public user has permiision |
||||
// if no permission, it stops script |
||||
// it also updates last activity every time function called |
||||
// if perm_par is not given just control user logged in or not |
||||
public function control($perm_par = false){ |
||||
|
||||
if(!$perm_par and !$this->is_loggedin()){ |
||||
echo $this->config_vars['no_access']; |
||||
die(); |
||||
} |
||||
|
||||
$perm_id = $this->get_perm_id($perm_par); |
||||
$this->update_activity(); |
||||
|
||||
if( !$this->is_allowed($perm_id) ) { |
||||
echo $this->config_vars['no_access']; |
||||
die(); |
||||
} |
||||
|
||||
} |
||||
|
||||
// open sessions |
||||
public function login($email, $pass, $remember = FALSE) { |
||||
|
||||
// remove cookies first |
||||
setcookie("user", "", time()-3600, '/'); |
||||
|
||||
if( !valid_email($email) or !ctype_alnum($pass) or strlen($pass) < 5 or strlen($pass) > $this->config_vars['max'] ) { |
||||
$this->error($this->config_vars['wrong']); |
||||
return false;} |
||||
|
||||
$query = $this->CI->db->where('email', $email); |
||||
$query = $this->CI->db->get($this->config_vars['users']); |
||||
|
||||
if ($query->num_rows() > 0) { |
||||
$row = $query->row(); |
||||
|
||||
if ( $this->config_vars['dos_protection'] and $row->last_login_attempt != '' and (strtotime("now") + 30 * $this->config_vars['try'] ) < strtotime($row->last_login_attempt) ) { |
||||
$this->error($this->config_vars['exceeded']); |
||||
return false; |
||||
} |
||||
} |
||||
|
||||
$query = null; |
||||
$query = $this->CI->db->where('email', $email); |
||||
|
||||
// database stores pasword md5 cripted |
||||
$query = $this->CI->db->where('pass', md5($pass)); |
||||
$query = $this->CI->db->where('banned', 0); |
||||
$query = $this->CI->db->get($this->config_vars['users']); |
||||
|
||||
$row = $query->row(); |
||||
|
||||
if ($query->num_rows() > 0) { |
||||
|
||||
// if email and pass matches |
||||
// create session |
||||
$data = array( |
||||
'id' => $row->id, |
||||
'name' => $row->name, |
||||
'email' => $row->email, |
||||
'loggedin' => TRUE |
||||
); |
||||
|
||||
$this->CI->session->set_userdata($data); |
||||
|
||||
// id remember selected |
||||
if ($remember){ |
||||
$expire = $this->config_vars['remember']; |
||||
$today = date("Y-m-d"); |
||||
$remember_date = date("Y-m-d", strtotime($today . $expire) ); |
||||
$random_string = random_string('alnum', 16); |
||||
$this->update_remember($row->id, $random_string, $remember_date ); |
||||
|
||||
setcookie( 'user', $row->id . "-" . $random_string, time() + 99*999*999, '/'); |
||||
} |
||||
|
||||
// update last login |
||||
$this->update_last_login($row->id); |
||||
$this->update_activity(); |
||||
|
||||
return TRUE; |
||||
|
||||
} else { |
||||
|
||||
$query = $this->CI->db->where('email', $email); |
||||
$query = $this->CI->db->get($this->config_vars['users']); |
||||
$row = $query->row(); |
||||
|
||||
if ($query->num_rows() > 0) { |
||||
|
||||
if ( $row->last_login_attempt == null or (strtotime("now") - 600) > strtotime($row->last_login_attempt) ) |
||||
{ |
||||
$data = array( |
||||
'last_login_attempt' => date("Y-m-d H:i:s") |
||||
); |
||||
|
||||
} else if (!($row->last_login_attempt != '' and (strtotime("now") + 30 * $this->config_vars['try'] ) < strtotime($row->last_login_attempt))) { |
||||
|
||||
$newtimestamp = strtotime("$row->last_login_attempt + 30 seconds"); |
||||
$data = array( |
||||
'last_login_attempt' => date( 'Y-m-d H:i:s', $newtimestamp ) |
||||
); |
||||
} |
||||
|
||||
$query = $this->CI->db->where('email', $email); |
||||
$this->CI->db->update($this->config_vars['users'], $data); |
||||
} |
||||
|
||||
$this->error($this->config_vars['wrong']); |
||||
return FALSE; |
||||
} |
||||
} |
||||
|
||||
// resets attempts |
||||
public function reset_login_attempts($user_id) { |
||||
|
||||
$data['last_login_attempts'] = null; |
||||
$this->CI->db->where('id', $user_id); |
||||
return $this->CI->db->update($this->config_vars['users'], $data); |
||||
} |
||||
|
||||
//do login with id |
||||
public function login_fast($user_id){ |
||||
$query = $this->CI->db->where('id', $user_id); |
||||
$query = $this->CI->db->where('banned', 0); |
||||
$query = $this->CI->db->get($this->config_vars['users']); |
||||
|
||||
$row = $query->row(); |
||||
|
||||
if ($query->num_rows() > 0) { |
||||
|
||||
// if id matches |
||||
// create session |
||||
$data = array( |
||||
'id' => $row->id, |
||||
'name' => $row->name, |
||||
'email' => $row->email, |
||||
'loggedin' => TRUE |
||||
); |
||||
|
||||
$this->CI->session->set_userdata($data); |
||||
} |
||||
} |
||||
|
||||
// do logout |
||||
public function logout() { |
||||
|
||||
return $this->CI->session->sess_destroy(); |
||||
} |
||||
|
||||
// sends private messages |
||||
public function send_pm($sender_id, $receiver_id, $message){ |
||||
|
||||
if ( !is_numeric($receiver_id) or $sender_id == $receiver_id ){ |
||||
return false; |
||||
} |
||||
|
||||
$query = $this->CI->db->where('id', $receiver_id); |
||||
$query = $this->CI->db->where('banned', 0); |
||||
|
||||
$query = $this->CI->db->get( $this->config_vars['users'] ); |
||||
|
||||
// if user not exist or banned |
||||
if ( $query->num_rows() < 1 ){ |
||||
$this->error($this->config_vars['no_user']); |
||||
return false; |
||||
} |
||||
|
||||
$data = array( |
||||
'sender_id' => $sender_id, |
||||
'receiver_id' => $receiver_id, |
||||
'message' => $message, |
||||
'date' => date('Y-m-d H:i:s') |
||||
); |
||||
|
||||
return $query = $this->CI->db->insert( $this->config_vars['pm'], $data ); |
||||
} |
||||
|
||||
// updates user's last activity date |
||||
public function update_activity($user_id = FALSE) { |
||||
|
||||
if ($user_id == FALSE) |
||||
$user_id = $this->CI->session->userdata('id'); |
||||
|
||||
if($user_id==false){return false;} |
||||
|
||||
$data['last_activity'] = date("Y-m-d H:i:s"); |
||||
|
||||
$query = $this->CI->db->where('id',$user_id); |
||||
return $this->CI->db->update($this->config_vars['users'], $data); |
||||
} |
||||
|
||||
|
||||
// updates last login date and time |
||||
public function update_last_login($user_id = FALSE) { |
||||
|
||||
if ($user_id == FALSE) |
||||
$user_id = $this->CI->session->userdata('id'); |
||||
|
||||
$data['last_login'] = date("Y-m-d H:i:s"); |
||||
|
||||
$this->CI->db->where('id', $user_id); |
||||
return $this->CI->db->update($this->config_vars['users'], $data); |
||||
} |
||||
|
||||
// updates remember time |
||||
public function update_remember($user_id, $expression=null, $expire=null) { |
||||
|
||||
$data['remember_time'] = $expire; |
||||
$data['remember_exp'] = $expression; |
||||
|
||||
$query = $this->CI->db->where('id',$user_id); |
||||
return $this->CI->db->update($this->config_vars['users'], $data); |
||||
} |
||||
|
||||
// checks if user logged in |
||||
// also checks remember |
||||
public function is_loggedin() { |
||||
|
||||
if($this->CI->session->userdata('loggedin')) |
||||
{return true;} |
||||
|
||||
else{ |
||||
if( !array_key_exists('user', $_COOKIE) ){ |
||||
return false; |
||||
}else{ |
||||
$cookie = explode('-', $_COOKIE['user']); |
||||
if(!is_numeric( $cookie[0] ) or strlen($cookie[1]) < 13 ){return false;} |
||||
else{ |
||||
$query = $this->CI->db->where('id', $cookie[0]); |
||||
$query = $this->CI->db->where('remember_exp', $cookie[1]); |
||||
$query = $this->CI->db->get($this->config_vars['users']); |
||||
|
||||
$row = $query->row(); |
||||
|
||||
if ($query->num_rows() < 1) { |
||||
$this->update_remember($cookie[0]); |
||||
return false; |
||||
}else{ |
||||
|
||||
if(strtotime($row->remember_time) > strtotime("now") ){ |
||||
$this->login_fast($cookie[0]); |
||||
return true; |
||||
} |
||||
// if time is expired |
||||
else { |
||||
return false; |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
} |
||||
return false; |
||||
} |
||||
|
||||
// group_name or group_id |
||||
public function is_member($group_par) { |
||||
|
||||
$user_id = $this->CI->session->userdata('id'); |
||||
|
||||
$this->get_group_id($group_par); |
||||
// group_id given |
||||
if (is_numeric($group_par)) { |
||||
|
||||
$query = $this->CI->db->where('user_id', $user_id); |
||||
$query = $this->CI->db->where('group_id', $group_par); |
||||
$query = $this->CI->db->get($this->config_vars['user_to_group']); |
||||
|
||||
$row = $query->row(); |
||||
|
||||
if ($query->num_rows() > 0) { |
||||
return TRUE; |
||||
} else { |
||||
return FALSE; |
||||
} |
||||
} |
||||
|
||||
// group_name given |
||||
else { |
||||
|
||||
$query = $this->CI->db->where('name', $group_par); |
||||
$query = $this->CI->db->get($this->config_vars['groups']); |
||||
|
||||
if ($query->num_rows() == 0) |
||||
return FALSE; |
||||
|
||||
$row = $query->row(); |
||||
return $this->is_member($row->id); |
||||
} |
||||
} |
||||
|
||||
public function get_group_name($group_id) { |
||||
|
||||
$query = $this->CI->db->where('id', $group_id); |
||||
$query = $this->CI->db->get($this->config_vars['groups']); |
||||
|
||||
if ($query->num_rows() == 0) |
||||
return FALSE; |
||||
|
||||
$row = $query->row(); |
||||
return $row->name; |
||||
} |
||||
|
||||
// takes group paramater (id or name) and returns group id. |
||||
public function get_group_id($group_par) { |
||||
|
||||
if( is_numeric($group_par) ) { return $group_par; } |
||||
|
||||
$query = $this->CI->db->where('name', $group_par); |
||||
$query = $this->CI->db->get($this->config_vars['groups']); |
||||
|
||||
if ($query->num_rows() == 0) |
||||
return FALSE; |
||||
|
||||
$row = $query->row(); |
||||
return $row->id; |
||||
} |
||||
|
||||
public function get_perm_id($perm_par) { |
||||
|
||||
if( is_numeric($perm_par) ) { return $perm_par; } |
||||
|
||||
$query = $this->CI->db->where('name', $perm_par); |
||||
$query = $this->CI->db->get($this->config_vars['perms']); |
||||
|
||||
if ($query->num_rows() == 0) |
||||
return false; |
||||
|
||||
$row = $query->row(); |
||||
return $row->id; |
||||
} |
||||
|
||||
// get user information as an array |
||||
// you can use sessions |
||||
public function get_user($user_id = FALSE) { |
||||
|
||||
if ($user_id == FALSE) |
||||
$user_id = $this->CI->session->userdata('id'); |
||||
|
||||
$query = $this->CI->db->where('id', $user_id); |
||||
$query = $this->CI->db->get($this->config_vars['users']); |
||||
|
||||
if ($query->num_rows() <= 0){ |
||||
$this->error($this->config_vars['no_user']); |
||||
return FALSE; |
||||
} |
||||
return $query->row(); |
||||
} |
||||
|
||||
public function get_user_id($email) { |
||||
|
||||
$query = $this->CI->db->where('email', $email); |
||||
$query = $this->CI->db->get($this->config_vars['users']); |
||||
|
||||
if ($query->num_rows() <= 0){ |
||||
$this->error($this->config_vars['no_user']); |
||||
return FALSE; |
||||
} |
||||
return $query->row()->id; |
||||
} |
||||
|
||||
public function get_user_groups($user_id = false){ |
||||
|
||||
if ($user_id==false) { $user_id = $this->CI->session->userdata('id'); } |
||||
|
||||
$this->CI->db->select('*'); |
||||
$this->CI->db->from($this->config_vars['user_to_group']); |
||||
$this->CI->db->join($this->config_vars['groups'], "id = group_id"); |
||||
$this->CI->db->where('user_id', $user_id); |
||||
|
||||
return $query = $this->CI->db->get()->result(); |
||||
} |
||||
|
||||
public function is_admin() { |
||||
return $this->is_member($this->config_vars['admin_group']); |
||||
} |
||||
|
||||
// check if user banned, return false if banned or not found user |
||||
public function is_banned($user_id) { |
||||
|
||||
$query = $this->CI->db->where('id', $user_id); |
||||
$query = $this->CI->db->where('banned', 1); |
||||
|
||||
$query = $this->CI->db->get($this->config_vars['users']); |
||||
|
||||
if ($query->num_rows() > 0) |
||||
return TRUE; |
||||
else |
||||
return FALSE; |
||||
} |
||||
|
||||
// checks if a group has permitions for given permition |
||||
// if group paramater is empty function checks all groups of current user |
||||
// admin authorized for anything |
||||
public function is_allowed($perm_id, $group_par=false){ |
||||
|
||||
if($group_par != false){ |
||||
|
||||
$group_par = $this->get_group_id($group_par); |
||||
|
||||
$query = $this->CI->db->where('perm_id', $perm_id); |
||||
$query = $this->CI->db->where('group_id', $group_par); |
||||
$query = $this->CI->db->get( $this->config_vars['perm_to_group'] ); |
||||
|
||||
if( $query->num_rows() > 0){ |
||||
return true; |
||||
} else { |
||||
return false; |
||||
} |
||||
} |
||||
else { |
||||
// all doors open to admin :) |
||||
if ( $this->is_admin( $this->CI->session->userdata('id')) ) {return true;} |
||||
|
||||
// if public is allowed |
||||
if( !$this->is_loggedin() and $this->is_allowed($perm_id, $this->config_vars['public_group']) ){ |
||||
return true; |
||||
} |
||||
|
||||
if (!$this->is_loggedin()){return false;} |
||||
|
||||
$group_pars = $this->list_groups( $this->CI->session->userdata('id') ); |
||||
|
||||
foreach ($group_pars as $g ){ |
||||
if($this->is_allowed($perm_id, $g -> id)){ |
||||
return true; |
||||
} |
||||
} |
||||
|
||||
|
||||
return false; |
||||
} |
||||
|
||||
} |
||||
|
||||
// return users as an object array |
||||
public function list_users($group_par = FALSE, $limit = FALSE, $offset = FALSE, $include_banneds = FALSE) { |
||||
|
||||
// if group_par is given |
||||
if ($group_par != FALSE) { |
||||
|
||||
$group_par = $this->get_group_id($group_par); |
||||
$this->CI->db->select('*') |
||||
->from($this->config_vars['users']) |
||||
->join($this->config_vars['user_to_group'], $this->config_vars['users'] . ".id = " . $this->config_vars['user_to_group'] . ".user_id") |
||||
->where($this->config_vars['user_to_group'] . ".group_id", $group_par); |
||||
|
||||
// if group_par is not given, lists all users |
||||
} else { |
||||
|
||||
$this->CI->db->select('*') |
||||
->from($this->config_vars['users']); |
||||
} |
||||
|
||||
// banneds |
||||
if (!$include_banneds) { |
||||
$this->CI->db->where('banned != ', 1); |
||||
} |
||||
|
||||
|
||||
// limit |
||||
if ($limit) { |
||||
|
||||
if ($offset == FALSE) |
||||
$this->CI->db->limit($limit); |
||||
else |
||||
$this->CI->db->limit($limit, $offset); |
||||
} |
||||
|
||||
|
||||
$query = $this->CI->db->get(); |
||||
|
||||
return $query->result(); |
||||
} |
||||
|
||||
// returns groups of user as an object array |
||||
public function list_groups() { |
||||
|
||||
$query = $this->CI->db->get($this->config_vars['groups']); |
||||
return $query->result(); |
||||
} |
||||
|
||||
public function list_perms() { |
||||
|
||||
$query = $this->CI->db->get($this->config_vars['perms']); |
||||
return $query->result(); |
||||
} |
||||
|
||||
// if email is available, returns true |
||||
public function check_email($email) { |
||||
|
||||
$this->CI->db->where("email", $email); |
||||
$query = $this->CI->db->get($this->config_vars['users']); |
||||
|
||||
if ($query->num_rows() > 0) { |
||||
$this->info($this->config_vars['email_taken']); |
||||
return FALSE; |
||||
} |
||||
else |
||||
return TRUE; |
||||
} |
||||
|
||||
// it creates new user and returns its id |
||||
public function create_user($email, $pass, $name='') { |
||||
|
||||
$valid = true; |
||||
|
||||
if (!$this->check_email($email)) { |
||||
$this->error($this->config_vars['email_taken']); |
||||
$valid = false; |
||||
} |
||||
if (!valid_email($email)){ |
||||
$this->error($this->config_vars['email_invalid']); |
||||
$valid = false; |
||||
} |
||||
if (strlen($pass) < 5 or strlen($pass) > $this->config_vars['max'] ){ |
||||
$this->error($this->config_vars['pass_invalid']); |
||||
$valid = false; |
||||
} |
||||
if ($name !='' and !ctype_alnum($name)){ |
||||
$this->error($this->config_vars['name_invalid']); |
||||
$valid = false; |
||||
} |
||||
|
||||
if (!$valid) { return false; } |
||||
|
||||
$data = array( |
||||
'email' => $email, |
||||
'pass' => md5($pass), |
||||
'name' => $name, |
||||
//'banned' => 1 |
||||
); |
||||
|
||||
if ( $this->CI->db->insert($this->config_vars['users'], $data )){ |
||||
|
||||
$user_id = $this->CI->db->insert_id(); |
||||
|
||||
if($this->config_vars['verification']){ |
||||
$data = null; |
||||
$data['banned'] = 1; |
||||
|
||||
$this->CI->db->where('id', $user_id); |
||||
$this->CI->db->update($this->config_vars['users'], $data); |
||||
$this->send_verification($user_id); |
||||
} |
||||
|
||||
return $user_id; |
||||
|
||||
} else { |
||||
return FALSE; |
||||
} |
||||
|
||||
} |
||||
|
||||
// send vertifition mail |
||||
public function send_verification($user_id){ |
||||
|
||||
$query = $this->CI->db->where( 'id', $user_id ); |
||||
$query = $this->CI->db->get( $this->config_vars['users'] ); |
||||
|
||||
if ($query->num_rows() > 0){ |
||||
$row = $query->row(); |
||||
|
||||
$ver_code = random_string('alnum', 16); |
||||
|
||||
$data['verification_code'] = $ver_code; |
||||
|
||||
$this->CI->db->where('id', $user_id); |
||||
$this->CI->db->update($this->config_vars['users'], $data); |
||||
|
||||
$this->CI->email->from( $this->config_vars['email'], $this->config_vars['name']); |
||||
$this->CI->email->to($row->email); |
||||
$this->CI->email->subject($this->config_vars['email']); |
||||
$this->CI->email->message($this->config_vars['code'] . $ver_code . |
||||
$this->config_vars['link'] . $user_id . '/' . $ver_code ); |
||||
$this->CI->email->send(); |
||||
} |
||||
//echo $this->CI->email->print_debugger(); |
||||
} |
||||
|
||||
// activare user |
||||
public function verify_user($user_id, $ver_code){ |
||||
|
||||
$query = $this->CI->db->where('id', $user_id); |
||||
$query = $this->CI->db->where('verification_code', $ver_code); |
||||
$query = $this->CI->db->get( $this->config_vars['users'] ); |
||||
|
||||
if( $query->num_rows() >0 ){ |
||||
|
||||
$data = array( |
||||
'verification_code' => '', |
||||
'banned' => 0 |
||||
); |
||||
|
||||
$this->CI->db->where('id', $user_id); |
||||
$this->CI->db->update($this->config_vars['users'] , $data); |
||||
return true; |
||||
} |
||||
return false; |
||||
} |
||||
|
||||
// bans user |
||||
public function ban_user($user_id) { |
||||
|
||||
$data = array( |
||||
'banned' => 1 |
||||
); |
||||
|
||||
$this->CI->db->where('id', $user_id); |
||||
|
||||
return $this->CI->db->update($this->config_vars['users'], $data); |
||||
} |
||||
|
||||
// cancels the ban |
||||
public function unlock_user($user_id) { |
||||
|
||||
$data = array( |
||||
'banned' => 0 |
||||
); |
||||
|
||||
$this->CI->db->where('id', $user_id); |
||||
|
||||
return $this->CI->db->update($this->config_vars['users'], $data); |
||||
} |
||||
|
||||
public function delete_user($user_id) { |
||||
|
||||
$this->CI->db->where('id', $user_id); |
||||
$this->CI->db->delete($this->config_vars['users']); |
||||
} |
||||
|
||||
// takes the user id and updates the values given |
||||
public function update_user($user_id, $email = FALSE, $pass = FALSE, $name = FALSE) { |
||||
|
||||
$data = array(); |
||||
|
||||
if ($email != FALSE) { |
||||
$data['email'] = $email; |
||||
} |
||||
|
||||
if ($pass != FALSE) { |
||||
$data['pass'] = md5($pass); |
||||
} |
||||
|
||||
if ($name != FALSE) { |
||||
$data['name'] = $name; |
||||
} |
||||
|
||||
$this->CI->db->where('id', $user_id); |
||||
return $this->CI->db->update($this->config_vars['users'], $data); |
||||
} |
||||
|
||||
public function remind_password($email){ |
||||
|
||||
$query = $this->CI->db->where( 'email', $email ); |
||||
$query = $this->CI->db->get( $this->config_vars['users'] ); |
||||
|
||||
if ($query->num_rows() > 0){ |
||||
$row = $query->row(); |
||||
|
||||
$ver_code = random_string('alnum', 16); |
||||
|
||||
$data['verification_code'] = $ver_code; |
||||
|
||||
$this->CI->db->where('email', $email); |
||||
$this->CI->db->update($this->config_vars['users'], $data); |
||||
|
||||
$this->CI->email->from( $this->config_vars['email'], $this->config_vars['name']); |
||||
$this->CI->email->to($row->email); |
||||
$this->CI->email->subject($this->config_vars['reset']); |
||||
$this->CI->email->message($this->config_vars['remind'] . ' ' . |
||||
$this->config_vars['remind'] . $row->id . '/' . $ver_code ); |
||||
$this->CI->email->send(); |
||||
} |
||||
|
||||
//echo $this->CI->email->print_debugger(); |
||||
|
||||
} |
||||
|
||||
public function reset_password($user_id, $ver_code){ |
||||
|
||||
$query = $this->CI->db->where('id', $user_id); |
||||
$query = $this->CI->db->where('verification_code', $ver_code); |
||||
$query = $this->CI->db->get( $this->config_vars['users'] ); |
||||
|
||||
$pass = random_string('alphanum',8); |
||||
|
||||
if( $query->num_rows() > 0 ){ |
||||
|
||||
$data = array( |
||||
'verification_code' => '', |
||||
'pass' => md5($pass) |
||||
); |
||||
|
||||
$row = $query->row(); |
||||
$email = $row->email; |
||||
|
||||
$this->CI->db->where('id', $user_id); |
||||
$this->CI->db->update($this->config_vars['users'] , $data); |
||||
|
||||
$this->CI->email->from( $this->config_vars['email'], $this->config_vars['name']); |
||||
$this->CI->email->to($email); |
||||
$this->CI->email->subject($this->config_vars['reset']); |
||||
$this->CI->email->message($this->config_vars['new_password'] . $pass); |
||||
$this->CI->email->send(); |
||||
|
||||
return true; |
||||
} |
||||
|
||||
//echo $this->CI->email->print_debugger(); |
||||
return false; |
||||
} |
||||
|
||||
public function create_group($group_name) { |
||||
|
||||
$query = $this->CI->db->get_where($this->config_vars['groups'], array('name' => $group_name)); |
||||
|
||||
if ($query->num_rows() < 1) { |
||||
|
||||
$data = array( |
||||
'name' => $group_name |
||||
); |
||||
|
||||
return $this->CI->db->insert($this->config_vars['groups'], $data); |
||||
} |
||||
|
||||
$this->error($this->config_vars['group_exist']); |
||||
return FALSE; |
||||
} |
||||
|
||||
public function delete_group($group_id) { |
||||
|
||||
$this->CI->db->where('id', $group_id); |
||||
return $this->CI->db->delete($this->config_vars['groups']); |
||||
} |
||||
|
||||
public function update_group($group_id, $group_name) { |
||||
|
||||
$data['name'] = $group_name; |
||||
|
||||
$this->CI->db->where('id', $group_id); |
||||
return $this->CI->db->update($this->config_vars['groups'], $data); |
||||
} |
||||
|
||||
// aynısını ekleyince hata verio |
||||
public function add_member($user_id, $group_id) { |
||||
|
||||
$query = $this->CI->db->where('user_id',$user_id); |
||||
$query = $this->CI->db->where('group_id',$group_id); |
||||
$query = $this->CI->db->get($this->config_vars['user_to_group']); |
||||
|
||||
if ($query->num_rows() < 1) { |
||||
$data = array( |
||||
'user_id' => $user_id, |
||||
'group_id' => $group_id |
||||
); |
||||
|
||||
return $this->CI->db->insert($this->config_vars['user_to_group'], $data); |
||||
} |
||||
$this->info($this->config_vars['already_member']); |
||||
return true; |
||||
} |
||||
|
||||
// fire the member from the given group |
||||
public function fire_member($user_id, $group_par) { |
||||
|
||||
$group_par = $this->get_group_id($group_par); |
||||
$this->CI->db->where('user_id', $user_id); |
||||
$this->CI->db->where('group_id', $group_par); |
||||
return $this->CI->db->delete($this->config_vars['user_to_group']); |
||||
} |
||||
|
||||
// creates new permission rule. |
||||
public function create_perm($perm_name, $definition='') { |
||||
|
||||
$query = $this->CI->db->get_where($this->config_vars['perms'], array('name' => $perm_name)); |
||||
|
||||
if ($query->num_rows() < 1) { |
||||
|
||||
$data = array( |
||||
'name' => $perm_name, |
||||
'definition'=> $definition |
||||
); |
||||
|
||||
return $this->CI->db->insert($this->config_vars['perms'], $data); |
||||
} |
||||
$this->info($this->config_vars['already_perm']); |
||||
return FALSE; |
||||
} |
||||
|
||||
// remove a permision rule |
||||
public function delete_perm($perm_id) { |
||||
|
||||
$this->CI->db->where('id', $perm_id); |
||||
return $this->CI->db->delete($this->config_vars['perms']); |
||||
} |
||||
|
||||
// updates permissions name and definiton |
||||
public function update_perm($perm_id, $perm_name, $definition=false) { |
||||
|
||||
$data['name'] = $perm_name; |
||||
|
||||
if ($definition!=false) |
||||
$data['definition'] = $perm_name; |
||||
|
||||
$this->CI->db->where('id', $perm_id); |
||||
return $this->CI->db->update($this->config_vars['perms'], $data); |
||||
} |
||||
|
||||
// adds a group to permission table |
||||
public function allow($group_par, $perm_id) { |
||||
|
||||
$query = $this->CI->db->where('group_id',$group_par); |
||||
$query = $this->CI->db->where('perm_id',$perm_id); |
||||
$query = $this->CI->db->get($this->config_vars['perm_to_group']); |
||||
|
||||
if ($query->num_rows() < 1) { |
||||
|
||||
$group_par = $this->get_group_id($group_par); |
||||
$data = array( |
||||
'group_id' => $group_par, |
||||
'perm_id' => $perm_id |
||||
); |
||||
|
||||
return $this->CI->db->insert($this->config_vars['perm_to_group'], $data); |
||||
} |
||||
return true; |
||||
} |
||||
|
||||
// deny or disallow a group for spesific permition |
||||
// a group which not allowed is already denied. |
||||
public function deny($group_par, $perm_id) { |
||||
|
||||
$group_par = $this->get_group_id($group_par); |
||||
$this->CI->db->where('group_id', $group_par); |
||||
$this->CI->db->where('perm_id', $perm_id); |
||||
|
||||
return $this->CI->db->delete($this->config_vars['perm_to_group']); |
||||
} |
||||
|
||||
///// Updated Error Functions ///// |
||||
|
||||
public function error($message){ |
||||
|
||||
$this->errors[] = $message; |
||||
$this->CI->session->set_flashdata('errors', $this->errors); |
||||
} |
||||
|
||||
public function get_errors_array(){ |
||||
|
||||
if (!count($this->errors)==0){ |
||||
return $this->errors; |
||||
} else { |
||||
return false; |
||||
} |
||||
} |
||||
|
||||
public function get_errors($divider = '<br />'){ |
||||
|
||||
$msg = ''; |
||||
$msg_num = count($this->errors); |
||||
$i = 1; |
||||
foreach ($this->errors as $e) { |
||||
$msg .= $e; |
||||
|
||||
if ($i != $msg_num) |
||||
$msg .= $divider; |
||||
|
||||
$i++; |
||||
} |
||||
return $msg; |
||||
} |
||||
|
||||
public function info($message){ |
||||
|
||||
$this->infos[] = $message; |
||||
$this->CI->session->set_flashdata('infos', $this->errors); |
||||
} |
||||
|
||||
public function get_infos_array(){ |
||||
|
||||
if (!count($this->infos)==0){ |
||||
return $this->infos; |
||||
} else { |
||||
return false; |
||||
} |
||||
} |
||||
|
||||
public function get_infos($divider = '<br />'){ |
||||
|
||||
$msg = ''; |
||||
$msg_num = count($this->infos); |
||||
$i = 1; |
||||
foreach ($this->infos as $e) { |
||||
$msg .= $e; |
||||
|
||||
if ($i != $msg_num) |
||||
$msg .= $divider; |
||||
|
||||
$i++; |
||||
} |
||||
return $msg; |
||||
} |
||||
|
||||
} |
||||
|
||||
?> |
@ -0,0 +1,17 @@
|
||||
<?php |
||||
|
||||
/* |
||||
* To change this template, choose Tools | Templates |
||||
* and open the template in the editor. |
||||
*/ |
||||
|
||||
/** |
||||
* Description of CI_Lib |
||||
* |
||||
* @author Emre |
||||
*/ |
||||
class CI_Lib { |
||||
//put your code here |
||||
} |
||||
|
||||
?> |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,40 @@
|
||||
<?php |
||||
|
||||
/** |
||||
* @property Modelamca $Modelamca |
||||
* |
||||
*/ |
||||
|
||||
class Ajax_model extends CI_Model{ |
||||
//put your code here |
||||
|
||||
function __construct() |
||||
{ |
||||
parent::__construct(); |
||||
//$this->load->database(); |
||||
} |
||||
|
||||
|
||||
public function get_servers($all = FALSE){ |
||||
|
||||
if(all==FALSE){ |
||||
$q = $this->db->where('user_id', $this->CI->session->userdata('id')); |
||||
} |
||||
|
||||
$q = $this->db->get('servers_to_users'); |
||||
|
||||
if ($q->num_rows() > 0){ |
||||
return $q->result(); |
||||
} else { |
||||
return FALSE; |
||||
} |
||||
|
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} |
||||
|
||||
?> |
@ -0,0 +1,10 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,12 @@
|
||||
<html> |
||||
<head> |
||||
<title>403 Forbidden</title> |
||||
</head> |
||||
<body> |
||||
|
||||
<p>Directory access is forbidden.</p> |
||||
|
||||
|
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,35 @@
|
||||
/* ----------------------------------------------------------------------- |
||||
|
||||
|
||||
Blueprint CSS Framework 0.9 |
||||
http://blueprintcss.org |
||||
|
||||
* Copyright (c) 2007-Present. See LICENSE for more info. |
||||
* See README for instructions on how to use Blueprint. |
||||
* For credits and origins, see AUTHORS. |
||||
* This is a compressed file. See the sources in the 'src' directory. |
||||
|
||||
----------------------------------------------------------------------- */ |
||||
|
||||
/* ie.css */ |
||||
body {text-align:center;} |
||||
.container {text-align:left;} |
||||
* html .column, * html div.span-1, * html div.span-2, * html div.span-3, * html div.span-4, * html div.span-5, * html div.span-6, * html div.span-7, * html div.span-8, * html div.span-9, * html div.span-10, * html div.span-11, * html div.span-12, * html div.span-13, * html div.span-14, * html div.span-15, * html div.span-16, * html div.span-17, * html div.span-18, * html div.span-19, * html div.span-20, * html div.span-21, * html div.span-22, * html div.span-23, * html div.span-24 {overflow-x:hidden;} |
||||
* html legend {margin:0px -8px 16px 0;padding:0;} |
||||
ol {margin-left:2em;} |
||||
sup {vertical-align:text-top;} |
||||
sub {vertical-align:text-bottom;} |
||||
html>body p code {*white-space:normal;} |
||||
hr {margin:-8px auto 11px;} |
||||
img {-ms-interpolation-mode:bicubic;} |
||||
.clearfix, .container {display:inline-block;} |
||||
* html .clearfix, * html .container {height:1%;} |
||||
fieldset {padding-top:0;} |
||||
input.text, input.title {background-color:#fff;border:1px solid #bbb;} |
||||
input.text:focus, input.title:focus {border-color:#666;} |
||||
input.text, input.title, textarea, select {margin:0.5em 0;} |
||||
input.checkbox, input.radio {position:relative;top:.25em;} |
||||
form.inline div, form.inline p {vertical-align:middle;} |
||||
form.inline label {position:relative;top:-0.25em;} |
||||
form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;} |
||||
button, input.button {position:relative;top:0.25em;} |
After Width: | Height: | Size: 655 B |
After Width: | Height: | Size: 455 B |
After Width: | Height: | Size: 537 B |
@ -0,0 +1,32 @@
|
||||
Buttons |
||||
|
||||
* Gives you great looking CSS buttons, for both <a> and <button>. |
||||
* Demo: particletree.com/features/rediscovering-the-button-element |
||||
|
||||
|
||||
Credits |
||||
---------------------------------------------------------------- |
||||
|
||||
* Created by Kevin Hale [particletree.com] |
||||
* Adapted for Blueprint by Olav Bjorkoy [bjorkoy.com] |
||||
|
||||
|
||||
Usage |
||||
---------------------------------------------------------------- |
||||
|
||||
1) Add this plugin to lib/settings.yml. |
||||
See compress.rb for instructions. |
||||
|
||||
2) Use the following HTML code to place the buttons on your site: |
||||
|
||||
<button type="submit" class="button positive"> |
||||
<img src="css/blueprint/plugins/buttons/icons/tick.png" alt=""/> Save |
||||
</button> |
||||
|
||||
<a class="button" href="/password/reset/"> |
||||
<img src="css/blueprint/plugins/buttons/icons/key.png" alt=""/> Change Password |
||||
</a> |
||||
|
||||
<a href="#" class="button negative"> |
||||
<img src="css/blueprint/plugins/buttons/icons/cross.png" alt=""/> Cancel |
||||
</a> |
@ -0,0 +1,97 @@
|
||||
/* -------------------------------------------------------------- |
||||
|
||||
buttons.css |
||||
* Gives you some great CSS-only buttons. |
||||
|
||||
Created by Kevin Hale [particletree.com] |
||||
* particletree.com/features/rediscovering-the-button-element |
||||
|
||||
See Readme.txt in this folder for instructions. |
||||
|
||||
-------------------------------------------------------------- */ |
||||
|
||||
a.button, button { |
||||
display:block; |
||||
float:left; |
||||
margin: 0.7em 0.5em 0.7em 0; |
||||
padding:5px 10px 5px 7px; /* Links */ |
||||
|
||||
border:1px solid #dedede; |
||||
border-top:1px solid #eee; |
||||
border-left:1px solid #eee; |
||||
|
||||
background-color:#f5f5f5; |
||||
font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif; |
||||
font-size:100%; |
||||
line-height:130%; |
||||
text-decoration:none; |
||||
font-weight:bold; |
||||
color:#565656; |
||||
cursor:pointer; |
||||
} |
||||
button { |
||||
width:auto; |
||||
overflow:visible; |
||||
padding:4px 10px 3px 7px; /* IE6 */ |
||||
} |
||||
button[type] { |
||||
padding:4px 10px 4px 7px; /* Firefox */ |
||||
line-height:17px; /* Safari */ |
||||
} |
||||
*:first-child+html button[type] { |
||||
padding:4px 10px 3px 7px; /* IE7 */ |
||||
} |
||||
button img, a.button img{ |
||||
margin:0 3px -3px 0 !important; |
||||
padding:0; |
||||
border:none; |
||||
width:16px; |
||||
height:16px; |
||||
float:none; |
||||
} |
||||
|
||||
|
||||
/* Button colors |
||||
-------------------------------------------------------------- */ |
||||
|
||||
/* Standard */ |
||||
button:hover, a.button:hover{ |
||||
background-color:#dff4ff; |
||||
border:1px solid #c2e1ef; |
||||
color:#336699; |
||||
} |
||||
a.button:active{ |
||||
background-color:#6299c5; |
||||
border:1px solid #6299c5; |
||||
color:#fff; |
||||
} |
||||
|
||||
/* Positive */ |
||||
body .positive { |
||||
color:#529214; |
||||
} |
||||
a.positive:hover, button.positive:hover { |
||||
background-color:#E6EFC2; |
||||
border:1px solid #C6D880; |
||||
color:#529214; |
||||
} |
||||
a.positive:active { |
||||
background-color:#529214; |
||||
border:1px solid #529214; |
||||
color:#fff; |
||||
} |
||||
|
||||
/* Negative */ |
||||
body .negative { |
||||
color:#d12f19; |
||||
} |
||||
a.negative:hover, button.negative:hover { |
||||
background-color:#fbe3e4; |
||||
border:1px solid #fbc2c4; |
||||
color:#d12f19; |
||||
} |
||||
a.negative:active { |
||||
background-color:#d12f19; |
||||
border:1px solid #d12f19; |
||||
color:#fff; |
||||
} |
@ -0,0 +1,14 @@
|
||||
Fancy Type |
||||
|
||||
* Gives you classes to use if you'd like some |
||||
extra fancy typography. |
||||
|
||||
Credits and instructions are specified above each class |
||||
in the fancy-type.css file in this directory. |
||||
|
||||
|
||||
Usage |
||||
---------------------------------------------------------------- |
||||
|
||||
1) Add this plugin to lib/settings.yml. |
||||
See compress.rb for instructions. |
@ -0,0 +1,71 @@
|
||||
/* -------------------------------------------------------------- |
||||
|
||||
fancy-type.css |
||||
* Lots of pretty advanced classes for manipulating text. |
||||
|
||||
See the Readme file in this folder for additional instructions. |
||||
|
||||
-------------------------------------------------------------- */ |
||||
|
||||
/* Indentation instead of line shifts for sibling paragraphs. */ |
||||
/* p + p { text-indent:2em; margin-top:-1.5em; } */ |
||||
form p + p { text-indent: 0; } /* Don't want this in forms. */ |
||||
|
||||
|
||||
/* For great looking type, use this code instead of asdf: |
||||
<span class="alt">asdf</span> |
||||
Best used on prepositions and ampersands. */ |
||||
|
||||
.alt { |
||||
color: #666; |
||||
font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif; |
||||
font-style: italic; |
||||
font-weight: normal; |
||||
} |
||||
|
||||
|
||||
/* For great looking quote marks in titles, replace "asdf" with: |
||||
<span class="dquo">“</span>asdf” |
||||
(That is, when the title starts with a quote mark). |
||||
(You may have to change this value depending on your font size). */ |
||||
|
||||
.dquo { margin-left: -.5em; } |
||||
|
||||
|
||||
/* Reduced size type with incremental leading |
||||
(http://www.markboulton.co.uk/journal/comments/incremental_leading/) |
||||
|
||||
This could be used for side notes. For smaller type, you don't necessarily want to |
||||
follow the 1.5x vertical rhythm -- the line-height is too much. |
||||
|
||||
Using this class, it reduces your font size and line-height so that for |
||||
every four lines of normal sized type, there is five lines of the sidenote. eg: |
||||
|
||||
New type size in em's: |
||||
10px (wanted side note size) / 12px (existing base size) = 0.8333 (new type size in ems) |
||||
|
||||
New line-height value: |
||||
12px x 1.5 = 18px (old line-height) |
||||
18px x 4 = 72px |
||||
72px / 5 = 14.4px (new line height) |
||||
14.4px / 10px = 1.44 (new line height in em's) */ |
||||
|
||||
p.incr, .incr p { |
||||
font-size: 10px; |
||||
line-height: 1.44em; |
||||
margin-bottom: 1.5em; |
||||
} |
||||
|
||||
|
||||
/* Surround uppercase words and abbreviations with this class. |
||||
Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/] */ |
||||
|
||||
.caps { |
||||
font-variant: small-caps; |
||||
letter-spacing: 1px; |
||||
text-transform: lowercase; |
||||
font-size:1.2em; |
||||
line-height:1%; |
||||
font-weight:bold; |
||||
padding:0 2px; |
||||
} |
After Width: | Height: | Size: 777 B |
After Width: | Height: | Size: 641 B |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 691 B |
After Width: | Height: | Size: 741 B |
After Width: | Height: | Size: 591 B |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 663 B |
@ -0,0 +1,18 @@
|
||||
Link Icons |
||||
* Icons for links based on protocol or file type. |
||||
|
||||
This is not supported in IE versions < 7. |
||||
|
||||
|
||||
Credits |
||||
---------------------------------------------------------------- |
||||
|
||||
* Marc Morgan |
||||
* Olav Bjorkoy [bjorkoy.com] |
||||
|
||||
|
||||
Usage |
||||
---------------------------------------------------------------- |
||||
|
||||
1) Add this line to your HTML: |
||||
<link rel="stylesheet" href="css/blueprint/plugins/link-icons/screen.css" type="text/css" media="screen, projection"> |
@ -0,0 +1,40 @@
|
||||
/* -------------------------------------------------------------- |
||||
|
||||
link-icons.css |
||||
* Icons for links based on protocol or file type. |
||||
|
||||
See the Readme file in this folder for additional instructions. |
||||
|
||||
-------------------------------------------------------------- */ |
||||
|
||||
/* Use this class if a link gets an icon when it shouldn't. */ |
||||
body a.noicon { |
||||
background:transparent none !important; |
||||
padding:0 !important; |
||||
margin:0 !important; |
||||
} |
||||
|
||||
/* Make sure the icons are not cut */ |
||||
a[href^="http:"], a[href^="mailto:"], a[href^="http:"]:visited, |
||||
a[href$=".pdf"], a[href$=".doc"], a[href$=".xls"], a[href$=".rss"], |
||||
a[href$=".rdf"], a[href^="aim:"] { |
||||
padding:2px 22px 2px 0; |
||||
margin:-2px 0; |
||||
background-repeat: no-repeat; |
||||
background-position: right center; |
||||
} |
||||
|
||||
/* External links */ |
||||
a[href^="http:"] { background-image: url(icons/external.png); } |
||||
a[href^="mailto:"] { background-image: url(icons/email.png); } |
||||
a[href^="http:"]:visited { background-image: url(icons/visited.png); } |
||||
|
||||
/* Files */ |
||||
a[href$=".pdf"] { background-image: url(icons/pdf.png); } |
||||
a[href$=".doc"] { background-image: url(icons/doc.png); } |
||||
a[href$=".xls"] { background-image: url(icons/xls.png); } |
||||
|
||||
/* Misc */ |
||||
a[href$=".rss"], |
||||
a[href$=".rdf"] { background-image: url(icons/feed.png); } |
||||
a[href^="aim:"] { background-image: url(icons/im.png); } |
@ -0,0 +1,10 @@
|
||||
RTL |
||||
* Mirrors Blueprint, so it can be used with Right-to-Left languages. |
||||
|
||||
By Ran Yaniv Hartstein, ranh.co.il |
||||
|
||||
Usage |
||||
---------------------------------------------------------------- |
||||
|
||||
1) Add this line to your HTML: |
||||
<link rel="stylesheet" href="css/blueprint/plugins/rtl/screen.css" type="text/css" media="screen, projection"> |
@ -0,0 +1,109 @@
|
||||
/* -------------------------------------------------------------- |
||||
|
||||
rtl.css |
||||
* Mirrors Blueprint for left-to-right languages |
||||
|
||||
By Ran Yaniv Hartstein [ranh.co.il] |
||||
|
||||
-------------------------------------------------------------- */ |
||||
|
||||
body .container { direction: rtl; } |
||||
body .column { |
||||
float: right; |
||||
margin-right: 0; |
||||
margin-left: 10px; |
||||
} |
||||
|
||||
body div.last { margin-left: 0; } |
||||
body table .last { padding-left: 0; } |
||||
|
||||
body .append-1 { padding-right: 0; padding-left: 40px; } |
||||
body .append-2 { padding-right: 0; padding-left: 80px; } |
||||
body .append-3 { padding-right: 0; padding-left: 120px; } |
||||
body .append-4 { padding-right: 0; padding-left: 160px; } |
||||
body .append-5 { padding-right: 0; padding-left: 200px; } |
||||
body .append-6 { padding-right: 0; padding-left: 240px; } |
||||
body .append-7 { padding-right: 0; padding-left: 280px; } |
||||
body .append-8 { padding-right: 0; padding-left: 320px; } |
||||
body .append-9 { padding-right: 0; padding-left: 360px; } |
||||
body .append-10 { padding-right: 0; padding-left: 400px; } |
||||
body .append-11 { padding-right: 0; padding-left: 440px; } |
||||
body .append-12 { padding-right: 0; padding-left: 480px; } |
||||
body .append-13 { padding-right: 0; padding-left: 520px; } |
||||
body .append-14 { padding-right: 0; padding-left: 560px; } |
||||
body .append-15 { padding-right: 0; padding-left: 600px; } |
||||
body .append-16 { padding-right: 0; padding-left: 640px; } |
||||
body .append-17 { padding-right: 0; padding-left: 680px; } |
||||
body .append-18 { padding-right: 0; padding-left: 720px; } |
||||
body .append-19 { padding-right: 0; padding-left: 760px; } |
||||
body .append-20 { padding-right: 0; padding-left: 800px; } |
||||
body .append-21 { padding-right: 0; padding-left: 840px; } |
||||
body .append-22 { padding-right: 0; padding-left: 880px; } |
||||
body .append-23 { padding-right: 0; padding-left: 920px; } |
||||
|
||||
body .prepend-1 { padding-left: 0; padding-right: 40px; } |
||||
body .prepend-2 { padding-left: 0; padding-right: 80px; } |
||||
body .prepend-3 { padding-left: 0; padding-right: 120px; } |
||||
body .prepend-4 { padding-left: 0; padding-right: 160px; } |
||||
body .prepend-5 { padding-left: 0; padding-right: 200px; } |
||||
body .prepend-6 { padding-left: 0; padding-right: 240px; } |
||||
body .prepend-7 { padding-left: 0; padding-right: 280px; } |
||||
body .prepend-8 { padding-left: 0; padding-right: 320px; } |
||||
body .prepend-9 { padding-left: 0; padding-right: 360px; } |
||||
body .prepend-10 { padding-left: 0; padding-right: 400px; } |
||||
body .prepend-11 { padding-left: 0; padding-right: 440px; } |
||||
body .prepend-12 { padding-left: 0; padding-right: 480px; } |
||||
body .prepend-13 { padding-left: 0; padding-right: 520px; } |
||||
body .prepend-14 { padding-left: 0; padding-right: 560px; } |
||||
body .prepend-15 { padding-left: 0; padding-right: 600px; } |
||||
body .prepend-16 { padding-left: 0; padding-right: 640px; } |
||||
body .prepend-17 { padding-left: 0; padding-right: 680px; } |
||||
body .prepend-18 { padding-left: 0; padding-right: 720px; } |
||||
body .prepend-19 { padding-left: 0; padding-right: 760px; } |
||||
body .prepend-20 { padding-left: 0; padding-right: 800px; } |
||||
body .prepend-21 { padding-left: 0; padding-right: 840px; } |
||||
body .prepend-22 { padding-left: 0; padding-right: 880px; } |
||||
body .prepend-23 { padding-left: 0; padding-right: 920px; } |
||||
|
||||
body .border { |
||||
padding-right: 0; |
||||
padding-left: 4px; |
||||
margin-right: 0; |
||||
margin-left: 5px; |
||||
border-right: none; |
||||
border-left: 1px solid #eee; |
||||
} |
||||
|
||||
body .colborder { |
||||
padding-right: 0; |
||||
padding-left: 24px; |
||||
margin-right: 0; |
||||
margin-left: 25px; |
||||
border-right: none; |
||||
border-left: 1px solid #eee; |
||||
} |
||||
|
||||
body .pull-1 { margin-left: 0; margin-right: -40px; } |
||||
body .pull-2 { margin-left: 0; margin-right: -80px; } |
||||
body .pull-3 { margin-left: 0; margin-right: -120px; } |
||||
body .pull-4 { margin-left: 0; margin-right: -160px; } |
||||
|
||||
body .push-0 { margin: 0 18px 0 0; } |
||||
body .push-1 { margin: 0 18px 0 -40px; } |
||||
body .push-2 { margin: 0 18px 0 -80px; } |
||||
body .push-3 { margin: 0 18px 0 -120px; } |
||||
body .push-4 { margin: 0 18px 0 -160px; } |
||||
body .push-0, body .push-1, body .push-2, |
||||
body .push-3, body .push-4 { float: left; } |
||||
|
||||
|
||||
/* Typography with RTL support */ |
||||
body h1,body h2,body h3, |
||||
body h4,body h5,body h6 { font-family: Arial, sans-serif; } |
||||
html body { font-family: Arial, sans-serif; } |
||||
body pre,body code,body tt { font-family: monospace; } |
||||
|
||||
/* Mirror floats and margins on typographic elements */ |
||||
body p img { float: right; margin: 1.5em 0 1.5em 1.5em; } |
||||
body dd, body ul, body ol { margin-left: 0; margin-right: 1.5em;} |
||||
body td, body th { text-align:right; } |
@ -0,0 +1,30 @@
|
||||
/* ----------------------------------------------------------------------- |
||||
|
||||
|
||||
Blueprint CSS Framework 0.9 |
||||
http://blueprintcss.org |
||||
|
||||
* Copyright (c) 2007-Present. See LICENSE for more info. |
||||
* See README for instructions on how to use Blueprint. |
||||
* For credits and origins, see AUTHORS. |
||||
* This is a compressed file. See the sources in the 'src' directory. |
||||
|
||||
----------------------------------------------------------------------- */ |
||||
|
||||
/* print.css */ |
||||
body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;} |
||||
.container {background:none;} |
||||
hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;} |
||||
hr.space {background:#fff;color:#fff;} |
||||
h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;} |
||||
code {font:.9em "Courier New", Monaco, Courier, monospace;} |
||||
img {float:left;margin:1.5em 1.5em 1.5em 0;} |
||||
a img {border:none;} |
||||
p img.top {margin-top:0;} |
||||
blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;} |
||||
.small {font-size:.9em;} |
||||
.large {font-size:1.1em;} |
||||
.quiet {color:#999;} |
||||
.hide {display:none;} |
||||
a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;} |
||||
a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;} |
@ -0,0 +1,266 @@
|
||||
/* ----------------------------------------------------------------------- |
||||
|
||||
|
||||
Blueprint CSS Framework 0.9 |
||||
http://blueprintcss.org |
||||
|
||||
* Copyright (c) 2007-Present. See LICENSE for more info. |
||||
* See README for instructions on how to use Blueprint. |
||||
* For credits and origins, see AUTHORS. |
||||
* This is a compressed file. See the sources in the 'src' directory. |
||||
|
||||
----------------------------------------------------------------------- */ |
||||
|
||||
/* reset.css */ |
||||
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;} |
||||
body {line-height:1.5;} |
||||
table {border-collapse:separate;border-spacing:0;} |
||||
caption, th, td {text-align:left;font-weight:normal;} |
||||
table, td, th {vertical-align:middle;} |
||||
blockquote:before, blockquote:after, q:before, q:after {content:"";} |
||||
blockquote, q {quotes:"" "";} |
||||
a img {border:none;} |
||||
|
||||
/* custom.css */ |
||||
.info { background:#fafcfc; } |
||||
.borderTop { border-top: 1px solid #eee;} |
||||
.append-0 {padding-right:20px;} |
||||
|
||||
/* typography.css */ |
||||
body {font-size:80%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;padding-top:30px;} |
||||
h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;} |
||||
h1 {font-size:2.6em;line-height:1;margin-bottom:0.5em;} |
||||
h2 {font-size:1.9em;margin-bottom:0.75em;} |
||||
h3 {font-size:1.4em;line-height:1;margin-bottom:1em;} |
||||
h4 {font-size:1.1em;line-height:1.25;margin-bottom:1.25em;} |
||||
h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;} |
||||
h6 {font-size:1em;font-weight:bold;} |
||||
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;} |
||||
p {margin:0 0 1.5em;line-height:1.65em;} |
||||
p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;} |
||||
p img.right {float:right;margin:1.5em 0 1.5em 1.5em;} |
||||
a:focus, a:hover {color:#000;} |
||||
a {color:#009;text-decoration:underline;} |
||||
blockquote {margin:1.5em;color:#666;font-style:italic;} |
||||
strong {font-weight:bold;} |
||||
em, dfn {font-style:italic;} |
||||
dfn {font-weight:bold;} |
||||
sup, sub {line-height:0;} |
||||
abbr, acronym {border-bottom:1px dotted #666;} |
||||
address {margin:0 0 1.5em;font-style:italic;} |
||||
del {color:#666;} |
||||
pre {margin:1.5em 0;white-space:pre;} |
||||
pre, code, tt {font:13px 'andale mono', 'lucida console', monospace;line-height:1.5;} |
||||
li ul, li ol {margin:0 1.5em;} |
||||
ul, ol {margin:0 1.5em 1.5em 3.5em;} |
||||
ul {list-style-type:disc;} |
||||
ol {list-style-type:decimal;} |
||||
ol.alpha {list-style:upper-alpha;} |
||||
dl {margin:0 0 1.5em 0;} |
||||
dl dt {font-weight:bold;} |
||||
dd {margin-left:1.5em;} |
||||
table {margin-bottom:1.4em;width:100%;} |
||||
th {font-weight:bold;} |
||||
thead th {background:#c3d9ff;} |
||||
th, td, caption {padding:4px 10px 4px 5px;} |
||||
tr.even td {background:#e5ecf9;} |
||||
tfoot {font-style:italic;} |
||||
caption {background:#eee;} |
||||
.small {font-size:.85em;margin-bottom:1.875em;line-height:1.875em;} |
||||
.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;} |
||||
.hide {display:none;} |
||||
.quiet {color:#666;} |
||||
.loud {color:#000;} |
||||
.highlight {background:#ff0;} |
||||
.added {background:#060;color:#fff;} |
||||
.removed {background:#900;color:#fff;} |
||||
.first {margin-left:0;padding-left:0;} |
||||
.last {margin-right:0;padding-right:0;} |
||||
.top {margin-top:0;padding-top:0;} |
||||
.bottom {margin-bottom:0;padding-bottom:0;} |
||||
.center {text-align:center;} |
||||
|
||||
/* forms.css */ |
||||
label {font-weight:bold;} |
||||
fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;} |
||||
legend {font-weight:bold;font-size:1.2em;} |
||||
input[type=text], input[type=password], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;} |
||||
input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;} |
||||
input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;} |
||||
input.text, input.title {width:300px;padding:5px;} |
||||
input.title {font-size:1.5em;} |
||||
textarea {width:390px;height:250px;padding:5px;} |
||||
input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;} |
||||
form.inline {line-height:3;} |
||||
form.inline p {margin-bottom:0;} |
||||
.error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;} |
||||
.error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;} |
||||
.notice {background:#FFF6BF;color:#514721;border-color:#FFD324;} |
||||
.success {background:#E6EFC2;color:#264409;border-color:#C6D880;} |
||||
.error a {color:#8a1f11;} |
||||
.notice a {color:#514721;} |
||||
.success a {color:#264409;} |
||||
|
||||
/* grid.css */ |
||||
.container {width:790px;margin:0 auto;} |
||||
.showgrid {background:url(src/grid.png);} |
||||
.column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 {float:left;margin-right:10px;} |
||||
.last, div.last {margin-right:0;} |
||||
.span-1 {width:30px;} |
||||
.span-2 {width:70px;} |
||||
.span-3 {width:110px;} |
||||
.span-4 {width:150px;} |
||||
.span-5 {width:190px;} |
||||
.span-6 {width:230px;} |
||||
.span-7 {width:270px;} |
||||
.span-8 {width:310px;} |
||||
.span-9 {width:350px;} |
||||
.span-10 {width:390px;} |
||||
.span-11 {width:430px;} |
||||
.span-12 {width:470px;} |
||||
.span-13 {width:510px;} |
||||
.span-14 {width:550px;} |
||||
.span-15 {width:590px;} |
||||
.span-16 {width:630px;} |
||||
.span-17 {width:670px;} |
||||
.span-18 {width:710px;} |
||||
.span-19 {width:750px;} |
||||
.span-20 {width:790px;} |
||||
.span-21 {width:830px;} |
||||
.span-22 {width:870px;} |
||||
.span-23 {width:910px;} |
||||
.span-24, div.span-24 {width:950px;margin:0;} |
||||
input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {border-left-width:1px!important;border-right-width:1px!important;padding-left:5px!important;padding-right:5px!important;} |
||||
input.span-1, textarea.span-1 {width:18px!important;} |
||||
input.span-2, textarea.span-2 {width:58px!important;} |
||||
input.span-3, textarea.span-3 {width:98px!important;} |
||||
input.span-4, textarea.span-4 {width:138px!important;} |
||||
input.span-5, textarea.span-5 {width:178px!important;} |
||||
input.span-6, textarea.span-6 {width:218px!important;} |
||||
input.span-7, textarea.span-7 {width:258px!important;} |
||||
input.span-8, textarea.span-8 {width:298px!important;} |
||||
input.span-9, textarea.span-9 {width:338px!important;} |
||||
input.span-10, textarea.span-10 {width:378px!important;} |
||||
input.span-11, textarea.span-11 {width:418px!important;} |
||||
input.span-12, textarea.span-12 {width:458px!important;} |
||||
input.span-13, textarea.span-13 {width:498px!important;} |
||||
input.span-14, textarea.span-14 {width:538px!important;} |
||||
input.span-15, textarea.span-15 {width:578px!important;} |
||||
input.span-16, textarea.span-16 {width:618px!important;} |
||||
input.span-17, textarea.span-17 {width:658px!important;} |
||||
input.span-18, textarea.span-18 {width:698px!important;} |
||||
input.span-19, textarea.span-19 {width:738px!important;} |
||||
input.span-20, textarea.span-20 {width:778px!important;} |
||||
input.span-21, textarea.span-21 {width:818px!important;} |
||||
input.span-22, textarea.span-22 {width:858px!important;} |
||||
input.span-23, textarea.span-23 {width:898px!important;} |
||||
input.span-24, textarea.span-24 {width:938px!important;} |
||||
.append-1 {padding-right:40px;} |
||||
.append-2 {padding-right:80px;} |
||||
.append-3 {padding-right:120px;} |
||||
.append-4 {padding-right:160px;} |
||||
.append-5 {padding-right:200px;} |
||||
.append-6 {padding-right:240px;} |
||||
.append-7 {padding-right:280px;} |
||||
.append-8 {padding-right:320px;} |
||||
.append-9 {padding-right:360px;} |
||||
.append-10 {padding-right:400px;} |
||||
.append-11 {padding-right:440px;} |
||||
.append-12 {padding-right:480px;} |
||||
.append-13 {padding-right:520px;} |
||||
.append-14 {padding-right:560px;} |
||||
.append-15 {padding-right:600px;} |
||||
.append-16 {padding-right:640px;} |
||||
.append-17 {padding-right:680px;} |
||||
.append-18 {padding-right:720px;} |
||||
.append-19 {padding-right:760px;} |
||||
.append-20 {padding-right:800px;} |
||||
.append-21 {padding-right:840px;} |
||||
.append-22 {padding-right:880px;} |
||||
.append-23 {padding-right:920px;} |
||||
.prepend-1 {padding-left:40px;} |
||||
.prepend-2 {padding-left:80px;} |
||||
.prepend-3 {padding-left:120px;} |
||||
.prepend-4 {padding-left:160px;} |
||||
.prepend-5 {padding-left:200px;} |
||||
.prepend-6 {padding-left:240px;} |
||||
.prepend-7 {padding-left:280px;} |
||||
.prepend-8 {padding-left:320px;} |
||||
.prepend-9 {padding-left:360px;} |
||||
.prepend-10 {padding-left:400px;} |
||||
.prepend-11 {padding-left:440px;} |
||||
.prepend-12 {padding-left:480px;} |
||||
.prepend-13 {padding-left:520px;} |
||||
.prepend-14 {padding-left:560px;} |
||||
.prepend-15 {padding-left:600px;} |
||||
.prepend-16 {padding-left:640px;} |
||||
.prepend-17 {padding-left:680px;} |
||||
.prepend-18 {padding-left:720px;} |
||||
.prepend-19 {padding-left:760px;} |
||||
.prepend-20 {padding-left:800px;} |
||||
.prepend-21 {padding-left:840px;} |
||||
.prepend-22 {padding-left:880px;} |
||||
.prepend-23 {padding-left:920px;} |
||||
div.border {padding-right:4px;margin-right:5px;border-right:1px solid #eee;} |
||||
div.colborder {padding-right:24px;margin-right:25px;border-right:1px solid #eee;} |
||||
div.colborderTop {border-top:1px solid #eee;} |
||||
.pull-1 {margin-left:-40px;} |
||||
.pull-2 {margin-left:-80px;} |
||||
.pull-3 {margin-left:-120px;} |
||||
.pull-4 {margin-left:-160px;} |
||||
.pull-5 {margin-left:-200px;} |
||||
.pull-6 {margin-left:-240px;} |
||||
.pull-7 {margin-left:-280px;} |
||||
.pull-8 {margin-left:-320px;} |
||||
.pull-9 {margin-left:-360px;} |
||||
.pull-10 {margin-left:-400px;} |
||||
.pull-11 {margin-left:-440px;} |
||||
.pull-12 {margin-left:-480px;} |
||||
.pull-13 {margin-left:-520px;} |
||||
.pull-14 {margin-left:-560px;} |
||||
.pull-15 {margin-left:-600px;} |
||||
.pull-16 {margin-left:-640px;} |
||||
.pull-17 {margin-left:-680px;} |
||||
.pull-18 {margin-left:-720px;} |
||||
.pull-19 {margin-left:-760px;} |
||||
.pull-20 {margin-left:-800px;} |
||||
.pull-21 {margin-left:-840px;} |
||||
.pull-22 {margin-left:-880px;} |
||||
.pull-23 {margin-left:-920px;} |
||||
.pull-24 {margin-left:-960px;} |
||||
.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float:left;position:relative;} |
||||
.push-1 {margin:0 -40px 1.5em 40px;} |
||||
.push-2 {margin:0 -80px 1.5em 80px;} |
||||
.push-3 {margin:0 -120px 1.5em 120px;} |
||||
.push-4 {margin:0 -160px 1.5em 160px;} |
||||
.push-5 {margin:0 -200px 1.5em 200px;} |
||||
.push-6 {margin:0 -240px 1.5em 240px;} |
||||
.push-7 {margin:0 -280px 1.5em 280px;} |
||||
.push-8 {margin:0 -320px 1.5em 320px;} |
||||
.push-9 {margin:0 -360px 1.5em 360px;} |
||||
.push-10 {margin:0 -400px 1.5em 400px;} |
||||
.push-11 {margin:0 -440px 1.5em 440px;} |
||||
.push-12 {margin:0 -480px 1.5em 480px;} |
||||
.push-13 {margin:0 -520px 1.5em 520px;} |
||||
.push-14 {margin:0 -560px 1.5em 560px;} |
||||
.push-15 {margin:0 -600px 1.5em 600px;} |
||||
.push-16 {margin:0 -640px 1.5em 640px;} |
||||
.push-17 {margin:0 -680px 1.5em 680px;} |
||||
.push-18 {margin:0 -720px 1.5em 720px;} |
||||
.push-19 {margin:0 -760px 1.5em 760px;} |
||||
.push-20 {margin:0 -800px 1.5em 800px;} |
||||
.push-21 {margin:0 -840px 1.5em 840px;} |
||||
.push-22 {margin:0 -880px 1.5em 880px;} |
||||
.push-23 {margin:0 -920px 1.5em 920px;} |
||||
.push-24 {margin:0 -960px 1.5em 960px;} |
||||
.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float:right;position:relative;} |
||||
.prepend-top {margin-top:1.5em;} |
||||
.append-bottom {margin-bottom:1.5em;} |
||||
.box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;} |
||||
hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;} |
||||
hr.space {background:#fff;color:#fff;} |
||||
.clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;} |
||||
.clearfix, .container {display:block;} |
||||
.clear {clear:both;} |
||||
|
||||
pre { font-size: 11px; border-left: 3px solid #CCC; padding: 0 0 0 2em; margin-left: 2em; } |
@ -0,0 +1,65 @@
|
||||
/* -------------------------------------------------------------- |
||||
|
||||
forms.css |
||||
* Sets up some default styling for forms |
||||
* Gives you classes to enhance your forms |
||||
|
||||
Usage: |
||||
* For text fields, use class .title or .text |
||||
* For inline forms, use .inline (even when using columns) |
||||
|
||||
-------------------------------------------------------------- */ |
||||
|
||||
label { font-weight: bold; } |
||||
fieldset { padding:1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; } |
||||
legend { font-weight: bold; font-size:1.2em; } |
||||
|
||||
|
||||
/* Form fields |
||||
-------------------------------------------------------------- */ |
||||
|
||||
input[type=text], input[type=password], |
||||
input.text, input.title, |
||||
textarea, select { |
||||
background-color:#fff; |
||||
border:1px solid #bbb; |
||||
} |
||||
input[type=text]:focus, input[type=password]:focus, |
||||
input.text:focus, input.title:focus, |
||||
textarea:focus, select:focus { |
||||
border-color:#666; |
||||
} |
||||
|
||||
input[type=text], input[type=password], |
||||
input.text, input.title, |
||||
textarea, select { |
||||
margin:0.5em 0; |
||||
} |
||||
|
||||
input.text, |
||||
input.title { width: 300px; padding:5px; } |
||||
input.title { font-size:1.5em; } |
||||
textarea { width: 390px; height: 250px; padding:5px; } |
||||
|
||||
input[type=checkbox], input[type=radio], |
||||
input.checkbox, input.radio { |
||||
position:relative; top:.25em; |
||||
} |
||||
|
||||
form.inline { line-height:3; } |
||||
form.inline p { margin-bottom:0; } |
||||
|
||||
|
||||
/* Success, notice and error boxes |
||||
-------------------------------------------------------------- */ |
||||
|
||||
.error, |
||||
.notice, |
||||
.success { padding: .8em; margin-bottom: 1em; border: 2px solid #ddd; } |
||||
|
||||
.error { background: #FBE3E4; color: #8a1f11; border-color: #FBC2C4; } |
||||
.notice { background: #FFF6BF; color: #514721; border-color: #FFD324; } |
||||
.success { background: #E6EFC2; color: #264409; border-color: #C6D880; } |
||||
.error a { color: #8a1f11; } |
||||
.notice a { color: #514721; } |
||||
.success a { color: #264409; } |
@ -0,0 +1,281 @@
|
||||
/* -------------------------------------------------------------- |
||||
|
||||
grid.css |
||||
* Sets up an easy-to-use grid of 24 columns. |
||||
|
||||
By default, the grid is 950px wide, with 24 columns |
||||
spanning 30px, and a 10px margin between columns. |
||||
|
||||
If you need fewer or more columns, namespaces or semantic |
||||
element names, use the compressor script (lib/compress.rb) |
||||
|
||||
Note: Changes made in this file will not be applied when |
||||
using the compressor: make changes in lib/blueprint/grid.css.rb |
||||
|
||||
-------------------------------------------------------------- */ |
||||
|
||||
/* A container should group all your columns. */ |
||||
.container { |
||||
width: 950px; |
||||
margin: 0 auto; |
||||
} |
||||
|
||||
/* Use this class on any div.span / container to see the grid. */ |
||||
.showgrid { |
||||
background: url(src/grid.png); |
||||
} |
||||
|
||||
|
||||
/* Columns |
||||
-------------------------------------------------------------- */ |
||||
|
||||
/* Sets up basic grid floating and margin. */ |
||||
.column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 { |
||||
float: left; |
||||
margin-right: 10px; |
||||
} |
||||
|
||||
/* The last column in a row needs this class. */ |
||||
.last, div.last { margin-right: 0; } |
||||
|
||||
/* Use these classes to set the width of a column. */ |
||||
.span-1 {width: 30px;} |
||||
|
||||
.span-2 {width: 70px;} |
||||
.span-3 {width: 110px;} |
||||
.span-4 {width: 150px;} |
||||
.span-5 {width: 190px;} |
||||
.span-6 {width: 230px;} |
||||
.span-7 {width: 270px;} |
||||
.span-8 {width: 310px;} |
||||
.span-9 {width: 350px;} |
||||
.span-10 {width: 390px;} |
||||
.span-11 {width: 430px;} |
||||
.span-12 {width: 470px;} |
||||
.span-13 {width: 510px;} |
||||
.span-14 {width: 550px;} |
||||
.span-15 {width: 590px;} |
||||
.span-16 {width: 630px;} |
||||
.span-17 {width: 670px;} |
||||
.span-18 {width: 710px;} |
||||
.span-19 {width: 750px;} |
||||
.span-20 {width: 790px;} |
||||
.span-21 {width: 830px;} |
||||
.span-22 {width: 870px;} |
||||
.span-23 {width: 910px;} |
||||
.span-24, div.span-24 { width:950px; margin:0; } |
||||
|
||||
/* Use these classes to set the width of an input. */ |
||||
input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 { |
||||
border-left-width: 1px!important; |
||||
border-right-width: 1px!important; |
||||
padding-left: 5px!important; |
||||
padding-right: 5px!important; |
||||
} |
||||
|
||||
input.span-1, textarea.span-1 { width: 18px!important; } |
||||
input.span-2, textarea.span-2 { width: 58px!important; } |
||||
input.span-3, textarea.span-3 { width: 98px!important; } |
||||
input.span-4, textarea.span-4 { width: 138px!important; } |
||||
input.span-5, textarea.span-5 { width: 178px!important; } |
||||
input.span-6, textarea.span-6 { width: 218px!important; } |
||||
input.span-7, textarea.span-7 { width: 258px!important; } |
||||
input.span-8, textarea.span-8 { width: 298px!important; } |
||||
input.span-9, textarea.span-9 { width: 338px!important; } |
||||
input.span-10, textarea.span-10 { width: 378px!important; } |
||||
input.span-11, textarea.span-11 { width: 418px!important; } |
||||
input.span-12, textarea.span-12 { width: 458px!important; } |
||||
input.span-13, textarea.span-13 { width: 498px!important; } |
||||
input.span-14, textarea.span-14 { width: 538px!important; } |
||||
input.span-15, textarea.span-15 { width: 578px!important; } |
||||
input.span-16, textarea.span-16 { width: 618px!important; } |
||||
input.span-17, textarea.span-17 { width: 658px!important; } |
||||
input.span-18, textarea.span-18 { width: 698px!important; } |
||||
input.span-19, textarea.span-19 { width: 738px!important; } |
||||
input.span-20, textarea.span-20 { width: 778px!important; } |
||||
input.span-21, textarea.span-21 { width: 818px!important; } |
||||
input.span-22, textarea.span-22 { width: 858px!important; } |
||||
input.span-23, textarea.span-23 { width: 898px!important; } |
||||
input.span-24, textarea.span-24 { width: 938px!important; } |
||||
|
||||
/* Add these to a column to append empty cols. */ |
||||
|
||||
.append-1 { padding-right: 40px;} |
||||
.append-2 { padding-right: 80px;} |
||||
.append-3 { padding-right: 120px;} |
||||
.append-4 { padding-right: 160px;} |
||||
.append-5 { padding-right: 200px;} |
||||
.append-6 { padding-right: 240px;} |
||||
.append-7 { padding-right: 280px;} |
||||
.append-8 { padding-right: 320px;} |
||||
.append-9 { padding-right: 360px;} |
||||
.append-10 { padding-right: 400px;} |
||||
.append-11 { padding-right: 440px;} |
||||
.append-12 { padding-right: 480px;} |
||||
.append-13 { padding-right: 520px;} |
||||
.append-14 { padding-right: 560px;} |
||||
.append-15 { padding-right: 600px;} |
||||
.append-16 { padding-right: 640px;} |
||||
.append-17 { padding-right: 680px;} |
||||
.append-18 { padding-right: 720px;} |
||||
.append-19 { padding-right: 760px;} |
||||
.append-20 { padding-right: 800px;} |
||||
.append-21 { padding-right: 840px;} |
||||
.append-22 { padding-right: 880px;} |
||||
.append-23 { padding-right: 920px;} |
||||
|
||||
/* Add these to a column to prepend empty cols. */ |
||||
|
||||
.prepend-1 { padding-left: 40px;} |
||||
.prepend-2 { padding-left: 80px;} |
||||
.prepend-3 { padding-left: 120px;} |
||||
.prepend-4 { padding-left: 160px;} |
||||
.prepend-5 { padding-left: 200px;} |
||||
.prepend-6 { padding-left: 240px;} |
||||
.prepend-7 { padding-left: 280px;} |
||||
.prepend-8 { padding-left: 320px;} |
||||
.prepend-9 { padding-left: 360px;} |
||||
.prepend-10 { padding-left: 400px;} |
||||
.prepend-11 { padding-left: 440px;} |
||||
.prepend-12 { padding-left: 480px;} |
||||
.prepend-13 { padding-left: 520px;} |
||||
.prepend-14 { padding-left: 560px;} |
||||
.prepend-15 { padding-left: 600px;} |
||||
.prepend-16 { padding-left: 640px;} |
||||
.prepend-17 { padding-left: 680px;} |
||||
.prepend-18 { padding-left: 720px;} |
||||
.prepend-19 { padding-left: 760px;} |
||||
.prepend-20 { padding-left: 800px;} |
||||
.prepend-21 { padding-left: 840px;} |
||||
.prepend-22 { padding-left: 880px;} |
||||
.prepend-23 { padding-left: 920px;} |
||||
|
||||
|
||||
/* Border on right hand side of a column. */ |
||||
div.border { |
||||
padding-right: 4px; |
||||
margin-right: 5px; |
||||
border-right: 1px solid #eee; |
||||
} |
||||
|
||||
/* Border with more whitespace, spans one column. */ |
||||
div.colborder { |
||||
padding-right: 24px; |
||||
margin-right: 25px; |
||||
border-right: 1px solid #eee; |
||||
} |
||||
|
||||
|
||||
/* Use these classes on an element to push it into the |
||||
next column, or to pull it into the previous column. */ |
||||
|
||||
|
||||
.pull-1 { margin-left: -40px; } |
||||
.pull-2 { margin-left: -80px; } |
||||
.pull-3 { margin-left: -120px; } |
||||
.pull-4 { margin-left: -160px; } |
||||
.pull-5 { margin-left: -200px; } |
||||
.pull-6 { margin-left: -240px; } |
||||
.pull-7 { margin-left: -280px; } |
||||
.pull-8 { margin-left: -320px; } |
||||
.pull-9 { margin-left: -360px; } |
||||
.pull-10 { margin-left: -400px; } |
||||
.pull-11 { margin-left: -440px; } |
||||
.pull-12 { margin-left: -480px; } |
||||
.pull-13 { margin-left: -520px; } |
||||
.pull-14 { margin-left: -560px; } |
||||
.pull-15 { margin-left: -600px; } |
||||
.pull-16 { margin-left: -640px; } |
||||
.pull-17 { margin-left: -680px; } |
||||
.pull-18 { margin-left: -720px; } |
||||
.pull-19 { margin-left: -760px; } |
||||
.pull-20 { margin-left: -800px; } |
||||
.pull-21 { margin-left: -840px; } |
||||
.pull-22 { margin-left: -880px; } |
||||
.pull-23 { margin-left: -920px; } |
||||
.pull-24 { margin-left: -960px; } |
||||
|
||||
.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float: left; position:relative;} |
||||
|
||||
|
||||
.push-1 { margin: 0 -40px 1.5em 40px; } |
||||
.push-2 { margin: 0 -80px 1.5em 80px; } |
||||
.push-3 { margin: 0 -120px 1.5em 120px; } |
||||
.push-4 { margin: 0 -160px 1.5em 160px; } |
||||
.push-5 { margin: 0 -200px 1.5em 200px; } |
||||
.push-6 { margin: 0 -240px 1.5em 240px; } |
||||
.push-7 { margin: 0 -280px 1.5em 280px; } |
||||
.push-8 { margin: 0 -320px 1.5em 320px; } |
||||
.push-9 { margin: 0 -360px 1.5em 360px; } |
||||
.push-10 { margin: 0 -400px 1.5em 400px; } |
||||
.push-11 { margin: 0 -440px 1.5em 440px; } |
||||
.push-12 { margin: 0 -480px 1.5em 480px; } |
||||
.push-13 { margin: 0 -520px 1.5em 520px; } |
||||
.push-14 { margin: 0 -560px 1.5em 560px; } |
||||
.push-15 { margin: 0 -600px 1.5em 600px; } |
||||
.push-16 { margin: 0 -640px 1.5em 640px; } |
||||
.push-17 { margin: 0 -680px 1.5em 680px; } |
||||
.push-18 { margin: 0 -720px 1.5em 720px; } |
||||
.push-19 { margin: 0 -760px 1.5em 760px; } |
||||
.push-20 { margin: 0 -800px 1.5em 800px; } |
||||
.push-21 { margin: 0 -840px 1.5em 840px; } |
||||
.push-22 { margin: 0 -880px 1.5em 880px; } |
||||
.push-23 { margin: 0 -920px 1.5em 920px; } |
||||
.push-24 { margin: 0 -960px 1.5em 960px; } |
||||
|
||||
.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float: right; position:relative;} |
||||
|
||||
|
||||
/* Misc classes and elements |
||||
-------------------------------------------------------------- */ |
||||
|
||||
/* In case you need to add a gutter above/below an element */ |
||||
.prepend-top { |
||||
margin-top:1.5em; |
||||
} |
||||
.append-bottom { |
||||
margin-bottom:1.5em; |
||||
} |
||||
|
||||
/* Use a .box to create a padded box inside a column. */ |
||||
.box { |
||||
padding: 1.5em; |
||||
margin-bottom: 1.5em; |
||||
background: #E5ECF9; |
||||
} |
||||
|
||||
/* Use this to create a horizontal ruler across a column. */ |
||||
hr { |
||||
background: #ddd; |
||||
color: #ddd; |
||||
clear: both; |
||||
float: none; |
||||
width: 100%; |
||||
height: .1em; |
||||
margin: 0 0 1.45em; |
||||
border: none; |
||||
} |
||||
hr.space { |
||||
background: #fff; |
||||
color: #fff; |
||||
} |
||||
|
||||
|
||||
/* Clearing floats without extra markup |
||||
Based on How To Clear Floats Without Structural Markup by PiE |
||||
[http://www.positioniseverything.net/easyclearing.html] */ |
||||
|
||||
.clearfix:after, .container:after { |
||||
content: "\0020"; |
||||
display: block; |
||||
height: 0; |
||||
clear: both; |
||||
visibility: hidden; |
||||
overflow:hidden; |
||||
} |
||||
.clearfix, .container {display: block;} |
||||
|
||||
/* Regular clearing |
||||
apply to column that should drop below previous ones. */ |
||||
|
||||
.clear { clear:both; } |
After Width: | Height: | Size: 161 B |
@ -0,0 +1,76 @@
|
||||
/* -------------------------------------------------------------- |
||||
|
||||
ie.css |
||||
|
||||
Contains every hack for Internet Explorer, |
||||
so that our core files stay sweet and nimble. |
||||
|
||||
-------------------------------------------------------------- */ |
||||
|
||||
/* Make sure the layout is centered in IE5 */ |
||||
body { text-align: center; } |
||||
.container { text-align: left; } |
||||
|
||||
/* Fixes IE margin bugs */ |
||||
* html .column, * html div.span-1, * html div.span-2, |
||||
* html div.span-3, * html div.span-4, * html div.span-5, |
||||
* html div.span-6, * html div.span-7, * html div.span-8, |
||||
* html div.span-9, * html div.span-10, * html div.span-11, |
||||
* html div.span-12, * html div.span-13, * html div.span-14, |
||||
* html div.span-15, * html div.span-16, * html div.span-17, |
||||
* html div.span-18, * html div.span-19, * html div.span-20, |
||||
* html div.span-21, * html div.span-22, * html div.span-23, |
||||
* html div.span-24 { overflow-x: hidden; } |
||||
|
||||
|
||||
/* Elements |
||||
-------------------------------------------------------------- */ |
||||
|
||||
/* Fixes incorrect styling of legend in IE6. */ |
||||
* html legend { margin:0px -8px 16px 0; padding:0; } |
||||
|
||||
/* Fixes incorrect placement of ol numbers in IE6/7. */ |
||||
ol { margin-left:2em; } |
||||
|
||||
/* Fixes wrong line-height on sup/sub in IE. */ |
||||
sup { vertical-align: text-top; } |
||||
sub { vertical-align: text-bottom; } |
||||
|
||||
/* Fixes IE7 missing wrapping of code elements. */ |
||||
html>body p code { *white-space: normal; } |
||||
|
||||
/* IE 6&7 has problems with setting proper <hr> margins. */ |
||||
hr { margin: -8px auto 11px; } |
||||
|
||||
/* Explicitly set interpolation, allowing dynamically resized images to not look horrible */ |
||||
img { -ms-interpolation-mode: bicubic; } |
||||
|
||||
/* Clearing |
||||
-------------------------------------------------------------- */ |
||||
|
||||
/* Makes clearfix actually work in IE */ |
||||
.clearfix, .container {display: inline-block;} |
||||
* html .clearfix, |
||||
* html .container {height: 1%;} |
||||
|
||||
|
||||
/* Forms |
||||
-------------------------------------------------------------- */ |
||||
|
||||
/* Fixes padding on fieldset */ |
||||
fieldset {padding-top: 0;} |
||||
|
||||
/* Fixes rule that IE 6 ignores */ |
||||
input.text, input.title {background-color:#fff;border:1px solid #bbb;} |
||||
input.text:focus, input.title:focus {border-color:#666;} |
||||
input.text, input.title, textarea, select {margin:0.5em 0;} |
||||
input.checkbox, input.radio {position:relative; top:.25em;} |
||||
|
||||
/* Fixes alignment of inline form elements */ |
||||
form.inline div, form.inline p {vertical-align:middle;} |
||||
form.inline label {position:relative;top:-0.25em;} |
||||
form.inline input.checkbox, form.inline input.radio, |
||||
form.inline input.button, form.inline button { |
||||
margin:0.5em 0; |
||||
} |
||||
button, input.button {position:relative;top:0.25em;} |
@ -0,0 +1,85 @@
|
||||
/* -------------------------------------------------------------- |
||||
|
||||
print.css |
||||
* Gives you some sensible styles for printing pages. |
||||
* See Readme file in this directory for further instructions. |
||||
|
||||
Some additions you'll want to make, customized to your markup: |
||||
#header, #footer, #navigation { display:none; } |
||||
|
||||
-------------------------------------------------------------- */ |
||||
|
||||
body { |
||||
line-height: 1.5; |
||||
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; |
||||
color:#000; |
||||
background: none; |
||||
font-size: 10pt; |
||||
} |
||||
|
||||
|
||||
/* Layout |
||||
-------------------------------------------------------------- */ |
||||
|
||||
.container { |
||||
background: none; |
||||
} |
||||
|
||||
hr { |
||||
background:#ccc; |
||||
color:#ccc; |
||||
width:100%; |
||||
height:2px; |
||||
margin:2em 0; |
||||
padding:0; |
||||
border:none; |
||||
} |
||||
hr.space { |
||||
background: #fff; |
||||
color: #fff; |
||||
} |
||||
|
||||
|
||||
/* Text |
||||
-------------------------------------------------------------- */ |
||||
|
||||
h1,h2,h3,h4,h5,h6 { font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif; } |
||||
code { font:.9em "Courier New", Monaco, Courier, monospace; } |
||||
|
||||
img { float:left; margin:1.5em 1.5em 1.5em 0; } |
||||
a img { border:none; } |
||||
p img.top { margin-top: 0; } |
||||
|
||||
blockquote { |
||||
margin:1.5em; |
||||
padding:1em; |
||||
font-style:italic; |
||||
font-size:.9em; |
||||
} |
||||
|
||||
.small { font-size: .9em; } |
||||
.large { font-size: 1.1em; } |
||||
.quiet { color: #999; } |
||||
.hide { display:none; } |
||||
|
||||
|
||||
/* Links |
||||
-------------------------------------------------------------- */ |
||||
|
||||
a:link, a:visited { |
||||
background: transparent; |
||||
font-weight:700; |
||||
text-decoration: underline; |
||||
} |
||||
|
||||
a:link:after, a:visited:after { |
||||
content: " (" attr(href) ")"; |
||||
font-size: 90%; |
||||
} |
||||
|
||||
/* If you're having trouble printing relative links, uncomment and customize this: |
||||
(note: This is valid CSS3, but it still won't go through the W3C CSS Validator) */ |
||||
|
||||
/* a[href^="/"]:after { |
||||
content: " (http://www.yourdomain.com" attr(href) ") "; |
||||
} */ |
@ -0,0 +1,38 @@
|
||||
/* -------------------------------------------------------------- |
||||
|
||||
reset.css |
||||
* Resets default browser CSS. |
||||
|
||||
-------------------------------------------------------------- */ |
||||
|
||||
html, body, div, span, object, iframe, |
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre, |
||||
a, abbr, acronym, address, code, |
||||
del, dfn, em, img, q, dl, dt, dd, ol, ul, li, |
||||
fieldset, form, label, legend, |
||||
table, caption, tbody, tfoot, thead, tr, th, td { |
||||
margin: 0; |
||||
padding: 0; |
||||
border: 0; |
||||
font-weight: inherit; |
||||
font-style: inherit; |
||||
font-size: 100%; |
||||
font-family: inherit; |
||||
vertical-align: baseline; |
||||
} |
||||
|
||||
body { |
||||
line-height: 1.5; |
||||
} |
||||
|
||||
/* Tables still need 'cellspacing="0"' in the markup. */ |
||||
table { border-collapse: separate; border-spacing: 0; } |
||||
caption, th, td { text-align: left; font-weight: normal; } |
||||
table, td, th { vertical-align: middle; } |
||||
|
||||
/* Remove possible quote marks (") from <q>, <blockquote>. */ |
||||
blockquote:before, blockquote:after, q:before, q:after { content: ""; } |
||||
blockquote, q { quotes: "" ""; } |
||||
|
||||
/* Remove annoying border on linked images. */ |
||||
a img { border: none; } |
@ -0,0 +1,105 @@
|
||||
/* -------------------------------------------------------------- |
||||
|
||||
typography.css |
||||
* Sets up some sensible default typography. |
||||
|
||||
-------------------------------------------------------------- */ |
||||
|
||||
/* Default font settings. |
||||
The font-size percentage is of 16px. (0.75 * 16px = 12px) */ |
||||
body { |
||||
font-size: 75%; |
||||
color: #222; |
||||
background: #fff; |
||||
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; |
||||
} |
||||
|
||||
|
||||
/* Headings |
||||
-------------------------------------------------------------- */ |
||||
|
||||
h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #111; } |
||||
|
||||
h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; } |
||||
h2 { font-size: 2em; margin-bottom: 0.75em; } |
||||
h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; } |
||||
h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; } |
||||
h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; } |
||||
h6 { font-size: 1em; font-weight: bold; } |
||||
|
||||
h1 img, h2 img, h3 img, |
||||
h4 img, h5 img, h6 img { |
||||
margin: 0; |
||||
} |
||||
|
||||
|
||||
/* Text elements |
||||
-------------------------------------------------------------- */ |
||||
|
||||
p { margin: 0 0 1.5em; } |
||||
p img.left { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; } |
||||
p img.right { float: right; margin: 1.5em 0 1.5em 1.5em; } |
||||
|
||||
a:focus, |
||||
a:hover { color: #000; } |
||||
a { color: #009; text-decoration: underline; } |
||||
|
||||
blockquote { margin: 1.5em; color: #666; font-style: italic; } |
||||
strong { font-weight: bold; } |
||||
em,dfn { font-style: italic; } |
||||
dfn { font-weight: bold; } |
||||
sup, sub { line-height: 0; } |
||||
|
||||
abbr, |
||||
acronym { border-bottom: 1px dotted #666; } |
||||
address { margin: 0 0 1.5em; font-style: italic; } |
||||
del { color:#666; } |
||||
|
||||
pre { margin: 1.5em 0; white-space: pre; } |
||||
pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; } |
||||
|
||||
|
||||
/* Lists |
||||
-------------------------------------------------------------- */ |
||||
|
||||
li ul, |
||||
li ol { margin:0 1.5em; } |
||||
ul, ol { margin: 0 1.5em 1.5em 1.5em; } |
||||
|
||||
ul { list-style-type: disc; } |
||||
ol { list-style-type: decimal; } |
||||
|
||||
dl { margin: 0 0 1.5em 0; } |
||||
dl dt { font-weight: bold; } |
||||
dd { margin-left: 1.5em;} |
||||
|
||||
|
||||
/* Tables |
||||
-------------------------------------------------------------- */ |
||||
|
||||
table { margin-bottom: 1.4em; width:100%; } |
||||
th { font-weight: bold; } |
||||
thead th { background: #c3d9ff; } |
||||
th,td,caption { padding: 4px 10px 4px 5px; } |
||||
tr.even td { background: #e5ecf9; } |
||||
tfoot { font-style: italic; } |
||||
caption { background: #eee; } |
||||
|
||||
|
||||
/* Misc classes |
||||
-------------------------------------------------------------- */ |
||||
|
||||
.small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; } |
||||
.large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; } |
||||
.hide { display: none; } |
||||
|
||||
.quiet { color: #666; } |
||||
.loud { color: #000; } |
||||
.highlight { background:#ff0; } |
||||
.added { background:#060; color: #fff; } |
||||
.removed { background:#900; color: #fff; } |
||||
|
||||
.first { margin-left:0; padding-left:0; } |
||||
.last { margin-right:0; padding-right:0; } |
||||
.top { margin-top:0; padding-top:0; } |
||||
.bottom { margin-bottom:0; padding-bottom:0; } |
After Width: | Height: | Size: 64 KiB |
@ -0,0 +1,362 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
||||
|
||||
<html> |
||||
|
||||
<head> |
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
||||
<title>Guidely - MadeByAmp</title> |
||||
|
||||
<style type="text/css" media="screen"> |
||||
|
||||
|
||||
* { padding: 0; margin: 0; } |
||||
|
||||
body |
||||
{ |
||||
background: #DDD; |
||||
font: 12px/1.7em arial, sans-serif; |
||||
margin: 0 auto 75px; |
||||
} |
||||
|
||||
button { padding: 4px 8px; } |
||||
|
||||
ul { margin-left: 24px; margin-bottom: 2em; } |
||||
|
||||
.demo { font-size: 16px; } |
||||
</style> |
||||
|
||||
<link rel="stylesheet" href="./example_files/style.css" type="text/css" media="screen" title="no title" charset="utf-8" /> |
||||
|
||||
|
||||
|
||||
|
||||
</head> |
||||
|
||||
<body id=""> |
||||
|
||||
<div id="wrapper"> |
||||
|
||||
<h1>Guidely - MadeByAmp</h1> |
||||
|
||||
<p>Guidely is a functional jQuery plugin that facilitates guided website tours for your new or returning website users.</p> |
||||
|
||||
<br /> |
||||
|
||||
<p>To get started with Guidely, add the guidely.css stylesheet to your document:</p> |
||||
|
||||
<pre> |
||||
<link rel="stylesheet" href="guidely/guidely.css" type="text/css" charset="utf-8" /> |
||||
</pre> |
||||
|
||||
<p>Also add the Guidely javascript file to your document:</p> |
||||
|
||||
<pre> |
||||
<script src="guidely/guidely.js"></script> |
||||
</pre> |
||||
|
||||
|
||||
|
||||
<p class="demo"><a href="./demos/website-1/">Demo #1</a></p> |
||||
<p class="demo"><a href="./demos/website-2/">Demo #2</a></p> |
||||
<p class="demo"><a href="./demos/website-3/">Demo #3</a></p> |
||||
<p class="demo"><a href="./demos/positions/">Positions</a></p> |
||||
|
||||
|
||||
<p style="background: #FFC;">For support email the author through his Code Canyon author page <a href="http://codecanyon.net/user/MadeByAmp">http://codecanyon.net/user/MadeByAmp</a></p> |
||||
|
||||
<br /> |
||||
<hr /> |
||||
|
||||
<br /><br /> |
||||
|
||||
<h2>Adding Guides</h2> |
||||
|
||||
<ul> |
||||
<li>All guides must be added before calling the init ()</li> |
||||
<li>Required options are attachTo and text.</li> |
||||
<li>Valid values for anchor are top-left, top-middle, |
||||
top-right, middle-left, middle-middle, middle-right, bottom-left, bottom-middle, bottom-right</li> |
||||
</ul> |
||||
|
||||
|
||||
<pre><code>guidely.add ({ |
||||
attachTo: '#header' |
||||
, title: 'Guide Title' |
||||
, text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit' |
||||
, anchor: 'top-left' |
||||
}); |
||||
</code></pre> |
||||
|
||||
<br /> |
||||
<hr /> |
||||
|
||||
<br /><br /> |
||||
|
||||
|
||||
<h2>Starting Guidely</h2> |
||||
|
||||
<ul> |
||||
<li>Before you initialize make sure all of the guides you need are set up.</li> |
||||
<li>If welcome option is set to true, welcomeTitle and welcomeText default messages will show. You can customize |
||||
this option by passing in a welcome and/or initial text for your guide.</li> |
||||
<li>All other options are set to true as a default (please see table below).</li> |
||||
</ul> |
||||
|
||||
|
||||
<pre><code>guidely.init ({ |
||||
welcome: true |
||||
, welcomeTitle: 'Welcome to the guided tour!' |
||||
, welcomeText: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit' |
||||
}); |
||||
</code></pre> |
||||
|
||||
<br /> |
||||
<hr /> |
||||
|
||||
<br /><br /> |
||||
|
||||
|
||||
<h2>Options</h2> |
||||
|
||||
|
||||
|
||||
|
||||
<h3>guidely.init ()</h3> |
||||
<table border="0"> |
||||
<tbody> |
||||
<tr> |
||||
<th width="130">Option Name</th> |
||||
|
||||
<th width="130">Default Value</th> |
||||
|
||||
<th>Explanation</th> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>welcome</td> |
||||
|
||||
<td><em>true</em></td> |
||||
|
||||
<td>Displays the welcome screen before initializing the guide numbers & content.</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>overlay</td> |
||||
|
||||
<td><em>true</em></td> |
||||
|
||||
<td>Adds an overlay on top of website content</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>startTrigger</td> |
||||
|
||||
<td><em>true</em></td> |
||||
|
||||
<td>Displays a start tour button so users can view the guide when necessary.</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>escClose</td> |
||||
|
||||
<td><em>true</em></td> |
||||
|
||||
<td>Enables the guide to be closed using the esc key</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>keyNav</td> |
||||
|
||||
<td><em>true</em></td> |
||||
|
||||
<td>Allows users to navigate the guides using the left & right arrow keys.</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>welcomeTitle</td> |
||||
|
||||
<td><em>Welcome to the guided tour!</em></td> |
||||
|
||||
<td>Replaces the default welcome title.</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>welcomeText</td> |
||||
|
||||
<td><em>Click start to view a brief walk through of our website.</em></td> |
||||
|
||||
<td>Replaces the default welcome text.</td> |
||||
</tr> |
||||
</tbody> |
||||
</table> |
||||
|
||||
<br /> |
||||
|
||||
<h3>guidely.add ()</h3> |
||||
<table border="0"> |
||||
<tbody> |
||||
<tr> |
||||
<th width="130">Option Name</th> |
||||
|
||||
<th width="130">Default Value</th> |
||||
|
||||
<th>Explanation</th> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>attachTo</td> |
||||
|
||||
<td><em>empty selector</em></td> |
||||
|
||||
<td>Accepts a jQuery selector to attach the number to.</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>anchor</td> |
||||
|
||||
<td><em>top-left</em></td> |
||||
|
||||
<td>Defines where on the selected object the guide number will be attached to. Valid options are <strong><em>top-left, top-middle, top-right, middle-left, middle-middle, middle-right, bottom-left, bottom-middle, bottom-right</em></strong></td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>title</td> |
||||
|
||||
<td><em>(optional string)</em></td> |
||||
|
||||
<td>Optional title to display in the guide.</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>text</td> |
||||
|
||||
<td><em>(required string)</em></td> |
||||
|
||||
<td>Required text to display in the guide.</td> |
||||
</tr> |
||||
|
||||
|
||||
</tbody> |
||||
</table> |
||||
|
||||
<br /><br /> |
||||
<hr /> |
||||
<br /><br /> |
||||
|
||||
<h2>API</h2> |
||||
|
||||
<table border="0"> |
||||
<tbody> |
||||
<tr> |
||||
<th width="130">Option Name</th> |
||||
|
||||
<th width="130">Parameters</th> |
||||
|
||||
<th>Explanation</th> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>init</td> |
||||
|
||||
<td>config</td> |
||||
|
||||
<td>Accepts options config and prepares guidely</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>add</td> |
||||
|
||||
<td>config</td> |
||||
|
||||
<td>Accepts an options config and queues the guide for creation</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>start</td> |
||||
|
||||
<td></td> |
||||
|
||||
<td>Starts guidely. Shows the numbers and first guide</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>show</td> |
||||
|
||||
<td><em>guide number</em></td> |
||||
|
||||
<td>Accepts a guide number and displays the corresponding guide</em></td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>next</td> |
||||
|
||||
<td><em></em></td> |
||||
|
||||
<td>Cycles to the next guide if available.</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>prev</td> |
||||
|
||||
<td><em></em></td> |
||||
|
||||
<td>Cycles to the previous guide if available</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>close</td> |
||||
|
||||
<td></td> |
||||
|
||||
<td>Disables guidely; can be restarted using guidely.start ()</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>hideGuides</td> |
||||
|
||||
<td></td> |
||||
|
||||
<td>Hides all visible guides</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>showNumbers</td> |
||||
|
||||
<td></td> |
||||
|
||||
<td>Makes all guide numbers visible</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>hideNumbers</td> |
||||
|
||||
<td></td> |
||||
|
||||
<td>Hides all guide numbers</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>showOverlay</td> |
||||
|
||||
<td></td> |
||||
|
||||
<td>Makes the overlay visible</td> |
||||
</tr> |
||||
|
||||
<tr> |
||||
<td>hideOverlay</td> |
||||
|
||||
<td></td> |
||||
|
||||
<td>Hides the overlady</td> |
||||
</tr> |
||||
|
||||
</tbody> |
||||
</table> |
||||
|
||||
</div> <!-- #wrapper --> |
||||
|
||||
</body> |
||||
|
||||
</html> |
After Width: | Height: | Size: 2.4 KiB |
@ -0,0 +1,144 @@
|
||||
.guidely-number { |
||||
background: url(guidely-number.png) no-repeat 0 0; |
||||
width: 45px; |
||||
height: 45px; |
||||
display: none; |
||||
position: absolute; |
||||
cursor: pointer; |
||||
z-index: 10002; |
||||
} |
||||
|
||||
.guidely-number span { |
||||
width: 43px; |
||||
height: 43px; |
||||
font-family: arial, sans-serif; |
||||
font-size: 20px; |
||||
font-weight: bold; |
||||
text-align: center; |
||||
color: #FFF; |
||||
text-align: center; |
||||
display: block; |
||||
line-height: 44px; |
||||
} |
||||
|
||||
.guidely-guide { |
||||
background: #FFF; |
||||
width: 300px; |
||||
display: none; |
||||
border: 3px solid #999; |
||||
|
||||
-webkit-border-radius:5px; |
||||
-moz-border-radius:5px; |
||||
border-radius:5px; |
||||
|
||||
-webkit-box-shadow:0 0 12px rgba(0,0,0,0.4); |
||||
-moz-box-shadow:0 0 12px rgba(0,0,0,0.4); |
||||
box-shadow:0 0 12px rgba(0,0,0,0.4); |
||||
|
||||
z-index: 10001; |
||||
} |
||||
|
||||
.guidely-guide h4 { |
||||
font-family: georgia, arial, sans-serif; |
||||
font-size: 15px; |
||||
font-weight: bold; |
||||
color: #333; |
||||
padding: 0; |
||||
margin: 0 0 1em; |
||||
border-bottom: 1px dotted #CCC; |
||||
} |
||||
|
||||
.guidely-guide-pad { |
||||
font-family: arial, sans-serif; |
||||
font-size: 12px; |
||||
line-height: 1.7em; |
||||
padding: 15px 15px 5px 30px; |
||||
|
||||
} |
||||
|
||||
.guidely-anchor-right .guidely-guide-pad { padding: 15px 30px 5px 15px; } |
||||
|
||||
.guidely-anchor-right .guidely-close-trigger { right: 30px; } |
||||
|
||||
.guidely-popup |
||||
{ |
||||
color: #444; |
||||
display:block; |
||||
padding: 0; |
||||
background: #fff; |
||||
|
||||
-webkit-border-top-left-radius: 4px; |
||||
-webkit-border-top-right-radius: 4px; |
||||
-moz-border-radius-topleft: 4px; |
||||
-moz-border-radius-topright: 4px; |
||||
border-top-left-radius: 4px; |
||||
border-top-right-radius: 4px; |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.guidely-controls { |
||||
background: #EEE; |
||||
text-align: right; |
||||
padding: 7px 10px; |
||||
margin-top: 1em; |
||||
} |
||||
|
||||
.guidely-controls button { |
||||
font-size: 11px; |
||||
padding: 3px 8px; |
||||
*padding: 1px 4px; |
||||
cursor: pointer; |
||||
} |
||||
|
||||
.guidely-overlay |
||||
{ |
||||
position: fixed; |
||||
top: 0px; |
||||
left: 0px; |
||||
height:100%; |
||||
width:100%; |
||||
background-color: #000; |
||||
z-index: 10000; |
||||
|
||||
filter: alpha(opacity=30); |
||||
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=30); |
||||
-moz-opacity: 0.30; |
||||
opacity:0.30; |
||||
} |
||||
|
||||
.guidely-start-trigger { |
||||
background: #444; |
||||
background: rgba(0,0,0,.6); |
||||
text-decoration: none; |
||||
color: #FFF; |
||||
cursor: pointer; |
||||
padding: 4px 10px 4px 12px; |
||||
position: fixed; |
||||
top: 0; |
||||
right: 0; |
||||
|
||||
z-index: 9999; |
||||
|
||||
-webkit-border-bottom-left-radius: 5px; |
||||
-moz-border-radius-bottomleft: 5px; |
||||
border-bottom-left-radius: 5px; |
||||
|
||||
} |
||||
|
||||
.guidely-close-trigger { |
||||
font-family: arial, sans-serif; |
||||
font-size: 11px; |
||||
font-weight: bold; |
||||
text-decoration: none; |
||||
color: #AAA; |
||||
position: absolute; |
||||
right: 7px; |
||||
top: 0px; |
||||
} |
||||
|
||||
#guide-welcome { width: 350px; } |
||||
|
||||
#guide-welcome .guidely-guide-pad { padding: 15px 15px 5px 15px; } |
@ -0,0 +1,85 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
||||
|
||||
<html> |
||||
|
||||
<head> |
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
||||
<title>Guidely Demos - MadeByAmp</title> |
||||
|
||||
<style type="text/css" media="screen"> |
||||
|
||||
|
||||
* { padding: 0; margin: 0; } |
||||
|
||||
body |
||||
{ |
||||
background: #FFF; |
||||
font: 12px/1.7em arial, sans-serif; |
||||
margin: 35px 50px; |
||||
} |
||||
|
||||
a { |
||||
color: #06C; |
||||
} |
||||
|
||||
ol { |
||||
width: 175px; |
||||
float: left; |
||||
} |
||||
|
||||
.clear { |
||||
clear: both; |
||||
} |
||||
|
||||
#bar_container { |
||||
width: 410px; |
||||
margin-top: 3em; |
||||
float: left; |
||||
} |
||||
|
||||
.column { |
||||
width: 160px; |
||||
float: left; |
||||
margin-left: 15px; |
||||
} |
||||
|
||||
h3 { text-transform: uppercase; font-size: 12px; color: #777; margin-bottom: 1em; } |
||||
h4 { color: #C93; margin-bottom: .5em; } |
||||
ol { margin-left: 20px; margin-bottom: 2.5em; } |
||||
ol li { font-size: 15px; line-height: 1.7em; } |
||||
</style> |
||||
|
||||
<link rel="stylesheet" href="./msgAlert/css/msgAlert.css" type="text/css" media="screen" title="no title" charset="utf-8" /> |
||||
<link rel="stylesheet" href="./msgGrowl/css/msgGrowl.css" type="text/css" media="screen" title="no title" charset="utf-8" /> |
||||
<link rel="stylesheet" href="./msgBar/css/msgBar.css" type="text/css" media="screen" title="no title" charset="utf-8" /> |
||||
|
||||
|
||||
<script type="text/javascript" charset="utf-8" src="./msgAlert/js/jquery-1.6.1.min.js"></script> |
||||
<script type="text/javascript" charset="utf-8" src="./msgAlert/js/msgAlert.js"></script> |
||||
<script type="text/javascript" charset="utf-8" src="./msgGrowl/js/msgGrowl.js"></script> |
||||
<script type="text/javascript" charset="utf-8" src="./msgBar/js/msgBar.js"></script> |
||||
</head> |
||||
|
||||
<body id=""> |
||||
|
||||
<img src="./logo.png" /> |
||||
|
||||
<br /><br /> |
||||
|
||||
<div class="column"> |
||||
<h3>Guidely Demos</h3> |
||||
|
||||
<ol> |
||||
<li><a href="./website-1" class="">Demo #1</a></li> |
||||
<li><a href="./website-2" class="">Demo #2</a></li> |
||||
<li><a href="./website-3" class="">Demo #3</a></li> |
||||
<li><a href="./positions" class="">Positions</a></li> |
||||
</ol> |
||||
</div> |
||||
|
||||
|
||||
|
||||
</body> |
||||
|
||||
</html> |
After Width: | Height: | Size: 3.7 KiB |
@ -0,0 +1,17 @@
|
||||
$(function () { |
||||
|
||||
var anchors = ['top-left', 'top-middle', 'top-right', 'middle-left', 'middle-middle', 'middle-right', 'bottom-left', 'bottom-middle', 'bottom-right']; |
||||
|
||||
for (var i=0, l=anchors.length; i<l; i++) { |
||||
guidely.add ({ |
||||
attachTo: '#demo' |
||||
, title: 'Title' |
||||
, text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolo.' |
||||
, anchor: anchors[i] |
||||
});
|
||||
} |
||||
|
||||
guidely.init ({ showOnStart: true, welcome: false, overlay: true, startTrigger: true });
|
||||
//guidely.hideGuides ();
|
||||
//guidely.hideOverlay ();
|
||||
}); |
@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
||||
|
||||
<html> |
||||
|
||||
<head> |
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
||||
<title>Guidely Box Demo</title> |
||||
|
||||
<style type="text/css" media="screen"> |
||||
|
||||
* { padding: 0; margin: 0; } |
||||
|
||||
body { font: 12px/1.7em arial, sans-serif; } |
||||
|
||||
#demo { |
||||
background: #333; |
||||
width: 900px; |
||||
height: 500px; |
||||
position: absolute; |
||||
top: 100px; |
||||
left: 50%; |
||||
margin-left: -450px; |
||||
} |
||||
</style> |
||||
|
||||
<link rel="stylesheet" href="../guidely/guidely.css" type="text/css" media="screen" title="no title" charset="utf-8" /> |
||||
|
||||
<script type="text/javascript" charset="utf-8" src="../guidely/jquery-1.6.2.min.js"></script> |
||||
<script type="text/javascript" charset="utf-8" src="../guidely/guidely.pack.js"></script> |
||||
|
||||
<script type="text/javascript" charset="utf-8" src="demo.js"></script> |
||||
|
||||
|
||||
</head> |
||||
|
||||
<body id=""> |
||||
|
||||
<div id="demo"> |
||||
|
||||
</div> |
||||
|
||||
</body> |
||||
|
||||
</html> |
@ -0,0 +1,41 @@
|
||||
/* Handcoded by http://psdcssxhtml.com */ |
||||
|
||||
/* clearing & floating */ |
||||
.clearingfix{display:inline-block;} |
||||
/* Hides from IE-mac \*/ |
||||
* html .clearingfix{height:1%;} |
||||
.clearingfix{display:block;} |
||||
/* End hide from IE-mac */ |
||||
* html .floatbox{width:100%;} |
||||
.ie_fix_floats{width:100%;padding:0 1px 0 1px;margin:0 -1px 0 -1px;overflow:hidden;} |
||||
/* Escaping Floats Bug */ |
||||
/* Hides from IE-mac \*/ |
||||
.floatholder{height:1%;} |
||||
/* End hide from IE-mac */ |
||||
/* Peekaboo Bug */ |
||||
/* * html #left{position:relative;}*/ |
||||
/* * html #right{position:relative;}*/ |
||||
/* * html #main{position:relative;}*/ |
||||
/* force hasLayout */ |
||||
#wrapper, #header, #top, #middle, #bottom{zoom:1;} |
||||
/* Doubled Float Margins */ |
||||
* html #left{display:inline;} |
||||
* html #right{display:inline;} |
||||
* html .float-left{display:inline;} |
||||
* html .float-right{display:inline;} |
||||
/* IE and italics Problem */ |
||||
* html #left_container{overflow:visible;} |
||||
* html #right_container{overflow:visible;} |
||||
* html #main_container{overflow:visible;} |
||||
* html i, * html em{overflow:visible;display:inline-block;} |
||||
/* Expanding Box Problem */ |
||||
* html #left_container{word-wrap:break-word;} |
||||
* html #right_container{word-wrap:break-word;} |
||||
* html #main_container{word-wrap:break-word;} |
||||
/* Disappearing List-Background Bug */ |
||||
/* * html ul{position:relative;}*/ |
||||
/* * html ol{position:relative;}*/ |
||||
/* * html dl{position:relative;}*/ |
||||
/* * html blockquote{zoom:1 }*/ |
||||
/* IE/Win Guillotine Bug */ |
||||
a, a:hover{background-color:transparent;} |
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html> |
@ -0,0 +1,752 @@
|
||||
/* Handcoded by http://psdcssxhtml.com */ |
||||
|
||||
/* reset */ |
||||
body,div,dl,dt,dd,ul,ol,li,pre,form,fieldset,input,textarea,blockquote,th,td { |
||||
margin:0; |
||||
padding:0; |
||||
font-family:Georgia, "Times New Roman", Times, serif; |
||||
} |
||||
|
||||
fieldset,img { |
||||
border:0; |
||||
} |
||||
|
||||
html { |
||||
height:100%; |
||||
margin-bottom:1px; |
||||
} |
||||
|
||||
body { |
||||
position:relative; |
||||
} |
||||
|
||||
:focus { |
||||
outline:hidden; |
||||
} |
||||
|
||||
/* links */ |
||||
a { |
||||
color:#60131d; |
||||
text-decoration:none; |
||||
} |
||||
|
||||
a:hover { |
||||
text-decoration:underline; |
||||
} |
||||
|
||||
/* header elements */ |
||||
h1, h2, h3, h4, h5, h6 { |
||||
font-family:Georgia, "Times New Roman", Times, serif; |
||||
font-weight:bold; |
||||
} |
||||
|
||||
h1 { |
||||
font-size:300%; |
||||
color:#000; |
||||
} |
||||
|
||||
h2 { |
||||
font-size:250%; |
||||
color:#b4b4b4; |
||||
} |
||||
|
||||
h3 { |
||||
font-size:200%; |
||||
color:#000; |
||||
} |
||||
|
||||
h4 { |
||||
font-size:175%; |
||||
color:#000; |
||||
} |
||||
|
||||
h5 { |
||||
font-size:150%; |
||||
color:#787878; |
||||
} |
||||
|
||||
h6 { |
||||
font-size:125%; |
||||
color:#000; |
||||
} |
||||
|
||||
/* page setup */ |
||||
body { |
||||
background:#e4e4cd url(../images/page_bg.png) 50% 0 no-repeat; |
||||
font-family:Arial, Helvetica, sans-serif; |
||||
line-height:150%; |
||||
color:#646464; |
||||
font-size:12px; |
||||
} |
||||
|
||||
/*\*/* html body { |
||||
background:#e4e4cd url(../images/page_bg.png) 49% 0 no-repeat; |
||||
}/*end*/ |
||||
|
||||
/*\*/html*body { |
||||
background:#e4e4cd url(../images/page_bg.png) 49% 0 no-repeat; |
||||
}/*end*/ |
||||
|
||||
/* wrapper setup */ |
||||
div.rapidxwpr { |
||||
margin:auto; |
||||
width:980px; |
||||
background:url(../images/header-bg.png) 5px 0 no-repeat; |
||||
} |
||||
|
||||
/* header */ |
||||
div#header { |
||||
position:relative; |
||||
height:85px; |
||||
margin:0px 0px 0px 0px; |
||||
} |
||||
|
||||
/* logo */ |
||||
span#logo, img#logo { |
||||
position:absolute; |
||||
top:13px; |
||||
left:105px; |
||||
width:325px; |
||||
height:82px; |
||||
border:0; |
||||
} |
||||
|
||||
/* main body setup */ |
||||
div#middle { |
||||
width:auto; |
||||
margin:0px 0px 0px 0px; |
||||
clear:both; |
||||
background:#FFF url(../images/middle-bg.png) 0 100% no-repeat; |
||||
padding:0 0 25px 0; |
||||
} |
||||
|
||||
/*\*/* html div#middle { |
||||
margin:-28px 0px 0px 0px; |
||||
}/*end*/ |
||||
|
||||
div#middle .background { |
||||
min-height:140px; |
||||
border-left:#000 5px solid; |
||||
border-right:#000 5px solid; |
||||
padding:0 19px 0 24px; |
||||
} |
||||
|
||||
div#middle .layoutleft { |
||||
background:none; |
||||
} |
||||
|
||||
div#middle .layoutright { |
||||
background:none; |
||||
} |
||||
|
||||
/* left column */ |
||||
div#left { |
||||
width:200px; |
||||
} |
||||
|
||||
div#middle .layoutleft div#left { |
||||
float:left; |
||||
padding:0px 0px 0px 0px; |
||||
} |
||||
|
||||
div#middle .layoutright div#left { |
||||
float:right; |
||||
padding:0px 0px 0px 0px; |
||||
} |
||||
|
||||
/* right column */ |
||||
div#right { |
||||
width:297px; |
||||
padding:0px 0px 0px 0px; |
||||
float:right; |
||||
margin:0 0 0 0; |
||||
} |
||||
|
||||
div#right_container { |
||||
padding:0 10px 0 10px; |
||||
} |
||||
|
||||
/* content column */ |
||||
div#main { |
||||
width:auto; |
||||
background:url(../images/right-bg.png) 100% 100% no-repeat; |
||||
} |
||||
|
||||
div#middle .layoutleft div#main { |
||||
margin:0px 0px 0px 0px; |
||||
padding:0px 0px 0px 0px; |
||||
} |
||||
|
||||
div#middle .layoutright div#main { |
||||
margin:0px 200px 0px 0px; |
||||
padding:0px 0px 0px 0px; |
||||
} |
||||
|
||||
div#middle .withoutleft div#main { |
||||
margin:0px 0px 0px 0px; |
||||
} |
||||
|
||||
div#mainmiddle { |
||||
margin:0px 0px 0px 0px; |
||||
} |
||||
|
||||
div#main .withoutright { |
||||
background:transparent; |
||||
} |
||||
|
||||
div#content { |
||||
width:auto; |
||||
} |
||||
|
||||
div#main .withright div#content { |
||||
margin:0px 317px 0px 0px; |
||||
padding:0px 0px 0px 0px; |
||||
} |
||||
|
||||
div#main .withoutright div#content { |
||||
margin:0px 0px 0px 0px; |
||||
padding:0px 0px 0px 0px; |
||||
} |
||||
|
||||
/* footer */ |
||||
div#footer { |
||||
width:900px; |
||||
margin:15px auto; |
||||
padding:13px 30px 10px 50px; |
||||
clear:both; |
||||
color:#492D1F; |
||||
background:url(../images/footer-bg.png) 0 0 no-repeat; |
||||
} |
||||
|
||||
/* clearing & floating */ |
||||
.clearingfix:after { |
||||
content:"."; |
||||
display:block; |
||||
line-height:0px; |
||||
clear:both; |
||||
visibility:hidden; |
||||
} |
||||
|
||||
.clearingfix { |
||||
display:block; |
||||
} |
||||
|
||||
.floatbox { |
||||
overflow:hidden; |
||||
} |
||||
|
||||
/* navigation menu */ |
||||
div#menu { |
||||
margin:35px 0 0 0; |
||||
padding:0 15px; |
||||
overflow:hidden; |
||||
} |
||||
|
||||
div#menu .nav { |
||||
float:left; |
||||
} |
||||
|
||||
div#menu ul.mainmenu { |
||||
padding:0px; |
||||
margin:0px; |
||||
list-style:none; |
||||
} |
||||
|
||||
div#menu ul.mainmenu li { |
||||
float:left; |
||||
display:block; |
||||
} |
||||
|
||||
div#menu ul.mainmenu li a { |
||||
float:left; |
||||
display:block; |
||||
position:relative; |
||||
height:50px; |
||||
padding:0px 10px 0px 10px; |
||||
line-height:46px; |
||||
overflow:hidden; |
||||
color:#fff; |
||||
font-size:23px; |
||||
font-family:Georgia, "Times New Roman", Times, serif; |
||||
} |
||||
|
||||
div#menu ul.mainmenu li a:hover { |
||||
text-decoration:underline; |
||||
} |
||||
|
||||
div#menu ul.submenu { |
||||
padding:0px; |
||||
margin:0px; |
||||
list-style:none; |
||||
clear:both; |
||||
} |
||||
|
||||
div#menu ul.submenu li { |
||||
float:left; |
||||
display:block; |
||||
} |
||||
|
||||
div#menu ul.submenu li a { |
||||
float:left; |
||||
display:block; |
||||
position:relative; |
||||
height:25px; |
||||
padding:0px 7px 0px 7px; |
||||
line-height:18px; |
||||
overflow:hidden; |
||||
color:#f3e8bf; |
||||
font-size:15px; |
||||
} |
||||
|
||||
div#menu ul.submenu li a:hover { |
||||
text-decoration:underline; |
||||
} |
||||
|
||||
/* searchform */ |
||||
div.searchform { |
||||
float:right; |
||||
width:290px; |
||||
} |
||||
|
||||
div.searchform ul { |
||||
list-style:none; |
||||
} |
||||
|
||||
div.searchform ul li { |
||||
float:left; |
||||
} |
||||
|
||||
div.searchform input.search-field { |
||||
border:#b0b0a1 1px solid; |
||||
padding:3px 2px 2px 2px; |
||||
margin:0 6px 0 0; |
||||
color:#7a7a7a; |
||||
font-size:12px; |
||||
width:190px; |
||||
} |
||||
|
||||
div.searchform input.search-submit { |
||||
border:0; |
||||
padding:0; |
||||
margin:0; |
||||
width:63px; |
||||
height:22px; |
||||
background:url(../images/search-submit.png) 0 0 no-repeat; |
||||
cursor:pointer; |
||||
color:#FFF; |
||||
} |
||||
|
||||
/* loginform */ |
||||
div.loginform { |
||||
background:url(../images/loginform-bg.png) 0 0 no-repeat; |
||||
width:275px; |
||||
height:80px; |
||||
float:right; |
||||
margin:0 15px 0 0; |
||||
padding:5px 15px 0 80px; |
||||
text-align:right; |
||||
font-size:12px; |
||||
color:#393535; |
||||
font-style:italic; |
||||
} |
||||
|
||||
div.loginform ul { |
||||
list-style:none; |
||||
margin:0 0 13px 0; |
||||
} |
||||
|
||||
div.loginform ul li { |
||||
float:left; |
||||
} |
||||
|
||||
div.loginform ul li input.login-field { |
||||
border:#b0b0a1 1px solid; |
||||
padding:1px; |
||||
margin:0 6px 0 0; |
||||
font-size:10px; |
||||
color:#7a7a7a; |
||||
} |
||||
|
||||
div.loginform ul li input.login-submit { |
||||
border:#8c8a72 1px solid; |
||||
padding:0 1px; |
||||
margin:0; |
||||
font-size:10px; |
||||
color:#f6eed0; |
||||
background:#090909; |
||||
cursor:pointer; |
||||
} |
||||
|
||||
/* intro */ |
||||
.intro { |
||||
margin:28px 0 0 0; |
||||
background:url(../images/line.png) 0 100% no-repeat; |
||||
padding:0 0 10px 0; |
||||
overflow:hidden; |
||||
} |
||||
|
||||
.intro h3 { |
||||
margin:0px; |
||||
font-size:22px; |
||||
color:#000; |
||||
font-style:italic; |
||||
font-weight:bold; |
||||
} |
||||
|
||||
.intro p { |
||||
font-size:15px; |
||||
color:#711b1a; |
||||
margin:10px 0 10px 0; |
||||
} |
||||
|
||||
.intro ul { |
||||
padding:0 0 0 35px; |
||||
font-family:Georgia, "Times New Roman", Times, serif; |
||||
float:left; |
||||
} |
||||
|
||||
.intro ul li { |
||||
font-size:15px; |
||||
color:#534741; |
||||
font-style:italic; |
||||
} |
||||
|
||||
/* learn more box */ |
||||
.learn_more { |
||||
background:url(../images/learn_bg.png) 0 0 no-repeat; |
||||
text-transform:uppercase; |
||||
text-align:center; |
||||
float:right; |
||||
padding:20px 45px 20px 45px; |
||||
} |
||||
|
||||
.learn_more span.learn { |
||||
font-size:25px; |
||||
font-weight:bold; |
||||
color:#616161; |
||||
} |
||||
|
||||
.learn_more span.more { |
||||
color:#711b1a; |
||||
font-size:12px; |
||||
} |
||||
|
||||
.learn_more a { |
||||
color:#39480e; |
||||
font-size:14px; |
||||
text-decoration:underline; |
||||
} |
||||
|
||||
.learn_more a:hover { |
||||
text-decoration:none; |
||||
} |
||||
|
||||
/* wine reviews */ |
||||
.wine_reviews { |
||||
margin:20px 0 0 0; |
||||
background:url(../images/line.png) 0 100% no-repeat; |
||||
padding:0 0 20px 0; |
||||
} |
||||
|
||||
.wine_reviews h3 { |
||||
margin:0px; |
||||
font-size:22px; |
||||
color:#000; |
||||
font-style:italic; |
||||
font-weight:bold; |
||||
} |
||||
|
||||
.wine_reviews ul { |
||||
list-style:none; |
||||
margin:0; |
||||
} |
||||
|
||||
.wine_reviews ul li { |
||||
margin:0; |
||||
overflow:hidden; |
||||
} |
||||
|
||||
.reviews_imgborder { |
||||
width:103px; |
||||
height:108px; |
||||
border:#bdbd8c solid 1px; |
||||
background:#FFF; |
||||
margin:30px 10px 35px 0; |
||||
float:left; |
||||
} |
||||
|
||||
.reviews_img { |
||||
background:#f3f2e1; |
||||
width:99px; |
||||
height:104px; |
||||
margin:2px auto; |
||||
} |
||||
|
||||
.reviews_img img { |
||||
border:#bdbd8c solid 1px; |
||||
margin:3px 0 5px 2px; |
||||
} |
||||
|
||||
.reviews_img a { |
||||
font-size:13px; |
||||
text-decoration:underline; |
||||
color:#362f2d; |
||||
} |
||||
|
||||
.reviews_img a:hover { |
||||
text-decoration:none; |
||||
} |
||||
|
||||
.reviews_img .reviews_link { |
||||
background:url(../images/list_icon.png) 0 2px no-repeat; |
||||
padding:0 0 0 13px; |
||||
margin:10px 0 0 7px; |
||||
} |
||||
|
||||
.reviews_detail { |
||||
margin:0; |
||||
padding:30px 0 0 0; |
||||
} |
||||
|
||||
.reviews_detail h4 { |
||||
margin:0; |
||||
font-size:16px; |
||||
color:#711b1a; |
||||
padding:0px; |
||||
font-weight:bold; |
||||
} |
||||
|
||||
.reviews_detail span { |
||||
margin:0px; |
||||
font-size:14px; |
||||
font-weight:bold; |
||||
color:#534741; |
||||
} |
||||
|
||||
.reviews_detail span.date { |
||||
float:right; |
||||
margin:-25px 0 0 0; |
||||
font-size:12px; |
||||
color:#534741; |
||||
} |
||||
|
||||
.reviews_detail span.title a { |
||||
font-size:14px; |
||||
font-weight:bold; |
||||
color:#000; |
||||
text-decoration:underline; |
||||
margin:0 5px 0 3px; |
||||
} |
||||
|
||||
.reviews_detail span.title a:hover { |
||||
text-decoration:none; |
||||
} |
||||
|
||||
.reviews_detail span.tags a { |
||||
font-size:14px; |
||||
font-weight:normal; |
||||
color:#000; |
||||
text-decoration:underline; |
||||
margin:0 5px 0 3px; |
||||
} |
||||
|
||||
.reviews_detail span.tags a:hover { |
||||
text-decoration:none; |
||||
} |
||||
|
||||
.reviews_detail p { |
||||
margin:0px; |
||||
color:#534741; |
||||
font-size:14px; |
||||
line-height:18px; |
||||
} |
||||
|
||||
/* winery reviews */ |
||||
.winery_reviews { |
||||
margin:25px 0 0 0; |
||||
padding:0 0 20px 0; |
||||
} |
||||
|
||||
.winery_reviews h3 { |
||||
margin:0px; |
||||
font-size:22px; |
||||
color:#000; |
||||
font-style:italic; |
||||
} |
||||
|
||||
.winery_reviews ul { |
||||
list-style:none; |
||||
} |
||||
|
||||
.winery_reviews ul li { |
||||
margin:0; |
||||
overflow:hidden; |
||||
} |
||||
|
||||
.winery_reviews .reviews_imgborder { |
||||
width:103px; |
||||
height:108px; |
||||
border:#bdbd8c solid 1px; |
||||
background:#FFF; |
||||
margin:30px 10px 55px 0; |
||||
float:left; |
||||
} |
||||
|
||||
/* top rated winery */ |
||||
.more_links a { |
||||
background:#872F2D; |
||||
display:block; |
||||
float:left; |
||||
margin:0 10px 0 0; |
||||
padding:1px 10px 2px 10px; |
||||
color:#FFF; |
||||
font-family:Arial, Helvetica, sans-serif; |
||||
outline:#711B1A 1px solid; |
||||
border:#865532 1px solid; |
||||
} |
||||
|
||||
/* Articles */ |
||||
.articles { |
||||
background:url(../images/line_right.png) 0 100% no-repeat; |
||||
padding:0 0 20px 0; |
||||
} |
||||
|
||||
.articles h5, .active_member h5, .just_recommended h5, .new_wines h5 { |
||||
font-size:19px; |
||||
font-style:italic; |
||||
color:#000; |
||||
margin:0 0 8px 10px; |
||||
} |
||||
|
||||
.articles span { |
||||
font-size:15px; |
||||
color:#711b1a; |
||||
font-weight:bold; |
||||
margin:0 0 0 10px; |
||||
} |
||||
|
||||
.articles p { |
||||
margin:5px 0 5px 10px; |
||||
font-size:13px; |
||||
color:#534741; |
||||
} |
||||
|
||||
.articles a { |
||||
color:#000; |
||||
text-decoration:underline; |
||||
font-weight:bold; |
||||
} |
||||
|
||||
.articles a:hover { |
||||
color:#000; |
||||
text-decoration:none; |
||||
} |
||||
|
||||
/* active members */ |
||||
.active_member { |
||||
margin:15px 0 0 0; |
||||
background:url(../images/line_right.png) 0 100% no-repeat; |
||||
padding:0 0 20px 0; |
||||
} |
||||
|
||||
.active_member ul { |
||||
list-style:none; |
||||
margin:15px 0 0 0; |
||||
} |
||||
|
||||
.active_member ul li { |
||||
margin:20px 0 20px 0; |
||||
} |
||||
|
||||
.active_img img { |
||||
float:left; |
||||
border:solid 1px #6c6c6a; |
||||
margin:0 10px 0 10px; |
||||
} |
||||
|
||||
.active_link { |
||||
padding:7px 0 0 0; |
||||
font-size:15px; |
||||
color:#711b1a; |
||||
font-weight:bold; |
||||
} |
||||
|
||||
.active_member a { |
||||
text-decoration:underline; |
||||
} |
||||
|
||||
.active_member a:hover { |
||||
text-decoration:none; |
||||
} |
||||
|
||||
/* just recommended */ |
||||
.just_recommended { |
||||
margin:15px 0 0 0; |
||||
background:url(../images/line_right.png) 0 100% no-repeat; |
||||
padding:0 0 20px 0; |
||||
} |
||||
|
||||
.just_recommended ul { |
||||
list-style:none; |
||||
margin:15px 10px 0 12px; |
||||
} |
||||
|
||||
.just_recommended ul li { |
||||
margin:7px 0; |
||||
background:url(../images/list_icon.png) 0 5px no-repeat; |
||||
padding:0 0 0 15px; |
||||
} |
||||
|
||||
.just_recommended ul li a { |
||||
color:#534741; |
||||
text-decoration:underline; |
||||
} |
||||
|
||||
.just_recommended ul li a:hover { |
||||
text-decoration:none; |
||||
} |
||||
|
||||
/* new wines */ |
||||
.new_wines { |
||||
margin:15px 0 0 0; |
||||
padding:0 0 10px 0; |
||||
} |
||||
|
||||
.new_wines ul { |
||||
list-style:none; |
||||
margin:15px 10px 0 12px; |
||||
} |
||||
|
||||
.new_wines ul li { |
||||
margin:7px 0; |
||||
background:url(../images/list_icon.png) 0 5px no-repeat; |
||||
padding:0 0 0 15px; |
||||
} |
||||
|
||||
.new_wines ul li a { |
||||
color:#534741; |
||||
text-decoration:underline; |
||||
} |
||||
|
||||
.new_wines ul li a:hover { |
||||
text-decoration:none; |
||||
} |
||||
|
||||
/* footermenu */ |
||||
.footermenu { |
||||
float:left; |
||||
} |
||||
|
||||
.footermenu ul { |
||||
list-style:none; |
||||
} |
||||
|
||||
.footermenu ul li { |
||||
float:left; |
||||
margin:0 10px 0 0; |
||||
font-size:12px; |
||||
} |
||||
|
||||
.footer-logo { |
||||
float:right; |
||||
} |
@ -0,0 +1,47 @@
|
||||
$(function () { |
||||
|
||||
guidely.add ({ |
||||
attachTo: '#header' |
||||
, anchor: 'middle-left' |
||||
, title: 'Guide Title' |
||||
, text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut.' |
||||
}); |
||||
|
||||
guidely.add ({ |
||||
attachTo: '.loginform' |
||||
, anchor: 'middle-middle' |
||||
, title: 'Guide Title' |
||||
, text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut.' |
||||
}); |
||||
|
||||
guidely.add ({ |
||||
attachTo: '#menu' |
||||
, anchor: 'middle-middle' |
||||
, title: 'Guide Title' |
||||
, text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut.' |
||||
}); |
||||
|
||||
guidely.add ({ |
||||
attachTo: '.intro' |
||||
, anchor: 'middle-middle' |
||||
, title: 'Guide Title' |
||||
, text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut.' |
||||
}); |
||||
|
||||
guidely.add ({ |
||||
attachTo: '.wine_reviews li:first' |
||||
, anchor: 'top-left' |
||||
, title: 'Guide Title' |
||||
, text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut.' |
||||
}); |
||||
|
||||
guidely.add ({ |
||||
attachTo: '.winery_reviews li:first' |
||||
, anchor: 'top-middle' |
||||
, title: 'Guide Title' |
||||
, text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut.' |
||||
}); |
||||
|
||||
guidely.init ({ welcome: true }); |
||||
|
||||
}); |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 9.3 KiB |
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html> |
After Width: | Height: | Size: 8.3 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 261 B |
After Width: | Height: | Size: 236 B |
After Width: | Height: | Size: 263 B |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 4.7 KiB |