Initial commit.

Former-commit-id: d2e17d67fe98124db4e87b10597af9d54d14d0de
This commit is contained in:
Linus Miller 2013-12-07 17:43:26 +01:00
commit cd141ef6fa
455 changed files with 66690 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
.sass-cache/
bower_components/
dump/
node_modules/
*-original/
source_maps/
/css/
/img/
/js/

1
.htaccess Normal file
View File

@ -0,0 +1 @@
Allow from all

29
.jshintrc Normal file
View File

@ -0,0 +1,29 @@
{
"node": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 4,
"latedef": true,
"newcap": true,
"noarg": true,
"quotmark": "single",
"regexp": true,
"undef": true,
"unused": true,
"globalstrict": true,
"trailing": true,
"smarttabs": true,
"white": true,
"globals": {
"document": false,
"window": false,
"define": false,
"require": false,
"requirejs": false,
"$": false
}
}

166
GruntFile.js Normal file
View File

@ -0,0 +1,166 @@
module.exports = function(grunt) {
"use strict";
// Configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
config: 'config.rb'
},
jshint: {
options: {
strict: true
},
all:['GruntFile.js','src/js/*.js']
},
uglify: {
options: {
sourceMap: function(script){
return 'src/source_maps/' + script + '.map';
},
sourceMapRoot: '/carson/',
sourceMappingURL: function(script) {
//return '../src/source_maps/' + script.replace(/^.+\//, "") + '.map';
return '../src/source_maps/' + script + '.map';
}
},
src: {
files: [{
expand: true,
cwd: 'src/js/',
src: ['**/*.js'],
dest: 'js/',
//ext: '.min.js', //commenting out for now
}]
},
jqueryTouchSwipe: {
files: {
'js/jquery.touchSwipe.js': 'bower_components/jquery-touchswipe/jquery.touchSwipe.js'
}
},
modernizr: {
files: [{ // Dictionary of files
expand: true, // Enable dynamic expansion.
cwd: 'bower_components/modernizr', // Src matches are relative to this path.
src: ['**/*.js'], // Actual pattern(s) to match.
dest: 'js/', // Destination path prefix.
ext: '.js' // Dest filepaths will have this extension.
}]
},
respond: {
files: [{ // Dictionary of files
expand: true, // Enable dynamic expansion.
cwd: 'bower_components/respond', // Src matches are relative to this path.
src: ['**/*.js'], // Actual pattern(s) to match.
dest: 'js/', // Destination path prefix.
ext: '.js' // Dest filepaths will have this extension.
}]
}
},
copy: {
all: {
files: [{
expand: true,
cwd: 'src/raster',
src: ['**/*.jpg', '**/*.png'],
dest: 'img/',
}]
}
},
svgmin: { // Task
options: { // Configuration that will be passed directly to SVGO
plugins: [{
removeViewBox: false
}]
},
all: { // Target
files: [{ // Dictionary of files
expand: true, // Enable dynamic expansion.
cwd: 'src/svg', // Src matches are relative to this path.
src: ['**/*.svg'], // Actual pattern(s) to match.
dest: 'img/', // Destination path prefix.
//ext: '.svg' // Dest filepaths will have this extension.
}]
}
},
svg2png: { // Task
all: { // Target
files: [{ // Dictionary of files
expand: true, // Enable dynamic expansion.
//cwd: 'src/svg' // Do not use, svg2png applies the cwd to the dest folder as well
src: ['src/svg/**/*.svg'], // Actual pattern(s) to match.
dest: 'img/' // Destination path prefix.
}]
},
},
smushit: {
path: {
src: 'img/'
}
},
watch: {
options: {
nospawn: true
},
js: {
files: ['src/js/**/*.js'],
tasks: ['uglify:src']
},
copy: {
files: ['src/raster/**/*.jpg', 'src/raster/**/*.png'],
tasks: ['copy', 'smushit']
},
svg: {
files: ['src/svg/**/*.svg'],
tasks: ['svgmin']
},
smushit: {
files: ['img/**/*.png', 'img/**/*.jpg'],
tasks: ['smushit']
},
sass: {
files: ['src/sass/**/*.scss'],
tasks: ['compass'],
options: {
nospawn: true
}
}
}
});
// Plugins
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-svgmin');
grunt.loadNpmTasks('grunt-svg2png');
grunt.loadNpmTasks('grunt-smushit');
// Tasks
grunt.registerTask('default',['jshint','uglify']);
grunt.registerTask('vector',['svgmin']);
grunt.registerTask('png',['svg2png', 'smushit']);
grunt.registerTask('raster',['copy', 'smushit']);
grunt.registerTask('image',['vector', 'svg2png', 'raster']);
grunt.event.on('watch', function(action, filepath, target) {
//change the ource and destination in the uglify task at run time so that it affects the changed file only
var destFilePath;
if(target == "js") {
destFilePath = filepath.replace(/src\/(.+)$/, '$1');
grunt.config('uglify.src.src', filepath);
grunt.config('uglify.src.dest', destFilePath);
} else if(target == "copy") {
destFilePath = filepath.replace(/src\/raster\/(.+)$/, 'img/$1');
grunt.config('copy.all.src', filepath);
grunt.config('copy.all.dest', destFilePath);
grunt.config('smushit.path.src', destFilePath);
} else if (target == "svg") {
destFilePath = filepath.replace(/src\/svg\/(.+)$/, 'img/$1');
grunt.config('svgmin.all.src', filepath);
grunt.config('svgmin.all.dest', destFilePath);
} else if (target == "smushit") {
grunt.config('smushit.path.src', filepath);
}
});
};

1
application/.htaccess Normal file
View File

@ -0,0 +1 @@
Deny from all

1
application/cache/.htaccess vendored Normal file
View File

@ -0,0 +1 @@
deny from all

10
application/cache/index.html vendored Normal file
View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -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(APPPATH . 'third_party/master/');
/*
| -------------------------------------------------------------------
| 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', 'master');
/*
| -------------------------------------------------------------------
| 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('fields');
/*
| -------------------------------------------------------------------
| Auto-load Models
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['model'] = array('model1', 'model2');
|
*/
$autoload['model'] = array('forms_model');
/* End of file autoload.php */
/* Location: ./application/config/autoload.php */

View File

@ -0,0 +1,413 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Site Name
|--------------------------------------------------------------------------
|
| 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['site_name'] = 'Eastside Galleries';
$config['site_comp_name'] = 'eastside';
/*
|--------------------------------------------------------------------------
| 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'] = '/clients/' . $config['site_comp_name'] . '/';
//$config['base_url'] = '/' . $config['site_comp_name'] . '/';
$config['base_url'] = '/' . $config['site_comp_name'] . '/';
/*
|--------------------------------------------------------------------------
| 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';
/*
|--------------------------------------------------------------------------
| Folders
|--------------------------------------------------------------------------
|
| Right now, only the Master library uses these.
|
*/
$config['css_folder'] = 'css';
$config['js_folder'] = 'js';
/*
|--------------------------------------------------------------------------
| 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'] = 'swedish';
/*
|--------------------------------------------------------------------------
| 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'] = '';
/*
|--------------------------------------------------------------------------
| 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'] = FALSE;
/*
|--------------------------------------------------------------------------
| 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'] = '';
/*
| -------------------------------------------------------------------
| Native Autoload - by Phil Sturgeon.
| -------------------------------------------------------------------
|
| Nothing to do with config/autoload.php, this allows PHP autoload to work
| for base controllers and some third-party libraries.
|
| If using HMVC you do not need this! HMVC will autoload.
|
| Place this code at the bottom of your application/config/config.php file.
*/
function __autoload($class)
{
// This goes through and loads any classes that dont start with CI_
if(strpos($class, 'CI_') !== 0) {
if(strpos($class, 'Master_Controller') !== 0) {
@include_once( APPPATH . 'controllers/masters/'. $class . EXT );
} else {
@include_once( APPPATH . 'libraries/'. $class . EXT );
}
}
}
/* End of file config.php */
/* Location: ./application/config/config.php */

View File

@ -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 */

View File

@ -0,0 +1,119 @@
<?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 = 'local';
$active_group = 'svante-int';
//$active_group = 'svante-ext';
//$active_group = 'eastside';
$active_record = FALSE;
$db['local']['hostname'] = 'localhost';
$db['local']['username'] = 'eastside_supreme';
$db['local']['password'] = '1112eAsTsIdE!!';
$db['local']['database'] = 'eastside';
$db['local']['dbdriver'] = 'mysqli';
$db['local']['dbprefix'] = '';
$db['local']['pconnect'] = TRUE;
$db['local']['db_debug'] = TRUE;
$db['local']['cache_on'] = FALSE;
$db['local']['cachedir'] = '';
$db['local']['char_set'] = 'utf8';
$db['local']['dbcollat'] = 'utf8_general_ci';
$db['local']['swap_pre'] = '';
$db['local']['autoinit'] = TRUE;
$db['local']['stricton'] = FALSE;
$db['svante-int']['hostname'] = '192.168.1.60';
$db['svante-int']['username'] = 'eastside_supreme';
$db['svante-int']['password'] = '1112eAsTsIdE!!';
$db['svante-int']['database'] = 'eastside';
$db['svante-int']['dbdriver'] = 'mysqli';
$db['svante-int']['dbprefix'] = '';
$db['svante-int']['pconnect'] = TRUE;
$db['svante-int']['db_debug'] = TRUE;
$db['svante-int']['cache_on'] = FALSE;
$db['svante-int']['cachedir'] = '';
$db['svante-int']['char_set'] = 'utf8';
$db['svante-int']['dbcollat'] = 'utf8_general_ci';
$db['svante-int']['swap_pre'] = '';
$db['svante-int']['autoinit'] = TRUE;
$db['svante-int']['stricton'] = FALSE;
$db['svante-ext']['hostname'] = '81.186.252.233';
$db['svante-ext']['username'] = 'eastside_supreme';
$db['svante-ext']['password'] = '1112eAsTsIdE!!';
$db['svante-ext']['database'] = 'eastside';
$db['svante-ext']['dbdriver'] = 'mysqli';
$db['svante-ext']['dbprefix'] = '';
$db['svante-ext']['pconnect'] = TRUE;
$db['svante-ext']['db_debug'] = TRUE;
$db['svante-ext']['cache_on'] = FALSE;
$db['svante-ext']['cachedir'] = '';
$db['svante-ext']['char_set'] = 'utf8';
$db['svante-ext']['dbcollat'] = 'utf8_general_ci';
$db['svante-ext']['swap_pre'] = '';
$db['svante-ext']['autoinit'] = TRUE;
$db['svante-ext']['stricton'] = FALSE;
$db['eastside']['hostname'] = 'eastside.se.mysql';
$db['eastside']['username'] = 'eastside_se';
$db['eastside']['password'] = 'CGiGw6kc';
$db['eastside']['database'] = 'eastside_se';
$db['eastside']['dbdriver'] = 'mysqli';
$db['eastside']['dbprefix'] = '';
$db['eastside']['pconnect'] = TRUE;
$db['eastside']['db_debug'] = TRUE;
$db['eastside']['cache_on'] = FALSE;
$db['eastside']['cachedir'] = '';
$db['eastside']['char_set'] = 'utf8';
$db['eastside']['dbcollat'] = 'utf8_general_ci';
$db['eastside']['swap_pre'] = '';
$db['eastside']['autoinit'] = TRUE;
$db['eastside']['stricton'] = FALSE;
/* End of file database.php */
/* Location: ./application/config/database.php */

View File

@ -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 */

View File

@ -0,0 +1,17 @@
<?php
/*
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_port'] = '465';
$config['smtp_timeout'] = '7';
$config['smtp_user'] = 'robot@eastside.se';
$config['smtp_pass'] = '1122334455!!';
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";
$config['mailtype'] = 'html'; // or text
*/
$config['protocol'] = 'smtp';
$config['charset'] = 'utf-8';
$config['smtp_host'] = 'mailout.one.com';
$config['mailtype'] = 'html';
?>

View File

@ -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 */

View File

@ -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 */

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -0,0 +1,47 @@
<?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['admin'] = 'admin/pages/index';
$route['ajax/(:any)'] = 'ajax/$1';
$route['gallery/(:any)'] = 'gallery/view/$1';
$route['gallery'] = 'gallery';
$route['(:any)'] = 'pages/view/$1';
$route['default_controller'] = 'pages/view';
/* End of file routes.php */
/* Location: ./application/config/routes.php */

View File

@ -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 */

View File

@ -0,0 +1,80 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Active template
|--------------------------------------------------------------------------
|
| The $template['active_template'] setting lets you choose which template
| group to make active. By default there is only one group (the
| "default" group).
|
*/
$template['active_template'] = 'default';
/*
|--------------------------------------------------------------------------
| Explaination of template group variables
|--------------------------------------------------------------------------
|
| ['template'] The filename of your master template file in the Views folder.
| Typically this file will contain a full XHTML skeleton that outputs your
| full template or region per region. Include the file extension if other
| than ".php"
| ['regions'] Places within the template where your content may land.
| You may also include default markup, wrappers and attributes here
| (though not recommended). Region keys must be translatable into variables
| (no spaces or dashes, etc)
| ['parser'] The parser class/library to use for the parse_view() method
| NOTE: See http://codeigniter.com/forums/viewthread/60050/P0/ for a good
| Smarty Parser that works perfectly with Template
| ['parse_template'] FALSE (default) to treat master template as a View. TRUE
| to user parser (see above) on the master template
|
| Region information can be extended by setting the following variables:
| ['content'] Must be an array! Use to set default region content
| ['name'] A string to identify the region beyond what it is defined by its key.
| ['wrapper'] An HTML element to wrap the region contents in. (We
| recommend doing this in your template file.)
| ['attributes'] Multidimensional array defining HTML attributes of the
| wrapper. (We recommend doing this in your template file.)
|
| Example:
| $template['default']['regions'] = array(
| 'header' => array(
| 'content' => array('<h1>Welcome</h1>','<p>Hello World</p>'),
| 'name' => 'Page Header',
| 'wrapper' => '<div>',
| 'attributes' => array('id' => 'header', 'class' => 'clearfix')
| )
| );
|
*/
/*
|--------------------------------------------------------------------------
| Default Template Configuration (adjust this or create your own)
|--------------------------------------------------------------------------
*/
$template['default']['template'] = 'templates/main';
$template['default']['regions'] = array(
'title',
'content',
'frm_contact',
'frm_newsletter',
'active_page'
);
$template['default']['parser'] = 'parser';
$template['default']['parser_method'] = 'parse';
$template['default']['parse_template'] = FALSE;
$template['admin']['template'] = 'templates/admin';
$template['admin']['regions'] = array(
'title',
'content'
);
$template['admin']['parser'] = 'parser';
$template['admin']['parse_method'] = 'parse';
$template['admin']['parse_template'] = FALSE;
/* End of file template.php */
/* Location: ./system/application/config/template.php */

View File

@ -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 */

View File

@ -0,0 +1,15 @@
<?php
class Pages extends CI_Controller {
public function __construct() {
parent::__construct();
$this->template->set_template('admin');
}
public function index() {
//$this->load->view('admin/pages/index');
$this->template->write('title', 'aaaaaaa');
$this->template->write_view('content', 'admin/pages/index');
$this->template->render();
}
}

View File

@ -0,0 +1,7 @@
<?php
class Test extends CI_Controller {
public function index() {
$this->load->view('admin/pages/index');
}
}

View File

@ -0,0 +1,20 @@
<?php
class Ajax extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->library('email');
$this->load->helper('language');
}
public function frm_contact() {
//$this->load->library('../controllers/forms');
echo $this->forms_model->contact();
//echo $this->forms->contact();
}
public function frm_newsletter() {
echo $this->forms_model->newsletter();
}
public function frm_order($id) {
echo $this->forms_model->order($id);
}
}
?>

View File

@ -0,0 +1,25 @@
<?php
class Gallery extends Default_Master_Controller {
public function __construct() {
parent::__construct();
$this->load->model('gallery_model');
$this->load->helper('html');
$this->load->helper('url');
}
public function index() {
$data['paintings'] = $this->gallery_model->get_paintings_active_all();
//$data['content'] = $this->load->view('gallery/index',$data,true);
//$data['title'] = 'Paintings';
//$data['current_page'] = 'gallery';
$this->master->write('current_page', 'gallery');
$this->master->write_view('content', 'gallery/index', $data);
$this->master->render();
}
public function view($id = 1) {
$data['p'] = $this->gallery_model->get_painting_by_id($id);
$this->master->write_view('content', 'gallery/view', $data);
$this->master->write('title', 'Painting : ' . $id);
$this->master->write('current_page', 'gallery');
$this->master->render();
}
}

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,13 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
class Ajax_Master_Controller extends CI_Controller {
public function __construct() {
parent::__construct();
if(!$this->input->is_ajax_request()) {
echo "Only Ajax request allowed.";
exit(0);
}
}
}
/* End of file Ajax_Master_Controller.php */
/* Location: ./application/controllers/masters/Ajax_Master_Controller.php */

View File

@ -0,0 +1,15 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
class Default_Master_Controller extends CI_Controller {
public function __construct() {
parent::__construct();
$array['nav_main'] = array();
$array['nav_main'][] = array('name' => 'Start', 'comp_name' => 'start');
$array['nav_main'][] = array('name' => 'Tavlor', 'comp_name' => 'gallery');
$array['nav_main'][] = array('name' => 'Inramning', 'comp_name' => 'framing');
$array['nav_main'][] = array('name' => 'Kontakt', 'comp_name' => 'contact');
$this->load->vars($array);
}
}
/* End of file Default_Master_Controller.php */
/* Location: ./application/controllers/masters/Default_Master_Controller.php */

View File

@ -0,0 +1,19 @@
<?php
class News extends CI_Controller{
public function __construct() {
parent::__construct();
$this->load->model('news_model');
}
public function index() {
$array['news'] = $this->news_model->get_news();
$data['title'] = 'News archive';
//$data['content'] = 'testing';
$data['content'] = $this->load->view('news/index',$array,true);
$this->load->view('templates/main',$data);
}
public function view($slug) {
$data['title'] = 'News testing';
$data['content'] = 'content ' . $slug;
$this->load->view('templates/main', $data);
}
}

View File

@ -0,0 +1,29 @@
<?php
class Pages extends Default_Master_Controller{
public function __construct() {
parent::__construct();
$this->load->model('news_model');
$this->load->model('gallery_model');
$this->load->helper('html');
$this->load->helper('url');
}
public function view($page = 'start') {
if(!file_exists('application/views/pages/'.$page.'.php')) {
// whoops we dont have a page for that
show_404();
} else {
if($page == 'start') {
$data['paintings'] = $this->gallery_model->get_paintings_on_display_limit(10);
$data['news'] = $this->news_model->get_news();
$this->master->write_view('content', 'pages/' .$page, $data);
} else {
$this->master->write_view('content', 'pages/' .$page,'');
}
//$this->master->write('frm_contact', $this->forms_model->contact());
$this->master->write('title', $this->config->item('site_name') . ' : ' . ucfirst($page));
$this->master->write('current_page', $page);
$this->master->render();
}
}
}
?>

View File

@ -0,0 +1,10 @@
<?php
class Test extends CI_Controller {
public function __construct() {
parent::__construct();
}
public function view() {
$data['title'] = 'This is a title';
$this->load->view('templates/text','');
}
}

View File

@ -0,0 +1,27 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Welcome extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* @see http://codeigniter.com/user_guide/general/urls.html
*/
public function index()
{
$this->load->view('welcome_message');
}
}
/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

10
application/index.html Normal file
View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,51 @@
<?php
$lang['cal_su'] = "Su";
$lang['cal_mo'] = "Mo";
$lang['cal_tu'] = "Tu";
$lang['cal_we'] = "We";
$lang['cal_th'] = "Th";
$lang['cal_fr'] = "Fr";
$lang['cal_sa'] = "Sa";
$lang['cal_sun'] = "Sun";
$lang['cal_mon'] = "Mon";
$lang['cal_tue'] = "Tue";
$lang['cal_wed'] = "Wed";
$lang['cal_thu'] = "Thu";
$lang['cal_fri'] = "Fri";
$lang['cal_sat'] = "Sat";
$lang['cal_sunday'] = "Sunday";
$lang['cal_monday'] = "Monday";
$lang['cal_tuesday'] = "Tuesday";
$lang['cal_wednesday'] = "Wednesday";
$lang['cal_thursday'] = "Thursday";
$lang['cal_friday'] = "Friday";
$lang['cal_saturday'] = "Saturday";
$lang['cal_jan'] = "Jan";
$lang['cal_feb'] = "Feb";
$lang['cal_mar'] = "Mar";
$lang['cal_apr'] = "Apr";
$lang['cal_may'] = "May";
$lang['cal_jun'] = "Jun";
$lang['cal_jul'] = "Jul";
$lang['cal_aug'] = "Aug";
$lang['cal_sep'] = "Sep";
$lang['cal_oct'] = "Oct";
$lang['cal_nov'] = "Nov";
$lang['cal_dec'] = "Dec";
$lang['cal_january'] = "January";
$lang['cal_february'] = "February";
$lang['cal_march'] = "March";
$lang['cal_april'] = "April";
$lang['cal_mayl'] = "May";
$lang['cal_june'] = "June";
$lang['cal_july'] = "July";
$lang['cal_august'] = "August";
$lang['cal_september'] = "September";
$lang['cal_october'] = "October";
$lang['cal_november'] = "November";
$lang['cal_december'] = "December";
/* End of file calendar_lang.php */
/* Location: ./system/language/english/calendar_lang.php */

View File

@ -0,0 +1,61 @@
<?php
$lang['date_year'] = "Year";
$lang['date_years'] = "Years";
$lang['date_month'] = "Month";
$lang['date_months'] = "Months";
$lang['date_week'] = "Week";
$lang['date_weeks'] = "Weeks";
$lang['date_day'] = "Day";
$lang['date_days'] = "Days";
$lang['date_hour'] = "Hour";
$lang['date_hours'] = "Hours";
$lang['date_minute'] = "Minute";
$lang['date_minutes'] = "Minutes";
$lang['date_second'] = "Second";
$lang['date_seconds'] = "Seconds";
$lang['UM12'] = '(UTC -12:00) Baker/Howland Island';
$lang['UM11'] = '(UTC -11:00) Samoa Time Zone, Niue';
$lang['UM10'] = '(UTC -10:00) Hawaii-Aleutian Standard Time, Cook Islands, Tahiti';
$lang['UM95'] = '(UTC -9:30) Marquesas Islands';
$lang['UM9'] = '(UTC -9:00) Alaska Standard Time, Gambier Islands';
$lang['UM8'] = '(UTC -8:00) Pacific Standard Time, Clipperton Island';
$lang['UM7'] = '(UTC -7:00) Mountain Standard Time';
$lang['UM6'] = '(UTC -6:00) Central Standard Time';
$lang['UM5'] = '(UTC -5:00) Eastern Standard Time, Western Caribbean Standard Time';
$lang['UM45'] = '(UTC -4:30) Venezuelan Standard Time';
$lang['UM4'] = '(UTC -4:00) Atlantic Standard Time, Eastern Caribbean Standard Time';
$lang['UM35'] = '(UTC -3:30) Newfoundland Standard Time';
$lang['UM3'] = '(UTC -3:00) Argentina, Brazil, French Guiana, Uruguay';
$lang['UM2'] = '(UTC -2:00) South Georgia/South Sandwich Islands';
$lang['UM1'] = '(UTC -1:00) Azores, Cape Verde Islands';
$lang['UTC'] = '(UTC) Greenwich Mean Time, Western European Time';
$lang['UP1'] = '(UTC +1:00) Central European Time, West Africa Time';
$lang['UP2'] = '(UTC +2:00) Central Africa Time, Eastern European Time, Kaliningrad Time';
$lang['UP3'] = '(UTC +3:00) Moscow Time, East Africa Time';
$lang['UP35'] = '(UTC +3:30) Iran Standard Time';
$lang['UP4'] = '(UTC +4:00) Azerbaijan Standard Time, Samara Time';
$lang['UP45'] = '(UTC +4:30) Afghanistan';
$lang['UP5'] = '(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time';
$lang['UP55'] = '(UTC +5:30) Indian Standard Time, Sri Lanka Time';
$lang['UP575'] = '(UTC +5:45) Nepal Time';
$lang['UP6'] = '(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time';
$lang['UP65'] = '(UTC +6:30) Cocos Islands, Myanmar';
$lang['UP7'] = '(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam';
$lang['UP8'] = '(UTC +8:00) Australian Western Standard Time, Beijing Time, Irkutsk Time';
$lang['UP875'] = '(UTC +8:45) Australian Central Western Standard Time';
$lang['UP9'] = '(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk Time';
$lang['UP95'] = '(UTC +9:30) Australian Central Standard Time';
$lang['UP10'] = '(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time';
$lang['UP105'] = '(UTC +10:30) Lord Howe Island';
$lang['UP11'] = '(UTC +11:00) Magadan Time, Solomon Islands, Vanuatu';
$lang['UP115'] = '(UTC +11:30) Norfolk Island';
$lang['UP12'] = '(UTC +12:00) Fiji, Gilbert Islands, Kamchatka Time, New Zealand Standard Time';
$lang['UP1275'] = '(UTC +12:45) Chatham Islands Standard Time';
$lang['UP13'] = '(UTC +13:00) Phoenix Islands Time, Tonga';
$lang['UP14'] = '(UTC +14:00) Line Islands';
/* End of file date_lang.php */
/* Location: ./system/language/english/date_lang.php */

View File

@ -0,0 +1,29 @@
<?php
$lang['db_invalid_connection_str'] = 'Unable to determine the database settings based on the connection string you submitted.';
$lang['db_unable_to_connect'] = 'Unable to connect to your database server using the provided settings.';
$lang['db_unable_to_select'] = 'Unable to select the specified database: %s';
$lang['db_unable_to_create'] = 'Unable to create the specified database: %s';
$lang['db_invalid_query'] = 'The query you submitted is not valid.';
$lang['db_must_set_table'] = 'You must set the database table to be used with your query.';
$lang['db_must_use_set'] = 'You must use the "set" method to update an entry.';
$lang['db_must_use_index'] = 'You must specify an index to match on for batch updates.';
$lang['db_batch_missing_index'] = 'One or more rows submitted for batch updating is missing the specified index.';
$lang['db_must_use_where'] = 'Updates are not allowed unless they contain a "where" clause.';
$lang['db_del_must_use_where'] = 'Deletes are not allowed unless they contain a "where" or "like" clause.';
$lang['db_field_param_missing'] = 'To fetch fields requires the name of the table as a parameter.';
$lang['db_unsupported_function'] = 'This feature is not available for the database you are using.';
$lang['db_transaction_failure'] = 'Transaction failure: Rollback performed.';
$lang['db_unable_to_drop'] = 'Unable to drop the specified database.';
$lang['db_unsuported_feature'] = 'Unsupported feature of the database platform you are using.';
$lang['db_unsuported_compression'] = 'The file compression format you chose is not supported by your server.';
$lang['db_filepath_error'] = 'Unable to write data to the file path you have submitted.';
$lang['db_invalid_cache_path'] = 'The cache path you submitted is not valid or writable.';
$lang['db_table_name_required'] = 'A table name is required for that operation.';
$lang['db_column_name_required'] = 'A column name is required for that operation.';
$lang['db_column_definition_required'] = 'A column definition is required for that operation.';
$lang['db_unable_to_set_charset'] = 'Unable to set client connection character set: %s';
$lang['db_error_heading'] = 'A Database Error Occurred';
/* End of file db_lang.php */
/* Location: ./system/language/english/db_lang.php */

View File

@ -0,0 +1,24 @@
<?php
$lang['email_must_be_array'] = "The email validation method must be passed an array.";
$lang['email_invalid_address'] = "Invalid email address: %s";
$lang['email_attachment_missing'] = "Unable to locate the following email attachment: %s";
$lang['email_attachment_unreadable'] = "Unable to open this attachment: %s";
$lang['email_no_recipients'] = "You must include recipients: To, Cc, or Bcc";
$lang['email_send_failure_phpmail'] = "Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.";
$lang['email_send_failure_sendmail'] = "Unable to send email using PHP Sendmail. Your server might not be configured to send mail using this method.";
$lang['email_send_failure_smtp'] = "Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.";
$lang['email_sent'] = "Your message has been successfully sent using the following protocol: %s";
$lang['email_no_socket'] = "Unable to open a socket to Sendmail. Please check settings.";
$lang['email_no_hostname'] = "You did not specify a SMTP hostname.";
$lang['email_smtp_error'] = "The following SMTP error was encountered: %s";
$lang['email_no_smtp_unpw'] = "Error: You must assign a SMTP username and password.";
$lang['email_failed_smtp_login'] = "Failed to send AUTH LOGIN command. Error: %s";
$lang['email_smtp_auth_un'] = "Failed to authenticate username. Error: %s";
$lang['email_smtp_auth_pw'] = "Failed to authenticate password. Error: %s";
$lang['email_smtp_data_failure'] = "Unable to send data: %s";
$lang['email_exit_status'] = "Exit status code: %s";
/* End of file email_lang.php */
/* Location: ./system/language/english/email_lang.php */

View File

@ -0,0 +1,5 @@
<?php
$lang['full_name'] = 'Namn';
$lang['message'] = 'Meddelande';
$lang['email'] = 'Email';
?>

View File

@ -0,0 +1,53 @@
<?php
/*
$lang['required'] = "%sfältet måste fyllas i.";
$lang['isset'] = "The %s field must have a value.";
$lang['valid_email'] = "The %s field must contain a valid email address.";
$lang['valid_emails'] = "The %s field must contain all valid email addresses.";
$lang['valid_url'] = "The %s field must contain a valid URL.";
$lang['valid_ip'] = "The %s field must contain a valid IP.";
$lang['min_length'] = "The %s field must be at least %s characters in length.";
$lang['max_length'] = "The %s field can not exceed %s characters in length.";
$lang['exact_length'] = "The %s field must be exactly %s characters in length.";
$lang['alpha'] = "The %s field may only contain alphabetical characters.";
$lang['alpha_numeric'] = "The %s field may only contain alpha-numeric characters.";
$lang['alpha_dash'] = "The %s field may only contain alpha-numeric characters, underscores, and dashes.";
$lang['numeric'] = "The %s field must contain only numbers.";
$lang['is_numeric'] = "The %s field must contain only numeric characters.";
$lang['integer'] = "The %s field must contain an integer.";
$lang['regex_match'] = "The %s field is not in the correct format.";
$lang['matches'] = "The %s field does not match the %s field.";
$lang['is_unique'] = "The %s field must contain a unique value.";
$lang['is_natural'] = "The %s field must contain only positive numbers.";
$lang['is_natural_no_zero'] = "The %s field must contain a number greater than zero.";
$lang['decimal'] = "The %s field must contain a decimal number.";
$lang['less_than'] = "The %s field must contain a number less than %s.";
$lang['greater_than'] = "The %s field must contain a number greater than %s.";
*/
$lang['required'] = "* måste fyllas i";
$lang['isset'] = "* måste ha ett värde";
$lang['valid_email'] = "* ogiltig epost";
$lang['valid_emails'] = "The %s field must contain all valid email addresses.";
$lang['valid_url'] = "The %s field must contain a valid URL.";
$lang['valid_ip'] = "The %s field must contain a valid IP.";
$lang['min_length'] = "* för få tecken";
$lang['max_length'] = "The %s field can not exceed %s characters in length.";
$lang['exact_length'] = "* fel antal tecken";
$lang['alpha'] = "The %s field may only contain alphabetical characters.";
$lang['alpha_numeric'] = "The %s field may only contain alpha-numeric characters.";
$lang['alpha_dash'] = "The %s field may only contain alpha-numeric characters, underscores, and dashes.";
$lang['numeric'] = "* får bara innehålla siffror";
$lang['is_numeric'] = "The %s field must contain only numeric characters.";
$lang['integer'] = "The %s field must contain an integer.";
$lang['regex_match'] = "The %s field is not in the correct format.";
$lang['matches'] = "The %s field does not match the %s field.";
$lang['is_unique'] = "The %s field must contain a unique value.";
$lang['is_natural'] = "The %s field must contain only positive numbers.";
$lang['is_natural_no_zero'] = "The %s field must contain a number greater than zero.";
$lang['decimal'] = "The %s field must contain a decimal number.";
$lang['less_than'] = "The %s field must contain a number less than %s.";
$lang['greater_than'] = "The %s field must contain a number greater than %s.";
/* End of file form_validation_lang.php */
/* Location: ./application/language/swedish/form_validation_lang.php */

View File

@ -0,0 +1,18 @@
<?php
$lang['ftp_no_connection'] = "Unable to locate a valid connection ID. Please make sure you are connected before peforming any file routines.";
$lang['ftp_unable_to_connect'] = "Unable to connect to your FTP server using the supplied hostname.";
$lang['ftp_unable_to_login'] = "Unable to login to your FTP server. Please check your username and password.";
$lang['ftp_unable_to_makdir'] = "Unable to create the directory you have specified.";
$lang['ftp_unable_to_changedir'] = "Unable to change directories.";
$lang['ftp_unable_to_chmod'] = "Unable to set file permissions. Please check your path. Note: This feature is only available in PHP 5 or higher.";
$lang['ftp_unable_to_upload'] = "Unable to upload the specified file. Please check your path.";
$lang['ftp_unable_to_download'] = "Unable to download the specified file. Please check your path.";
$lang['ftp_no_source_file'] = "Unable to locate the source file. Please check your path.";
$lang['ftp_unable_to_rename'] = "Unable to rename the file.";
$lang['ftp_unable_to_delete'] = "Unable to delete the file.";
$lang['ftp_unable_to_move'] = "Unable to move the file. Please make sure the destination directory exists.";
/* End of file ftp_lang.php */
/* Location: ./system/language/english/ftp_lang.php */

View File

@ -0,0 +1,24 @@
<?php
$lang['imglib_source_image_required'] = "You must specify a source image in your preferences.";
$lang['imglib_gd_required'] = "The GD image library is required for this feature.";
$lang['imglib_gd_required_for_props'] = "Your server must support the GD image library in order to determine the image properties.";
$lang['imglib_unsupported_imagecreate'] = "Your server does not support the GD function required to process this type of image.";
$lang['imglib_gif_not_supported'] = "GIF images are often not supported due to licensing restrictions. You may have to use JPG or PNG images instead.";
$lang['imglib_jpg_not_supported'] = "JPG images are not supported.";
$lang['imglib_png_not_supported'] = "PNG images are not supported.";
$lang['imglib_jpg_or_png_required'] = "The image resize protocol specified in your preferences only works with JPEG or PNG image types.";
$lang['imglib_copy_error'] = "An error was encountered while attempting to replace the file. Please make sure your file directory is writable.";
$lang['imglib_rotate_unsupported'] = "Image rotation does not appear to be supported by your server.";
$lang['imglib_libpath_invalid'] = "The path to your image library is not correct. Please set the correct path in your image preferences.";
$lang['imglib_image_process_failed'] = "Image processing failed. Please verify that your server supports the chosen protocol and that the path to your image library is correct.";
$lang['imglib_rotation_angle_required'] = "An angle of rotation is required to rotate the image.";
$lang['imglib_writing_failed_gif'] = "GIF image.";
$lang['imglib_invalid_path'] = "The path to the image is not correct.";
$lang['imglib_copy_failed'] = "The image copy routine failed.";
$lang['imglib_missing_font'] = "Unable to find a font to use.";
$lang['imglib_save_failed'] = "Unable to save the image. Please make sure the image and file directory are writable.";
/* End of file imglib_lang.php */
/* Location: ./system/language/english/imglib_lang.php */

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,13 @@
<?php
$lang['migration_none_found'] = "No migrations were found.";
$lang['migration_not_found'] = "This migration could not be found.";
$lang['migration_multiple_version'] = "This are multiple migrations with the same version number: %d.";
$lang['migration_class_doesnt_exist'] = "The migration class \"%s\" could not be found.";
$lang['migration_missing_up_method'] = "The migration class \"%s\" is missing an 'up' method.";
$lang['migration_missing_down_method'] = "The migration class \"%s\" is missing an 'down' method.";
$lang['migration_invalid_filename'] = "Migration \"%s\" has an invalid filename.";
/* End of file migration_lang.php */
/* Location: ./system/language/english/migration_lang.php */

View File

@ -0,0 +1,10 @@
<?php
$lang['terabyte_abbr'] = "TB";
$lang['gigabyte_abbr'] = "GB";
$lang['megabyte_abbr'] = "MB";
$lang['kilobyte_abbr'] = "KB";
$lang['bytes'] = "Bytes";
/* End of file number_lang.php */
/* Location: ./system/language/english/number_lang.php */

View File

@ -0,0 +1,25 @@
<?php
$lang['profiler_database'] = 'DATABASE';
$lang['profiler_controller_info'] = 'CLASS/METHOD';
$lang['profiler_benchmarks'] = 'BENCHMARKS';
$lang['profiler_queries'] = 'QUERIES';
$lang['profiler_get_data'] = 'GET DATA';
$lang['profiler_post_data'] = 'POST DATA';
$lang['profiler_uri_string'] = 'URI STRING';
$lang['profiler_memory_usage'] = 'MEMORY USAGE';
$lang['profiler_config'] = 'CONFIG VARIABLES';
$lang['profiler_session_data'] = 'SESSION DATA';
$lang['profiler_headers'] = 'HTTP HEADERS';
$lang['profiler_no_db'] = 'Database driver is not currently loaded';
$lang['profiler_no_queries'] = 'No queries were run';
$lang['profiler_no_post'] = 'No POST data exists';
$lang['profiler_no_get'] = 'No GET data exists';
$lang['profiler_no_uri'] = 'No URI data exists';
$lang['profiler_no_memory'] = 'Memory Usage Unavailable';
$lang['profiler_no_profiles'] = 'No Profile data - all Profiler sections have been disabled.';
$lang['profiler_section_hide'] = 'Hide';
$lang['profiler_section_show'] = 'Show';
/* End of file profiler_lang.php */
/* Location: ./system/language/english/profiler_lang.php */

View File

@ -0,0 +1,25 @@
<?php
$lang['ut_test_name'] = 'Test Name';
$lang['ut_test_datatype'] = 'Test Datatype';
$lang['ut_res_datatype'] = 'Expected Datatype';
$lang['ut_result'] = 'Result';
$lang['ut_undefined'] = 'Undefined Test Name';
$lang['ut_file'] = 'File Name';
$lang['ut_line'] = 'Line Number';
$lang['ut_passed'] = 'Passed';
$lang['ut_failed'] = 'Failed';
$lang['ut_boolean'] = 'Boolean';
$lang['ut_integer'] = 'Integer';
$lang['ut_float'] = 'Float';
$lang['ut_double'] = 'Float'; // can be the same as float
$lang['ut_string'] = 'String';
$lang['ut_array'] = 'Array';
$lang['ut_object'] = 'Object';
$lang['ut_resource'] = 'Resource';
$lang['ut_null'] = 'Null';
$lang['ut_notes'] = 'Notes';
/* End of file unit_test_lang.php */
/* Location: ./system/language/english/unit_test_lang.php */

View File

@ -0,0 +1,22 @@
<?php
$lang['upload_userfile_not_set'] = "Unable to find a post variable called userfile.";
$lang['upload_file_exceeds_limit'] = "The uploaded file exceeds the maximum allowed size in your PHP configuration file.";
$lang['upload_file_exceeds_form_limit'] = "The uploaded file exceeds the maximum size allowed by the submission form.";
$lang['upload_file_partial'] = "The file was only partially uploaded.";
$lang['upload_no_temp_directory'] = "The temporary folder is missing.";
$lang['upload_unable_to_write_file'] = "The file could not be written to disk.";
$lang['upload_stopped_by_extension'] = "The file upload was stopped by extension.";
$lang['upload_no_file_selected'] = "You did not select a file to upload.";
$lang['upload_invalid_filetype'] = "The filetype you are attempting to upload is not allowed.";
$lang['upload_invalid_filesize'] = "The file you are attempting to upload is larger than the permitted size.";
$lang['upload_invalid_dimensions'] = "The image you are attempting to upload exceedes the maximum height or width.";
$lang['upload_destination_error'] = "A problem was encountered while attempting to move the uploaded file to the final destination.";
$lang['upload_no_filepath'] = "The upload path does not appear to be valid.";
$lang['upload_no_file_types'] = "You have not specified any allowed file types.";
$lang['upload_bad_filename'] = "The file name you submitted already exists on the server.";
$lang['upload_not_writable'] = "The upload destination folder does not appear to be writable.";
/* End of file upload_lang.php */
/* Location: ./system/language/english/upload_lang.php */

View File

@ -0,0 +1,679 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 4.3.2 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2006, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
// --------------------------------------------------------------------
/**
* CodeIgniter Template Class
*
* This class is and interface to CI's View class. It aims to improve the
* interaction between controllers and views. Follow @link for more info
*
* @package CodeIgniter
* @author Colin Williams
* @subpackage Libraries
* @category Libraries
* @link http://www.williamsconcepts.com/ci/libraries/template/index.html
* @copyright Copyright (c) 2008, Colin Williams.
* @version 1.4.1
*
*/
class CI_Template {
var $CI;
var $config;
var $template;
var $master;
var $regions = array(
'_scripts' => array(),
'_styles' => array(),
);
var $output;
var $js = array();
var $css = array();
var $parser = 'parser';
var $parser_method = 'parse';
var $parse_template = FALSE;
/**
* Constructor
*
* Loads template configuration, template regions, and validates existence of
* default template
*
* @access public
*/
function CI_Template()
{
// Copy an instance of CI so we can use the entire framework.
$this->CI =& get_instance();
// Load the template config file and setup our master template and regions
include(APPPATH.'config/template'.EXT);
if (isset($template))
{
$this->config = $template;
$this->set_template($template['active_template']);
}
}
// --------------------------------------------------------------------
/**
* Use given template settings
*
* @access public
* @param string array key to access template settings
* @return void
*/
function set_template($group)
{
if (isset($this->config[$group]))
{
$this->template = $this->config[$group];
}
else
{
show_error('The "'. $group .'" template group does not exist. Provide a valid group name or add the group first.');
}
$this->initialize($this->template);
}
// --------------------------------------------------------------------
/**
* Set master template
*
* @access public
* @param string filename of new master template file
* @return void
*/
function set_master_template($filename)
{
if (file_exists(APPPATH .'views/'. $filename) or file_exists(APPPATH .'views/'. $filename . EXT))
{
$this->master = $filename;
}
else
{
show_error('The filename provided does not exist in <strong>'. APPPATH .'views</strong>. Remember to include the extension if other than ".php"');
}
}
// --------------------------------------------------------------------
/**
* Dynamically add a template and optionally switch to it
*
* @access public
* @param string array key to access template settings
* @param array properly formed
* @return void
*/
function add_template($group, $template, $activate = FALSE)
{
if ( ! isset($this->config[$group]))
{
$this->config[$group] = $template;
if ($activate === TRUE)
{
$this->initialize($template);
}
}
else
{
show_error('The "'. $group .'" template group already exists. Use a different group name.');
}
}
// --------------------------------------------------------------------
/**
* Initialize class settings using config settings
*
* @access public
* @param array configuration array
* @return void
*/
function initialize($props)
{
// Set master template
if (isset($props['template'])
&& (file_exists(APPPATH .'views/'. $props['template']) or file_exists(APPPATH .'views/'. $props['template'] . EXT)))
{
$this->master = $props['template'];
}
else
{
// Master template must exist. Throw error.
show_error('Either you have not provided a master template or the one provided does not exist in <strong>'. APPPATH .'views</strong>. Remember to include the extension if other than ".php"');
}
// Load our regions
if (isset($props['regions']))
{
$this->set_regions($props['regions']);
}
// Set parser and parser method
if (isset($props['parser']))
{
$this->set_parser($props['parser']);
}
if (isset($props['parser_method']))
{
$this->set_parser_method($props['parser_method']);
}
// Set master template parser instructions
$this->parse_template = isset($props['parse_template']) ? $props['parse_template'] : FALSE;
}
// --------------------------------------------------------------------
/**
* Set regions for writing to
*
* @access public
* @param array properly formed regions array
* @return void
*/
function set_regions($regions)
{
if (count($regions))
{
$this->regions = array(
'_scripts' => array(),
'_styles' => array(),
);
foreach ($regions as $key => $region)
{
// Regions must be arrays, but we take the burden off the template
// developer and insure it here
if ( ! is_array($region))
{
$this->add_region($region);
}
else {
$this->add_region($key, $region);
}
}
}
}
// --------------------------------------------------------------------
/**
* Dynamically add region to the currently set template
*
* @access public
* @param string Name to identify the region
* @param array Optional array with region defaults
* @return void
*/
function add_region($name, $props = array())
{
if ( ! is_array($props))
{
$props = array();
}
if ( ! isset($this->regions[$name]))
{
$this->regions[$name] = $props;
}
else
{
show_error('The "'. $name .'" region has already been defined.');
}
}
// --------------------------------------------------------------------
/**
* Empty a region's content
*
* @access public
* @param string Name to identify the region
* @return void
*/
function empty_region($name)
{
if (isset($this->regions[$name]['content']))
{
$this->regions[$name]['content'] = array();
}
else
{
show_error('The "'. $name .'" region is undefined.');
}
}
// --------------------------------------------------------------------
/**
* Set parser
*
* @access public
* @param string name of parser class to load and use for parsing methods
* @return void
*/
function set_parser($parser, $method = NULL)
{
$this->parser = $parser;
$this->CI->load->library($parser);
if ($method)
{
$this->set_parser_method($method);
}
}
// --------------------------------------------------------------------
/**
* Set parser method
*
* @access public
* @param string name of parser class member function to call when parsing
* @return void
*/
function set_parser_method($method)
{
$this->parser_method = $method;
}
// --------------------------------------------------------------------
/**
* Write contents to a region
*
* @access public
* @param string region to write to
* @param string what to write
* @param boolean FALSE to append to region, TRUE to overwrite region
* @return void
*/
function write($region, $content, $overwrite = FALSE)
{
if (isset($this->regions[$region]))
{
if ($overwrite === TRUE) // Should we append the content or overwrite it
{
$this->regions[$region]['content'] = array($content);
} else {
$this->regions[$region]['content'][] = $content;
}
}
// Regions MUST be defined
else
{
show_error("Cannot write to the '{$region}' region. The region is undefined.");
}
}
// --------------------------------------------------------------------
/**
* Write content from a View to a region. 'Views within views'
*
* @access public
* @param string region to write to
* @param string view file to use
* @param array variables to pass into view
* @param boolean FALSE to append to region, TRUE to overwrite region
* @return void
*/
function write_view($region, $view, $data = NULL, $overwrite = FALSE)
{
$args = func_get_args();
// Get rid of non-views
unset($args[0], $args[2], $args[3]);
// Do we have more view suggestions?
if (count($args) > 1)
{
foreach ($args as $suggestion)
{
if (file_exists(APPPATH .'views/'. $suggestion . EXT) or file_exists(APPPATH .'views/'. $suggestion))
{
// Just change the $view arg so the rest of our method works as normal
$view = $suggestion;
break;
}
}
}
$content = $this->CI->load->view($view, $data, TRUE);
$this->write($region, $content, $overwrite);
}
// --------------------------------------------------------------------
/**
* Parse content from a View to a region with the Parser Class
*
* @access public
* @param string region to write to
* @param string view file to parse
* @param array variables to pass into view for parsing
* @param boolean FALSE to append to region, TRUE to overwrite region
* @return void
*/
function parse_view($region, $view, $data = NULL, $overwrite = FALSE)
{
$this->CI->load->library('parser');
$args = func_get_args();
// Get rid of non-views
unset($args[0], $args[2], $args[3]);
// Do we have more view suggestions?
if (count($args) > 1)
{
foreach ($args as $suggestion)
{
if (file_exists(APPPATH .'views/'. $suggestion . EXT) or file_exists(APPPATH .'views/'. $suggestion))
{
// Just change the $view arg so the rest of our method works as normal
$view = $suggestion;
break;
}
}
}
$content = $this->CI->{$this->parser}->{$this->parser_method}($view, $data, TRUE);
$this->write($region, $content, $overwrite);
}
// --------------------------------------------------------------------
/**
* Dynamically include javascript in the template
*
* NOTE: This function does NOT check for existence of .js file
*
* @access public
* @param string script to import or embed
* @param string 'import' to load external file or 'embed' to add as-is
* @param boolean TRUE to use 'defer' attribute, FALSE to exclude it
* @return TRUE on success, FALSE otherwise
*/
function add_js($script, $type = 'import', $defer = FALSE)
{
$success = TRUE;
$js = NULL;
$this->CI->load->helper('url');
switch ($type)
{
case 'import':
$filepath = base_url() . $script;
$js = '<script type="text/javascript" src="'. $filepath .'"';
if ($defer)
{
$js .= ' defer="defer"';
}
$js .= "></script>";
break;
case 'embed':
$js = '<script type="text/javascript"';
if ($defer)
{
$js .= ' defer="defer"';
}
$js .= ">";
$js .= $script;
$js .= '</script>';
break;
default:
$success = FALSE;
break;
}
// Add to js array if it doesn't already exist
if ($js != NULL && !in_array($js, $this->js))
{
$this->js[] = $js;
$this->write('_scripts', $js);
}
return $success;
}
// --------------------------------------------------------------------
/**
* Dynamically include CSS in the template
*
* NOTE: This function does NOT check for existence of .css file
*
* @access public
* @param string CSS file to link, import or embed
* @param string 'link', 'import' or 'embed'
* @param string media attribute to use with 'link' type only, FALSE for none
* @return TRUE on success, FALSE otherwise
*/
function add_css($style, $type = 'link', $media = FALSE)
{
$success = TRUE;
$css = NULL;
$this->CI->load->helper('url');
$filepath = base_url() . $style;
switch ($type)
{
case 'link':
$css = '<link type="text/css" rel="stylesheet" href="'. $filepath .'"';
if ($media)
{
$css .= ' media="'. $media .'"';
}
$css .= ' />';
break;
case 'import':
$css = '<style type="text/css">@import url('. $filepath .');</style>';
break;
case 'embed':
$css = '<style type="text/css">';
$css .= $style;
$css .= '</style>';
break;
default:
$success = FALSE;
break;
}
// Add to js array if it doesn't already exist
if ($css != NULL && !in_array($css, $this->css))
{
$this->css[] = $css;
$this->write('_styles', $css);
}
return $success;
}
// --------------------------------------------------------------------
/**
* Render the master template or a single region
*
* @access public
* @param string optionally opt to render a specific region
* @param boolean FALSE to output the rendered template, TRUE to return as a string. Always TRUE when $region is supplied
* @return void or string (result of template build)
*/
function render($region = NULL, $buffer = FALSE, $parse = FALSE)
{
// Just render $region if supplied
if ($region) // Display a specific regions contents
{
if (isset($this->regions[$region]))
{
$output = $this->_build_content($this->regions[$region]);
}
else
{
show_error("Cannot render the '{$region}' region. The region is undefined.");
}
}
// Build the output array
else
{
foreach ($this->regions as $name => $region)
{
$this->output[$name] = $this->_build_content($region);
}
if ($this->parse_template === TRUE or $parse === TRUE)
{
// Use provided parser class and method to render the template
$output = $this->CI->{$this->parser}->{$this->parser_method}($this->master, $this->output, TRUE);
// Parsers never handle output, but we need to mimick it in this case
if ($buffer === FALSE)
{
$this->CI->output->set_output($output);
}
}
else
{
// Use CI's loader class to render the template with our output array
$output = $this->CI->load->view($this->master, $this->output, $buffer);
}
}
return $output;
}
// --------------------------------------------------------------------
/**
* Load the master template or a single region
*
* DEPRECATED!
*
* Use render() to compile and display your template and regions
*/
function load($region = NULL, $buffer = FALSE)
{
$region = NULL;
$this->render($region, $buffer);
}
// --------------------------------------------------------------------
/**
* Build a region from it's contents. Apply wrapper if provided
*
* @access private
* @param string region to build
* @param string HTML element to wrap regions in; like '<div>'
* @param array Multidimensional array of HTML elements to apply to $wrapper
* @return string Output of region contents
*/
function _build_content($region, $wrapper = NULL, $attributes = NULL)
{
$output = NULL;
// Can't build an empty region. Exit stage left
if ( ! isset($region['content']) or ! count($region['content']))
{
return FALSE;
}
// Possibly overwrite wrapper and attributes
if ($wrapper)
{
$region['wrapper'] = $wrapper;
}
if ($attributes)
{
$region['attributes'] = $attributes;
}
// Open the wrapper and add attributes
if (isset($region['wrapper']))
{
// This just trims off the closing angle bracket. Like '<p>' to '<p'
$output .= substr($region['wrapper'], 0, strlen($region['wrapper']) - 1);
// Add HTML attributes
if (isset($region['attributes']) && is_array($region['attributes']))
{
foreach ($region['attributes'] as $name => $value)
{
// We don't validate HTML attributes. Imagine someone using a custom XML template..
$output .= " $name=\"$value\"";
}
}
$output .= ">";
}
// Output the content items.
foreach ($region['content'] as $content)
{
$output .= $content;
}
// Close the wrapper tag
if (isset($region['wrapper']))
{
// This just turns the wrapper into a closing tag. Like '<p>' to '</p>'
$output .= str_replace('<', '</', $region['wrapper']) . "\n";
}
return $output;
}
}
// END Template Class
/* End of file Template.php */
/* Location: ./system/application/libraries/Template.php */

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,9 @@
<?php
class Catalog_model extends CI_Model {
public function __construct() {
}
public function get_paintings_all() {
$query = $this->db->query('CALL paintings_get_all_active');
return $query->result_array();
}
}

View File

@ -0,0 +1,97 @@
<?php
class Forms_model extends CI_Model {
public function __construct() {
$this->load->helper(array('form', 'url'));
$this->load->library('form_validation');
$this->form_validation->set_error_delimiters('<span class="error">', '</span>');
}
public function contact() {
$this->load->library('email');
$this->form_validation->set_rules('name', 'lang:full_name', 'required');
$this->form_validation->set_rules('email', 'lang:email', 'required|valid_email');
$this->form_validation->set_rules('message', 'lang:message', 'required');
if($this->form_validation->run() == false) {
return $this->load->view('forms/contact', '', TRUE);
} else {
$data['name'] = $_POST['name'];
$data['email'] = $_POST['email'];
$data['message'] = $_POST['message'];
$this->email->from('robot@eastside.se', 'Eastern Galleries: Robot');
$this->email->to('linus@linusmiller.se');
$this->email->subject('Intresseanmälan från ' . $data['name']);
$this->email->message($this->load->view('emails/contact_form', $data, TRUE));
unset($data);
if($this->email->send()) {
$data['message'] = 'Tack! Ditt meddelande behandlas och vi kontaktar dig så fort som möjligt.';
return $this->load->view('forms/success', $data, TRUE);
} else {
$data['message'] = $this->email->print_debugger();
return $this->load->view('forms/fail', $data, TRUE);
}
}
}
public function newsletter() {
$this->form_validation->set_rules('email_newsletter', 'lang:email', 'required|valid_email');
if($this->form_validation->run() == false) {
return $this->load->view('forms/newsletter', '', TRUE);
} else {
$this->load->model('newsletter_model');
$data['legend'] = 'Din email';
if($this->newsletter_model->add_email($_POST['email_newsletter']) > 0) {
$data['message'] = 'Din epostaddress har lags till i vår mailinglista!';
return $this->load->view('forms/success', $data, TRUE);
} else {
$data['message'] = 'Error!';
return $this->load->view('forms/fail', $data, TRUE);
}
}
}
public function order($id) {
$this->form_validation->set_rules('name', 'lang:name', 'required');
$this->form_validation->set_rules('co', 'lang:co', '');
$this->form_validation->set_rules('street', 'lang:street', 'required');
$this->form_validation->set_rules('postcode', 'lang:postcode', 'required|numeric|exact_length[5]');
$this->form_validation->set_rules('region', 'lang:region', 'required');
$this->form_validation->set_rules('phone', 'lang:phone', 'required|numeric|min_length[7]');
$this->form_validation->set_rules('email', 'lang:email', 'required|valid_email');
if($this->form_validation->run() == false) {
return $this->load->view('forms/order', array('id' => $id), TRUE);
} else {
$this->load->model('gallery_model');
$status = $_POST['payment'] == 'pre' ? 1 : 2;
if($this->gallery_model->set_painting_status($id, $status) > 0) {
$data['title'] = 'test';
$data['name'] = $_POST['name'];
$data['email'] = $_POST['email'];
$data['phone'] = $_POST['phone'];
$data['street'] = $_POST['street'];
$data['co'] = $_POST['co'];
$data['postcode'] = $_POST['postcode'];
$data['region'] = $_POST['region'];
$data['payment'] = $_POST['payment'];
$data['painting'] = $this->gallery_model->get_painting_by_id($id);
$data['reference'] = $this->gallery_model->get_reference();
$this->email->from('robot@eastside.se', 'Eastern Galleries: Orders');
$this->email->to($data['email']);
$this->email->bcc('orders@easterngalleries.se');
$this->email->subject('Orderbekräftelse för tavla #' . $data['painting']['code'] . ' från Eastside');
$this->email->message($this->load->view('emails/order_confirmation', $data, TRUE));
unset($data);
if($this->email->send()) {
$data['message'] = 'Ditt köp har registrerats! Om du valt att betala via förskottsbetalning, skickas din tavla först när betalningen är oss tillhanda. För alla andra sätt skickas tavlan omgående och du kommer att få en leveransbekräftelse inom några dagar.';
$data['button'] = array('class' => 'reload', 'text' => 'Stöng');
return $this->load->view('forms/success', $data, TRUE);
} else {
$data['message'] = 'Din order har registrerats men det blev ett fel med orderbekräftelsen. Kontakta Eastern Galleries snarast.';
return $this->load->view('forms/fail', $data, TRUE);;
}
}
else {
return "Det uppstod ett problem när databasen skulle uppdateras.";
}
}
}
}

View File

@ -0,0 +1,40 @@
<?php
class Gallery_model extends CI_Model {
public function __construct() {
}
public function get_paintings_active_all() {
$sql = 'CALL paintings_get_active_all()';
$query = $this->db->query($sql);
return $query->result_array();
}
public function get_paintings_active_limit($limit) {
$sql = 'CALL paintings_get_active_limit(?)';
$params = array($limit);
$query = $this->db->query($sql, $params);
return $query->result_array();
}
public function get_paintings_on_display_limit($limit) {
$sql = 'CALL paintings_get_on_display_limit(?)';
$params = array($limit);
$query = $this->db->query($sql, $params);
return $query->result_array();
}
public function get_painting_by_id($id) {
$sql = 'CALL paintings_get_by_id(?)';
$params = array($id);
$query = $this->db->query($sql, $params);
return $query->row_array();
}
public function set_painting_status($id, $status = 0) {
$sql = 'CALL paintings_set_status(?,?)';
$params = array($id, $status);
$result = $this->db->query($sql, $params);
return $this->db->affected_rows();
}
public function get_reference() {
$result = $this->db->query('CALL general_reference()');
$array = $result->row_array();
return $array['reference'];
}
}

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,13 @@
<?php
class News_model extends CI_Model {
public function __construct() {
}
public function get_news($id = false) {
if($id == false) {
$query = $this->db->query('CALL news_get_all()');
return $query->result_array();
}
$query = $this->db->query('CALL news_get_all');
return $query->result_array();
}
}

View File

@ -0,0 +1,10 @@
<?php
class Newsletter_model extends CI_model {
public function __construct() {
}
public function add_email($email) {
$query = $this->db->query("CALL newsletter_add_email('$email')");
return $this->db->affected_rows();
}
}

10
application/third_party/index.html vendored Normal file
View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,80 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Active template
|--------------------------------------------------------------------------
|
| The $master['active_template'] setting lets you choose which template
| group to make active. By default there is only one group (the
| "default" group).
|
*/
$master['active_template'] = 'default';
/*
|--------------------------------------------------------------------------
| Explaination of template group variables
|--------------------------------------------------------------------------
|
| ['template'] The filename of your master template file in the Views folder.
| Typically this file will contain a full XHTML skeleton that outputs your
| full template or region per region. Include the file extension if other
| than ".php"
| ['regions'] Places within the template where your content may land.
| You may also include default markup, wrappers and attributes here
| (though not recommended). Region keys must be translatable into variables
| (no spaces or dashes, etc)
| ['parser'] The parser class/library to use for the parse_view() method
| NOTE: See http://codeigniter.com/forums/viewthread/60050/P0/ for a good
| Smarty Parser that works perfectly with Template
| ['parse_template'] FALSE (default) to treat master template as a View. TRUE
| to user parser (see above) on the master template
|
| Region information can be extended by setting the following variables:
| ['content'] Must be an array! Use to set default region content
| ['name'] A string to identify the region beyond what it is defined by its key.
| ['wrapper'] An HTML element to wrap the region contents in. (We
| recommend doing this in your template file.)
| ['attributes'] Multidimensional array defining HTML attributes of the
| wrapper. (We recommend doing this in your template file.)
|
| Example:
| $master['default']['regions'] = array(
| 'header' => array(
| 'content' => array('<h1>Welcome</h1>','<p>Hello World</p>'),
| 'name' => 'Page Header',
| 'wrapper' => '<div>',
| 'attributes' => array('id' => 'header', 'class' => 'clearfix')
| )
| );
|
*/
/*
|--------------------------------------------------------------------------
| Default Master Configuration (adjust this or create your own)
|--------------------------------------------------------------------------
*/
$master['default']['template'] = 'masters/default';
$master['default']['regions'] = array(
'title',
'content',
'current_page'
);
$master['default']['css'] = array('main');
$master['default']['js'] = array('modernizr', 'init');
$master['default']['parser'] = 'parser';
$master['default']['parser_method'] = 'parse';
$master['default']['parse_template'] = FALSE;
$master['admin']['template'] = 'templates/admin';
$master['admin']['regions'] = array(
'title',
'content'
);
$master['admin']['parser'] = 'parser';
$master['admin']['parse_method'] = 'parse';
$master['admin']['parse_template'] = FALSE;
/* End of file template.php */
/* Location: ./system/application/config/template.php */

View File

@ -0,0 +1,675 @@
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter Master Class
*
* This class is and interface to CI's View class. It aims to improve the
* interaction between controllers and views. Follow @link for more info
*
* It is a fork of Colin Williams Template:
*
* package CodeIgniter
* author Colin Williams
* subpackage Libraries
* category Libraries
* link http://www.williamsconcepts.com/ci/libraries/template/index.html
* copyright Copyright (c) 2008, Colin Williams.
* version 1.4.1
*
* @package CodeIgniter
* @author Linus miller
* @subpackage Libraries
* @category Libraries
* @link http://www.thecodebureau.com
* @copyright Copyright (c) 2013, Linus miller.
* @version 1.0.0
*
*/
class CI_Master {
var $CI;
var $config;// stores the configuration for ALL masters
var $master;// stores the configuration and properties of the set master
var $default_template;// stores the default template (view) file for the master
var $regions = array(
'_js' => array(),
'_css' => array(),
);
var $output;
var $js = array();
var $css = array();
var $parser = 'parser';
var $parser_method = 'parse';
var $parse_template = FALSE;
/**
* Constructor
*
* Loads master configuration, master regions, and validates existence of
* default template
*
* @access public
*/
function CI_Master()
{
// Copy an instance of CI so we can use the entire framework.
$this->CI =& get_instance();
// Load the master config file and setup our default master template and regions (? not really sure it's also regions...)
include(dirname(__DIR__) . '/config/master'.EXT);
if (isset($master))
{
$this->config = $master;
$this->set_master($master['active_template']);
}
}
// --------------------------------------------------------------------
/**
* Use given master settings
*
* @access public
* @param string array key to access master settings
* @return void
*/
function set_master($group)
{
if (isset($this->config[$group]))
{
$this->master = $this->config[$group];
$this->js = array();
$this->css = array();
}
else
{
show_error('The "'. $group .'" master group does not exist. Provide a valid group name or add the group first.');
}
$this->initialize($this->master);
}
// --------------------------------------------------------------------
/**
* Set masters default template
*
* @access public
* @param string filename of new master template file
* @return void
*/
function set_default_template($filename)
{
if (file_exists(APPPATH .'views/'. $filename) or file_exists(APPPATH .'views/'. $filename . EXT))
{
$this->default_template = $filename;
}
else
{
show_error('The filename provided does not exist in <strong>'. APPPATH .'views</strong>. Remember to include the extension if other than ".php"');
}
}
// --------------------------------------------------------------------
/**
* Dynamically add a master and optionally switch to it
*
* @access public
* @param string array key to access master settings
* @param array properly formed
* @return void
*/
function add_master($group, $master, $activate = FALSE)
{
if ( ! isset($this->config[$group]))
{
$this->config[$group] = $master;
if ($activate === TRUE)
{
$this->initialize($master);
}
}
else
{
show_error('The "'. $group .'" master group already exists. Use a different group name.');
}
}
// --------------------------------------------------------------------
/**
* Initialize class settings using config settings
*
* @access public
* @param array configuration array
* @return void
*/
function initialize($props)
{
// Set default template
if (isset($props['template'])
&& (file_exists(APPPATH .'views/'. $props['template']) or file_exists(APPPATH .'views/'. $props['template'] . EXT)))
{
$this->default_template = $props['template'];
}
else
{
// Default template must exist. Throw error.
show_error('Either you have not provided a default template for the master or the one provided does not exist in <strong>'. APPPATH .'views</strong>. Remember to include the extension if other than ".php"');
}
// Load our regions
if (isset($props['regions']))
{
$this->set_regions($props['regions']);
}
// LM: Load any styles
if (isset($props['css'])) {
foreach($props['css'] as $s) {
self::add_css($s, 'link', FALSE);
}
}
// LM: Load any scripts
if (isset($props['js'])) {
foreach($props['js'] as $s) {
self::add_js($s, 'import', FALSE);
}
}
// Set parser and parser method
if (isset($props['parser']))
{
$this->set_parser($props['parser']);
}
if (isset($props['parser_method']))
{
$this->set_parser_method($props['parser_method']);
}
// Set template parser instructions
$this->parse_template = isset($props['parse_template']) ? $props['parse_template'] : FALSE;
}
// --------------------------------------------------------------------
/**
* Set regions for writing to
*
* @access public
* @param array properly formed regions array
* @return void
*/
function set_regions($regions)
{
if (count($regions))
{
$this->regions = array(
'_js' => array(),
'_css' => array(),
);
foreach ($regions as $key => $region)
{
// Regions must be arrays, but we take the burden off the master
// developer and insure it here
if ( ! is_array($region))
{
$this->add_region($region);
}
else {
$this->add_region($key, $region);
}
}
}
}
// --------------------------------------------------------------------
/**
* Dynamically add region to the currently set master
*
* @access public
* @param string Name to identify the region
* @param array Optional array with region defaults
* @return void
*/
function add_region($name, $props = array())
{
if ( ! is_array($props))
{
$props = array();
}
if ( ! isset($this->regions[$name]))
{
$this->regions[$name] = $props;
}
else
{
show_error('The "'. $name .'" region has already been defined.');
}
}
// --------------------------------------------------------------------
/**
* Empty a region's content
*
* @access public
* @param string Name to identify the region
* @return void
*/
function empty_region($name)
{
if (isset($this->regions[$name]['content']))
{
$this->regions[$name]['content'] = array();
}
else
{
show_error('The "'. $name .'" region is undefined.');
}
}
// --------------------------------------------------------------------
/**
* Set parser
*
* @access public
* @param string name of parser class to load and use for parsing methods
* @return void
*/
function set_parser($parser, $method = NULL)
{
$this->parser = $parser;
$this->CI->load->library($parser);
if ($method)
{
$this->set_parser_method($method);
}
}
// --------------------------------------------------------------------
/**
* Set parser method
*
* @access public
* @param string name of parser class member function to call when parsing
* @return void
*/
function set_parser_method($method)
{
$this->parser_method = $method;
}
// --------------------------------------------------------------------
/**
* Write contents to a region
*
* @access public
* @param string region to write to
* @param string what to write
* @param boolean FALSE to append to region, TRUE to overwrite region
* @return void
*/
function write($region, $content, $overwrite = FALSE)
{
if (isset($this->regions[$region]))
{
if ($overwrite === TRUE) // Should we append the content or overwrite it
{
$this->regions[$region]['content'] = array($content);
} else {
$this->regions[$region]['content'][] = $content;
}
}
// Regions MUST be defined
else
{
show_error("Cannot write to the '{$region}' region. The region is undefined.");
}
}
// --------------------------------------------------------------------
/**
* Write content from a View to a region. 'Views within views'
*
* @access public
* @param string region to write to
* @param string view file to use
* @param array variables to pass into view
* @param boolean FALSE to append to region, TRUE to overwrite region
* @return void
*/
function write_view($region, $view, $data = NULL, $overwrite = FALSE)
{
$args = func_get_args();
// Get rid of non-views
unset($args[0], $args[2], $args[3]);
// Do we have more view suggestions?
if (count($args) > 1)
{
foreach ($args as $suggestion)
{
if (file_exists(APPPATH .'views/'. $suggestion . EXT) or file_exists(APPPATH .'views/'. $suggestion))
{
// Just change the $view arg so the rest of our method works as normal
$view = $suggestion;
break;
}
}
}
$content = $this->CI->load->view($view, $data, TRUE);
$this->write($region, $content, $overwrite);
}
// --------------------------------------------------------------------
/**
* Parse content from a View to a region with the Parser Class
*
* @access public
* @param string region to write to
* @param string view file to parse
* @param array variables to pass into view for parsing
* @param boolean FALSE to append to region, TRUE to overwrite region
* @return void
*/
function parse_view($region, $view, $data = NULL, $overwrite = FALSE)
{
$this->CI->load->library('parser');
$args = func_get_args();
// Get rid of non-views
unset($args[0], $args[2], $args[3]);
// Do we have more view suggestions?
if (count($args) > 1)
{
foreach ($args as $suggestion)
{
if (file_exists(APPPATH .'views/'. $suggestion . EXT) or file_exists(APPPATH .'views/'. $suggestion))
{
// Just change the $view arg so the rest of our method works as normal
$view = $suggestion;
break;
}
}
}
$content = $this->CI->{$this->parser}->{$this->parser_method}($view, $data, TRUE);
$this->write($region, $content, $overwrite);
}
// --------------------------------------------------------------------
/**
* Dynamically include javascript in the master
*
* NOTE: This function does NOT check for existence of .js file
*
* @access public
* @param string script to import or embed
* @param string 'import' to load external file or 'embed' to add as-is
* @param boolean TRUE to use 'defer' attribute, FALSE to exclude it
* @return TRUE on success, FALSE otherwise
*/
function add_js($script, $type = 'import', $defer = FALSE)
{
$success = TRUE;
$js = NULL;
$js_folder = $this->CI->config->item('js_folder');
$this->CI->load->helper('url');
switch ($type)
{
case 'import':
$filepath = base_url($js_folder . '/' . $script . '.js');
$js = "\t<script type=\"text/javascript\" src=\"". $filepath .'"';
if ($defer)
{
$js .= ' defer="defer"';
}
$js .= "></script>\n";
break;
case 'embed':
$js = "\t<script type=\"text/javascript\"";
if ($defer)
{
$js .= ' defer="defer"';
}
$js .= ">";
$js .= $script;
$js .= "</script>\n";
break;
default:
$success = FALSE;
break;
}
// Add to js array if it doesn't already exist
if ($js != NULL && !in_array($js, $this->js))
{
$this->js[] = $js;
$this->write('_js', $js);
}
return $success;
}
// --------------------------------------------------------------------
/**
* Dynamically include CSS in the master
*
* NOTE: This function does NOT check for existence of .css file
*
* @access public
* @param string CSS file to link, import or embed
* @param string 'link', 'import' or 'embed'
* @param string media attribute to use with 'link' type only, FALSE for none
* @return TRUE on success, FALSE otherwise
*/
function add_css($style, $type = 'link', $media = FALSE)
{
$success = TRUE;
$css = NULL;
$css_folder = $this->CI->config->item('css_folder');
$this->CI->load->helper('url');
$filepath = base_url($css_folder . '/' . $style . '.css');
switch ($type)
{
case 'link':
$css = "\t<link type=\"text/css\" rel=\"stylesheet\" href=\"". $filepath .'"';
if ($media)
{
$css .= ' media="'. $media .'"';
}
$css .= " />\n";
break;
case 'import':
$css = '\t<style type=\"text/css\">@import url('. $filepath .");</style>\n";
break;
case 'embed':
$css = "\t<style type=\"text/css\">";
$css .= $style;
$css .= "</style>\n";
break;
default:
$success = FALSE;
break;
}
// Add to css array if it doesn't already exist
if ($css != NULL && !in_array($css, $this->css))
{
$this->css[] = $css;
$this->write('_css', $css);
}
return $success;
}
// --------------------------------------------------------------------
/**
* Render the master or a single region
*
* @access public
* @param string optionally opt to render a specific region
* @param boolean FALSE to output the rendered master, TRUE to return as a string. Always TRUE when $region is supplied
* @return void or string (result of master build)
*/
function render($region = NULL, $buffer = FALSE, $parse = FALSE)
{
// Just render $region if supplied
if ($region) // Display a specific regions contents
{
if (isset($this->regions[$region]))
{
$output = $this->_build_content($this->regions[$region]);
}
else
{
show_error("Cannot render the '{$region}' region. The region is undefined.");
}
}
// Build the output array
else
{
foreach ($this->regions as $name => $region)
{
$this->output[$name] = $this->_build_content($region);
}
if ($this->parse_template === TRUE or $parse === TRUE)
{
// Use provided parser class and method to render the master
$output = $this->CI->{$this->parser}->{$this->parser_method}($this->default_template, $this->output, TRUE);
// Parsers never handle output, but we need to mimick it in this case
if ($buffer === FALSE)
{
$this->CI->output->set_output($output);
}
}
else
{
// Use CI's loader class to render the master with our output array
$output = $this->CI->load->view($this->default_template, $this->output, $buffer);
}
}
return $output;
}
// --------------------------------------------------------------------
/**
* Build a region from it's contents. Apply wrapper if provided
*
* @access private
* @param string region to build
* @param string HTML element to wrap regions in; like '<div>'
* @param array Multidimensional array of HTML elements to apply to $wrapper
* @return string Output of region contents
*/
function _build_content($region, $wrapper = NULL, $attributes = NULL)
{
$output = NULL;
// Can't build an empty region. Exit stage left
if ( ! isset($region['content']) or ! count($region['content']))
{
return FALSE;
}
// Possibly overwrite wrapper and attributes
if ($wrapper)
{
$region['wrapper'] = $wrapper;
}
if ($attributes)
{
$region['attributes'] = $attributes;
}
// Open the wrapper and add attributes
if (isset($region['wrapper']))
{
// This just trims off the closing angle bracket. Like '<p>' to '<p'
$output .= substr($region['wrapper'], 0, strlen($region['wrapper']) - 1);
// Add HTML attributes
if (isset($region['attributes']) && is_array($region['attributes']))
{
foreach ($region['attributes'] as $name => $value)
{
// We don't validate HTML attributes. Imagine someone using a custom XML template..
$output .= " $name=\"$value\"";
}
}
$output .= ">";
}
// Output the content items.
foreach ($region['content'] as $content)
{
$output .= $content;
}
// Close the wrapper tag
if (isset($region['wrapper']))
{
// This just turns the wrapper into a closing tag. Like '<p>' to '</p>'
$output .= str_replace('<', '</', $region['wrapper']) . "\n";
}
return $output;
}
}
// END Master Class
/* End of file Master.php */
/* Location: ./system/application/libraries/Template.php */

View File

@ -0,0 +1,12 @@
<!doctype html>
<html>
<head>
<title>Testing</title>
</head>
<body>
<div>
<h1>Hello</h1>
<p>Some text.</p>
</div>
</body>
</html>

View File

@ -0,0 +1,15 @@
<h1>Kontakt formulär från <?= $name ?></h1>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td>Namn:</td>
<td><?= $name ?></td>
</tr>
<tr>
<td>Email:</td>
<td><?= $email ?></td>
</tr>
<tr>
<td>Message:</td>
<td><?= $message ?></td>
</tr>
</table>

View File

@ -0,0 +1,168 @@
<?php
$freight = 69;
if($payment == 'pre') {
$post = 0;
$total = $painting['price'] + $freight;
} else {
$post = 40;
$total = $painting['price'] + $freight + $post;
}
$vat = $total * 0.2;
?>
<style type="text/css">
body { font-size: 12px; font-family: 'Arial', 'Helvetica', 'Verdana', sans-serif; width: 700px; }
table { font-size: 12px; margin: 0; padding: 0; }
table tr { margin: 0; padding: 0; }
table tr td { margin: 0; padding: 0; }
table.info { width: 320px; }
table.info.float { float: left; }
table.info.order { margin-left: 60px; }
table.info tr { border-bottom: 1px solid white; }
table.info tr td { border-bottom: 1px solid white; background: #eee; padding: 3px 5px; margin: 0; }
table.info tr td.heading { color: #a00; background: #fff; font-weight: bold; }
table.info tr td.label { width: 100px; }
table.bottom-info { padding-top: 5px; border-top: 1px solid black; width: 700px; }
table.bottom-info td.center { text-align: center; }
table.bottom-info td.right { text-align: right; }
table.products { margin-top: 30px; width: 700px; }
table.products th { padding: 4px 0; text-align: center; background: #666; color: white; font-weight: bold; }
table.products .amount { width: 50px; }
table.products .code { width: 50px; }
table.products .price { width: 80px; }
table.products td { padding: 4px 0; background: #eee; }
table.products .no-bg { background: white; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.bold { font-weight: bold; }
.grey { color: #aaa; }
h1 { color: #fff; font-size: 24px; padding: 7px 0 7px 140px; background: #000 url('http://www.eastside.se/img/logo-120px.png') no-repeat 10px 5px; }
h2 { color: #a00; font-size: 16px; margin-bottom: 0; }
</style>
<h1>Tack för er beställning!</h1>
<p>Tack för er beställning! Din beställning hos Eastern Galleries har nu registrerats och behandlas.</p>
<table cellspacing="0" cellpadding="0" border="0" class="customer info float">
<tr>
<td class="heading" colspan="2">Leveransadress</td>
</tr>
<tr>
<td class="label">Namn:</td>
<td><?= $name ?></td>
</tr>
<td class="label">CO:</td>
<td><?= $co ?>&nbsp;</td>
</tr>
<tr>
<td class="label">Adress</td>
<td><?= $street ?></td>
</tr>
<tr>
<td class="label">Postnr/postort:</td>
<td><?= $postcode ?> <?= $region ?></td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" class="order info float">
<tr>
<td class="heading" colspan="2">Orderinformation</td>
</tr>
<tr>
<td class="label">Datum:</td>
<td>2013-04-23</td>
</tr>
<tr>
<td class="label">Referensnr:</td>
<td><?= $reference ?></td>
</tr>
<tr>
<td class="label">Betalningssätt:</td>
<td><?= $payment == 'pre' ? 'Förskottsbetalning' : 'Postförskott' ?></td>
</tr>
<tr>
<td class="label">Leverans:</td>
<td>Posten</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" class="other info">
<tr>
<td class="heading" colspan="2">Övrig information</td>
</tr>
<tr>
<td class="label">Email:</td>
<td><?= $email ?></td>
</tr>
<tr>
<td class="label">Telefon:</td>
<td><?= $phone ?></td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" class="products">
<tr>
<th class="amount">Antal</th>
<th class="code">Kod</th>
<th class="description">Benämning</th>
<th class="price">Pris</th>
</tr>
<tr>
<td class="text-center">1</td>
<td class="text-center"><?= $painting['code'] ?></td>
<td>"<?= $painting['title'] ?>" av <em><?= $painting['artist'] ?></em></td>
<td class="text-right"><?= number_format($painting['price'], '2', ',', '.') ?> kr</td>
</tr>
<tr>
<td colspan="3" class="text-right no-bg">Varuvärde:</td>
<td class="text-right no-bg"><?= number_format($painting['price'], '2', ',', '.') ?> kr</td>
</tr>
<tr>
<td colspan="3" class="text-right no-bg">Frakt:</td>
<td class="text-right no-bg"><?= number_format($freight, '2', ',', '.') ?> kr</td>
</tr>
<?php if($payment == 'post'): ?>
<tr>
<td colspan="3" class="text-right no-bg">Postförskott:</td>
<td class="text-right no-bg"><?= number_format($post, '2', ',', '.') ?> kr</td>
</tr>
<?php endif; ?>
<tr>
<td colspan="3" class="text-right no-bg bold">Totalt:</td>
<td class="text-right no-bg bold"><?= number_format($total, '2', ',', '.') ?> kr</td>
</tr>
<tr>
<td colspan="3" class="text-right no-bg grey">varav moms:</td>
<td class="text-right no-bg grey"><?= number_format($vat, '2', ',','.') ?> kr</td>
</tr>
</table>
<h2>Betalning och leverans</h2>
<p>Om du valt att betala via postförskott kommer er tavla att skickas omgående, och du får en leveransbekräftelse
till denna e-postadress detta skett. Om ni istället valt att göra en förskottsbetalning kommer en inbetalningsavi
att skickas till dig. När er betalning sedan registrerats hos oss kommer
tavlan att postas till den adress du uppgett, och ni får även en leveransbekräftelse.</p>
<h2>Ångerrätt</h2>
<p>Som konsument har ni rätt till 14 dagars ångerrätt enligt Distansavtalslagen. Läs mer i våra försäljningsvillkor.</p>
<h2>Övriga frågor</h2>
<p>Undrar ni över något är ni varmt välkommen att kontakta Eastern Galleries kundservice
via e-post <a href="mailto:info@eastside.se">info@eastside.se</a> eller telefon 0708-922 122. </p>
<table cellspacing="0" cellpadding="0" border="0" class="bottom-info">
<tr>
<td>
<p>Eastern Galleries<br/>
Trastvägen 8<br>
227 31 Lund</p>
</td>
<td class="center">
<p><a href="http://www.eastside.se">www.eastside.se</a><br />
<a href="mailto:info@eastside.se">info@eastside.se</a><br />
0708-922 122</p>
</td>
<td class="right">
<p>Orgnr: 556390-1674<br />
Bankgiro: 174-6054</p>
</tr>
</table>

View File

@ -0,0 +1,47 @@
<?= form_open('ajax/frm_contact', array('id' => 'frm-contact')) ?>
<fieldset>
<div class="r">
<div class="c -m12">
<select>
<option>One</option>
<option>One</option>
<option>One</option>
<option>One</option>
</select>
</div>
<div class="c -m12">
<label>Namn <?= form_error('name') ?></label>
<input type="text" name="name" value="<?= set_value('name') ?>" placeholder="Ditt namn..." />
</div>
<div class="c -m12">
<label>E-post <?= form_error('email') ?></label>
<input type="text" name="email" value="<?= set_value('email') ?>" placeholder="Din epostadress..." />
</div>
<div class="c -m12">
<label>Meddelande <?= form_error('message') ?></label>
<textarea name="message" placeholder="Ditt meddelande..."><?= set_value('message') ?></textarea>
</div>
<div class="c -m12">
<a href="#" class="submit button right small">Skicka</a>
</div>
</div>
</fieldset>
</form>
<script type="text/javascript">
$('form#frm-contact a.submit').click(function(e){
var frm = $(this).closest('form');
$.post(frm.attr('action'), frm.serialize(), function(response){
frm.closest('div.frm').html(response);
});
e.preventDefault();
});
/*
$('form#frm-contact').bind('keypress', function(e){
if ( e.keyCode == 13 ) {
$( this ).find( 'a.submit' ).click();
e.preventDefault();
}
});
*/
</script>

View File

@ -0,0 +1,10 @@
<div class="frm-return fail">
<?php if(isset($legend)): ?>
<span class="legend"><?= isset($legend) ? $legend : '' ?></span>
<?php endif; ?>
<div class="message"><?= $message ?></div>
<?php if(isset($button)): ?>
<a href="#" class="button small <?= $button['class'] ?>"><?= $button['text'] ?>
<?php endif; ?>
<a href="#" class="submit button retry">Retry</a>
</div>

View File

@ -0,0 +1,34 @@
<?= form_open('ajax/frm_newsletter', array('id' => 'frm-newsletter')) ?>
<fieldset>
<legend>Din email</legend>
<div class="row">
<div class="medium-12 columns">
<?= form_error('email_newsletter') ?>
</div>
</div>
<div class="row collapse">
<div class="medium-9 columns">
<input name="email_newsletter" type="text" value="<?= set_value('email_newsletter') ?>" placeholder="Din epostaddress..." />
</div>
<div class="medium-3 columns">
<a href="#" class="submit button postfix">Skicka</a>
</div>
</div>
</fieldset>
</form>
<script type="text/javascript">
$('form#frm-newsletter a.submit').click(function(e){
var frm = $(this).closest('form');
$.post(frm.attr('action'), frm.serialize(), function(response){
frm.closest('div.frm').html(response);
});
e.preventDefault();
});
$('form#frm-newsletter').bind('keypress', function(e){
if ( e.keyCode == 13 ) {
$( this ).find( 'a.submit' ).click();
e.preventDefault();
}
});
</script>

View File

@ -0,0 +1,3 @@
<div class="success">
<div class="message"><?= $message ?></div>
</div>

View File

@ -0,0 +1,81 @@
<?= form_open('ajax/frm_order/' . $id, array('id' => 'frm-order')) ?>
<input type="hidden" name="id" value="<?= $id ?>" />
<div class="row">
<div class="medium-12 columns">
<label>Namn <?= form_error('name') ?></label>
<input type="text" name="name" value="<?= set_value('name') ?>" placeholder="Ditt namn..." />
</div>
</div>
<div class="row">
<div class="medium-12 columns">
<label>Adress <?= form_error('co') ?></label>
<input type="text" name="co" value="<?= set_value('co') ?>" placeholder="C/O..." />
</div>
</div>
<div class="row">
<div class="medium-12 columns">
<?= form_error('street') ?>
<input type="text" name="street" value="<?= set_value('street') ?>" placeholder="Din gatuadress..." />
</div>
</div>
<div class="row">
<div class="medium-5 columns">
<?= form_error('postcode') ?>
</div>
<div class="medium-7 columns">
<?= form_error('region') ?>
</div>
</div>
<div class="row">
<div class="medium-5 columns">
<input type="text" name="postcode" value="<?= set_value('postcode') ?>" placeholder="Din postkod..." />
</div>
<div class="medium-7 columns">
<input type="text" name="region" value="<?= set_value('region') ?>" placeholder="Din postort..." />
</div>
</div>
<div class="row">
<div class="medium-12 columns">
<label>E-post <?= form_error('email') ?></label>
<input type="text" name="email" value="<?= set_value('email') ?>" placeholder="Din epostadress..." />
</div>
</div>
<div class="row">
<div class="medium-12 columns">
<label>Telefon <?= form_error('phone') ?></label>
<input type="text" name="phone" value="<?= set_value('phone') ?>" placeholder="Ditt telefonnumnmer..." />
</div>
</div>
<div class="row">
<div class="medium-12 columns">
<label>Betalningssätt</label>
<select name="payment" id="frm-slct-payment">
<option value="pre">Förskottsbetalning</option>
<option value="post">Postförskott (+40kr)</option>
</select>
</div>
</div>
<div class="row">
<div class="medium-12 columns">
<label>Meddelande <?= form_error('message') ?></label>
<textarea name="message" placeholder="Ditt meddelande..."><?= set_value('message') ?></textarea>
</div>
</div>
<div class="row">
<div class="medium-12 columns"><a href="#" class="right button small submit">Skicka</a></div>
</div>
</form>
<script type="text/javascript">
$('form#frm-order a.submit').click(function(e){
var frm = $(this).closest('form');
$.post(frm.attr('action'), frm.serialize(), function(response){
frm.closest('div.frm').html(response);
});
e.preventDefault();
});
$('form#frm-order #frm-slct-payment').change(function(e){
$(this).closest('.medium-7').next().find('.post').toggle();
$(this).closest('.medium-7').next().find('.pre').toggle();
});
</script>

View File

@ -0,0 +1,16 @@
<div class="frm-return success">
<?php if(isset($legend)): ?>
<span class="legend"><?= isset($legend) ? $legend : '' ?></span>
<?php endif; ?>
<div class="message"><?= $message ?></div>
<?php if(isset($button)): ?>
<a href="#" class="button small <?= $button['class'] ?>"><?= $button['text'] ?></a>
<?php endif; ?>
</div>
<?php if(isset($button) && $button['class'] = 'reload'): ?>
<script type="text/javascript">
$('.frm-return a.reload').click(function(e) {
location.reload();
});
</script>
<?php endif; ?>

View File

@ -0,0 +1,55 @@
<div id="site-nav" class="r">
<div class="c -m12">
<p class="structure"><?= anchor('', $this->config->item('site_name')) ?> > <span class="current">Tavlor</span></p>
</div>
</div>
<div class="r">
<div id="gallery" class="c -m12">
<div class="r">
<?php foreach($paintings as $p): ?>
<div class="painting c -m3" id="<?= $p['id'] ?>">
<div class="container">
<?php if($p['has_image'] == 1): ?>
<div class="image"><?= img('img/paintings/' . $p['code'] . '_cube-200.jpg') ?></div>
<?php else: ?>
<div class="image"><?= img('img/paintings/no-image.png') ?></div>
<?php endif; ?>
<?php
$w = $p['canvas_width'];
$h = $p['canvas_height'];
$ratio = round($w / $h, 4);
$org_ratio = $ratio;
if($ratio > 1) {
$ratio = 1 / $ratio;
$p_hor = '0';
$p_ver = (0.5 - $ratio / 2) * 100 . '%';
} else {
$p_hor = (0.5 - $ratio / 2) * 100 . '%';
$p_ver = '0';
}
?>
<div class="info">
<div class="ratio">
<div class="ratio-container">
<div style="margin: <?= $p_ver ?> <?= $p_hor ?>;" class="ratio-box">&nbsp;</div>
</div>
</div>
<h3>Ingen titel</h3>
<p class="artist">Okänd konstnär</p>
<p class="price">SEK <?= number_format($p['price'], 2, ',','.') ?></p>
<p>Akvarell papper<br />
<strong>Mått (motiv):</strong> <?= $p['canvas_width'] ?>x<?= $p['canvas_height'] ?> cm<br />
<?php if($p['frame'] == 1): ?>
<strong>Mått (rulle):</strong> <?= $p['frame_width'] ?>x<?= $p['frame_height'] ?> cm<br /><?php endif; ?></p>
</div>
</div>
</div><!-- END .painting.c -->
<?php endforeach; ?>
</div><!-- END .r -->
</div><!-- END #gallery.c -->
</div><!-- END .r --->
<script type="text/javascript">
$('#gallery div.painting').click(function(e){
window.location = '<?= base_url('index.php/gallery') ?>/' + $(this).attr('id');
});
</script>

View File

@ -0,0 +1,137 @@
<?php
$w = $p['canvas_width'];
$h = $p['canvas_height'];
$ratio = $w / $h;
$class = 'square';
if($ratio > 1.2)
$class = 'wide';
elseif($ratio < 0.8)
$class = 'tall';
?>
<div id="site-nav" class="row">
<div class="large-12 columns">
<p class="structure"><?= anchor('', $this->config->item('site_name')) ?> > <?= anchor('gallery', 'Tavlor') ?> > <span class="current">#<?= $p['code'] ?> : Ingen titel</span></p>
</div>
</div>
<div id="gallery-view" class="row">
<div class="large-12 columns">
<div class="painting <?= $class ?>">
<?php if($p['has_image'] == 1): ?>
<div class="image"><?= img('img/paintings/' . $p['code'] . '_medium.jpg') ?></div>
<?php else: ?>
<div class="image"><?= img('img/paintings/no-image.png') ?></div>
<?php endif; ?>
<div class="info">
<h3>Ingen titel</h3>
<p class="artist">Okänd konstnär</p>
<div class="col col-left">
<div class="details">
<p class="material">Akvarell papper</p>
<p>
<span class="label">Nummer:</span> <span class="value"><?= $p['code'] ?></span><br />
<span class="label">Mått (motiv):</span> <span class="value"><?= $p['canvas_width'] ?> x <?= $p['canvas_height'] ?> cm</span><br />
<span class="label">Mått (rulle):</span> <span class="value"><?= $p['frame_width'] ?> x <?= $p['frame_height'] ?> cm</span>
</p>
</div>
</div><!-- END .col-left -->
<div class="col col-right">
<div class="price">
<span class="label">Pris:</span> <span class="value">SEK <?= number_format($p['price'], 2, ',','.') ?></span>
<span class="vat">inklusive moms</span>
</div>
<?php if($p['status'] == 0): ?>
<div class="buttons">
<a href="" class="button small secondary tipsa">Tipsa</a>
<a href="#order-modal" class="modal-open button small buy">Köp</a>
</div>
<?php elseif($p['status'] == 1): ?>
<div class="buttons">
Den här tavlan är reserverad.
</div>
<?php else: ?>
<div class="buttons">
Den här tavlan är såld.
</div>
<?php endif; ?>
</div><!-- END .col-right -->
<div class="description">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Praesent vulputate dapibus felis, vel ultrices quam bibendum sit
amet. Sed velit justo, pharetra in placerat et, laoreet quis augue.
Nam porttitor iaculis pulvinar. Vestibulum vel risus ligula, sit
amet imperdiet ipsum. Curabitur non nunc eu arcu hendrerit pretium
nec vitae mi. Morbi massa tortor, cursus vitae dapibus quis,
tristique non nisi. Phasellus ut mauris non risus tincidunt pretium
at nec dui. Proin id lorem quis lectus scelerisque tincidunt. Donec
cursus faucibus rhoncus. Nam mattis accumsan lobortis.
</p>
</div>
</div><!-- END .info -->
</div><!-- END .painting -->
</div><!-- END #gallery-view.columns -->
<div id="order-modal" class="modal <?= $class ?>">
<div class="row">
<div class="large-12 columns">
<h3>Beställ tavla #<?= $p['code'] ?></h3>
</div>
</div>
<div class="row">
<div class="large-7 columns">
<div class="frm">
<?= $this->forms_model->order($p['id']) ?>
</div><!-- END .frm -->
</div>
<div class="large-5 columns">
<div class="row">
<div class="large-12 columns">
<span class="label">Pris:<span>
<div class="panel">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="label">Tavla #<?= $p['code'] ?></td>
<td class="nbr"><?= number_format($p['price'],2,',','.') ?> kr</td>
</tr>
<tr>
<td class="freight">Frakt:</td>
<td class="nbr"><?= number_format(69,2,',','.') ?> kr</td>
</tr>
<tr class="post">
<td>Postförskott:</td>
<td class="nbr"><?= number_format(40,2,',','.') ?> kr</td>
</tr>
<tr class="pre total">
<td>Total:</td>
<td class="nbr"><?= number_format($p['price'] + 69,2,',','.') ?> kr</td>
</tr>
<tr class="post total">
<td>Total:</td>
<td class="nbr"><?= number_format($p['price'] + 40 + 69,2,',','.') ?> kr</td>
</tr>
<tr class="pre vat">
<td>Varav moms:</td>
<td class="nbr"><?= number_format(($p['price'] + 69) * 0.2,2,',','.') ?> kr</td>
</tr>
<tr class="post vat">
<td>Varav moms:</td>
<td class="nbr"><?= number_format(($p['price'] + 40 + 69) * 0.2,2,',','.') ?> kr</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div><!-- END #order-modal -->
</div>
<script type="text/javascript">
$('a.modal-open').click(function(event) {
event.preventDefault();
$(this).modal({
escapeClose: false,
clickClose: false,
showClose: true
});
});
</script>

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,9 @@
<!doctype html>
<html>
<head>
<title>Admin : <?= $title ?></title>
</head>
<body>
<?= $content ?>
</body>
</html>

View File

@ -0,0 +1,100 @@
<!doctype html>
<html lang="sv">
<head>
<title><?= $this->config->item('site_name') ?> : <?= $title ?></title>
<!-- Meta -->
<meta charset="utf-8" />
<!-- CSS -->
<?= $_css ?>
<!--[if lt IE 9]><?= link_tag('css/ie8.css') ?><![endif]-->
<!-- JavaScript -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js" type="text/javascript"></script>
<script src="<?= base_url('js/jquery.tinycarousel.js'); ?>"></script>
<script src="<?= base_url('js/jquery.modal.min.js'); ?>"></script>
<script src="<?= base_url('js/global.js'); ?>"></script>
<!-- IE Fix for HTML5 Tags -->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body class="table-frame">
<header class="top-bar table-row">
<div class="r">
<div class="c -m12">
<?= anchor('', '<h1>' . $this->config->item('site_name') . '</h1>') ?>
<nav>
<ul>
<?php foreach($nav_main as $n): ?>
<li><?= anchor($n['comp_name'], $n['name'], $n['comp_name'] == $current_page ? array('class' => '-c') : null) ?></li>
<?php endforeach; ?>
</ul>
</nav>
</div>
</div>
</header>
<div id="content-wrapper" class="table-row expand">
<div id="content-container">
<?= $content ?>
</div><!-- END #content-container -->
</div><!-- END #content-wrapper -->
<footer class="table-row">
<div class="top">
<div class="r">
<div class="c -m4">
<h3>Kontakta oss</h3>
<div class="frm">
<?= $this->forms_model->contact() ?>
</div>
</div>
<div class="c -m4">
<h3>Nyhetsbrev</h3>
<p>Om du är intresserad av att följa våra nyheter och uppdateringar här Eastern Galleries får du görna skriva upp dig för vårat nyhetsbrev!</p>
<div class="frm">
<?= $this->forms_model->newsletter() ?>
</div>
</div>
<div class="c -m4">
<h3>Om oss</h3>
<p>Eastside importerar framförallt akvarell tavlor från Yunnan
provinsen i södra Kina. Tavlorna är målade av mer eller mindre
kända kinesiska konstnärer, men håller alla väldigt hög kvalitet. De
flesta av tavlorna är "monterade" långa rullar som man kan hänga
upp väggen som de är. Dock bör de skäras ut och ramas in för att
visa sin bästa sida.</p>
<p>Det här är en ytterst temporär sida som kommer uppdateras i högt
tempo den närmaste tiden. Titta tillbaka regelbundet för fler
tavlor, snyggare sida och mer funktionalitet.</p>
</div>
</div><!-- END .row -->
</div><!-- END .top -->
<div class="bottom">
<div class="r">
<div class="c -m12">
<p class="left">Copyright 2013 Eastside Design & IT AB</p>
<p class="right">Site Credits | Privacy Policy | Terms of Use</p>
</div>
</div><!-- END .row -->
</div><!-- END .bottom -->
</footer>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-26565879-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>

View File

@ -0,0 +1,7 @@
<?php foreach($news as $item): ?>
<h2><?php echo $item['title'] ?></h2>
<div class="article">
<?php echo $item['text'] ?>
</div>
<p><a href="news/<?php echo $item['slug'] ?>">View article</a></p>
<?php endforeach ?>

View File

@ -0,0 +1 @@
<h2>About</h2>

View File

@ -0,0 +1,28 @@
<div id="site-nav" class="r">
<div class="c -m12">
<p class="structure"><?= anchor('', $this->config->item('site_name')) ?> > <span class="current">Kontakt</span></p>
</div>
</div>
<div class="r">
<div class="c -m12">
<h1>Kontakt</h1>
<p>Den här sidan är under konstruktion, och kommer uppdateras mycket snart.</p>
<p>Eastside Galleries<br />
Trastvägen 8<br />
227 31 Lund</p>
<p>Tel: 0708922122</p>
<p>info@eastside.se</p>
</div>
</div>
<div class="r">
<div class="c -m12">
<form>
<select>
<option>One</option>
<option>One</option>
<option>One</option>
<option>One</option>
</select>
</form>
</div>
</div>

View File

@ -0,0 +1,11 @@
<div id="site-nav" class="r">
<div class="c -m12">
<p class="structure"><?= anchor('', $this->config->item('site_name')) ?> > <span class="current">Inramning</span></p>
</div>
</div>
<div class="r">
<div class="c -m12">
<h1>Inramning</h1>
<p>Den här sidan är under konstruktion och kommer uppdateras mycket snart.</p>
</div>
</div>

View File

@ -0,0 +1,113 @@
<header id="homepage">
<div class="r">
<div class="c -m12">
<p class="lead">Välkommen till Eastside! Den här sidan är under konstruktion och uppdateras ofta.</p>
</div>
</div>
</header>
<section class="r" id="info">
<div class="about c -m4">
<h3>Om oss</h3>
<p>Eastside importerar framförallt akvarell tavlor från Yunnan
provinsen i södra Kina. Tavlorna är målade av mer eller mindre
kända kinesiska konstnärer, men håller alla väldigt hög kvalitet. De
flesta av tavlorna är "monterade" långa rullar som man kan hänga
upp väggen som de är. Dock bör de skäras ut och ramas in för att
visa sin bästa sida.</p>
<p>Det här är en ytterst temporär sida som kommer uppdateras i högt
tempo den närmaste tiden. Titta tillbaka regelbundet för fler
tavlor, snyggare sida och mer funktionalitet.</p>
</div>
<div class="paintings c -m4">
<h3>Tavlorna</h3>
<p>I nuläget säljs enbart akvarell tavlor från Yunnan provinsen i södra Kina.
Tavlorna visar tecken väldigt hög, med bland annat hårtunna penseldrag och djupa landskap.
Tavlorna är målade av okända konstnärer, men vid behov
går antagligen respektive målare att sökas upp.</p>
<p>Tavlorna är monterade tygrullar men bör skäras
ut och ramas in. Vi kan utföra
inramningen, men detta ökar fraktkostnaden markant. Om kunden inte själv kan hämta
tavlan plats rekommenderas denne att söka upp en lokal inramare.</p>
</div>
<div class="order c -m4">
<h3>Beställning</h3>
<p>Beställningssystemet är väldigt enkelt den här sidan, men kommer uppdateras inom kort.
När ni hittat en tavla ni tycker om, klickar ni er in tavlans sida. Där finns
ett formulär under länken "Köp" som ni sedan fyller i.
Väljer ni postförskott skickas tavlan direkt, och tavlan markeras som såld. Väljer ni försökotts betalning
mailas ett inbetalningskort till er, och tavlan reserveras åt er. Betalar ni inom sju dagar skickas tavlan,
annars avbeställs den.</p>
</div>
</section>
<div id="paintings-display" class="r">
<div class="c -m12">
<div id="paintings-slider">
<a href="#" class="slider-button prev">&lt;</a>
<div class="viewport">
<ul class="overview">
<?php foreach($paintings as $p): ?>
<li>
<a id="<?= $p['id'] ?>" href="<?= base_url('index.php/gallery/' . $p['id']) ?>"><?= img(array( 'src' => 'img/paintings/'. $p['code'] .'_cube-200.jpg', 'class' => 'thumb',)) ?></a>
</li>
<?php endforeach; ?>
</ul>
</div><!-- END .viewport -->
<a href="#" class="slider-button next">&gt;</a>
</div><!-- END #paintings-slider -->
<div class="infoboxes">
<?php foreach($paintings as $p):
$w = $p['canvas_width'];
$h = $p['canvas_height'];
$ratio = $w / $h;
$class = 'medium';
if($ratio > 1.2)
$class = 'wide';
elseif($ratio < 0.8)
$class = 'tall';
else
$class = 'square';
?>
<div id="info-<?= $p['id'] ?>" class="infobox <?= $class ?>">
<div class="image"><?= img(array(
'src' => 'img/paintings/'. $p['code'] .'_medium.jpg',
)) ?></div>
<div class="info">
<div class="painting">
<h3>Ingen titel</h3>
<p class="artist">Okänd konstnär</p>
</div>
<div class="description">
<p>
Akvarell papper<br />
<strong>Dimension (motiv):</strong> <?= $p['canvas_width'] ?>x<?= $p['canvas_height'] ?><br />
<?php if($p['frame'] == 1): ?>
<strong>Dimension (rulle):</strong> <?= $p['frame_width'] ?>x<?= $p['frame_height'] ?><br />
<?php endif; ?>
</p>
</div>
<div class="price">
<span class="value">SEK <?= number_format($p['price'], 2, ',','.') ?></span> <span class="vat">inklusive moms</span>
</div>
</div>
<div class="clearBoth"></div>
</div>
<?php endforeach; ?>
</div><!-- END .infoboxes -->
</div>
</div><!-- END #paintings-display -->
<div id="news" class="r">
<?php foreach($news as $n): ?>
<?php $date = strtotime($n['date_created']); ?>
<div class="c -m4">
<div class="item">
<div class="date">
<span class="day"><?= date('j', $date) ?></span>
<span class="month"><?= date('M', $date) ?></span>
</div>
<h4><?= $n['title'] ?></h4>
<p><?= $n['slug'] ?></p>
<!--<p class="link"><a>Läs mer</a></p>-->
</div>
</div>
<?php endforeach; ?>
</div>

View File

@ -0,0 +1,113 @@
<header id="homepage">
<div class="row">
<div class="medium-12 columns">
<p class="lead">Välkommen till Eastside! Den här sidan är under konstruktion och uppdateras ofta.</p>
</div>
</div>
</header>
<section class="row" id="info">
<div class="medium-4 columns about">
<h3>Om oss</h3>
<p>Eastside importerar framförallt akvarell tavlor från Yunnan
provinsen i södra Kina. Tavlorna är målade av mer eller mindre
kända kinesiska konstnärer, men håller alla väldigt hög kvalitet. De
flesta av tavlorna är "monterade" långa rullar som man kan hänga
upp väggen som de är. Dock bör de skäras ut och ramas in för att
visa sin bästa sida.</p>
<p>Det här är en ytterst temporär sida som kommer uppdateras i högt
tempo den närmaste tiden. Titta tillbaka regelbundet för fler
tavlor, snyggare sida och mer funktionalitet.</p>
</div>
<div class="medium-4 columns paintings">
<h3>Tavlorna</h3>
<p>I nuläget säljs enbart akvarell tavlor från Yunnan provinsen i södra Kina.
Tavlorna visar tecken väldigt hög, med bland annat hårtunna penseldrag och djupa landskap.
Tavlorna är målade av okända konstnärer, men vid behov
går antagligen respektive målare att sökas upp.</p>
<p>Tavlorna är monterade tygrullar men bör skäras
ut och ramas in. Vi kan utföra
inramningen, men detta ökar fraktkostnaden markant. Om kunden inte själv kan hämta
tavlan plats rekommenderas denne att söka upp en lokal inramare.</p>
</div>
<div class="medium-4 columns order">
<h3>Beställning</h3>
<p>Beställningssystemet är väldigt enkelt den här sidan, men kommer uppdateras inom kort.
När ni hittat en tavla ni tycker om, klickar ni er in tavlans sida. Där finns
ett formulär under länken "Köp" som ni sedan fyller i.
Väljer ni postförskott skickas tavlan direkt, och tavlan markeras som såld. Väljer ni försökotts betalning
mailas ett inbetalningskort till er, och tavlan reserveras åt er. Betalar ni inom sju dagar skickas tavlan,
annars avbeställs den.</p>
</div>
</section>
<div id="paintings-display" class="row">
<div class="medium-12 columns">
<div class="slider">
<a href="#" class="slider-button prev">&lt;</a>
<div class="viewport">
<ul class="overview">
<?php foreach($paintings as $p): ?>
<li>
<a id="<?= $p['id'] ?>" href="<?= base_url('index.php/gallery/' . $p['id']) ?>"><?= img(array( 'src' => 'img/paintings/'. $p['code'] .'_cube-200.jpg', 'class' => 'thumb',)) ?></a>
</li>
<?php endforeach; ?>
</ul>
</div><!-- END .viewport -->
<a href="#" class="slider-button next">&gt;</a>
</div><!-- END .slider -->
<div class="infoboxes">
<?php foreach($paintings as $p):
$w = $p['canvas_width'];
$h = $p['canvas_height'];
$ratio = $w / $h;
$class = 'medium';
if($ratio > 1.2)
$class = 'wide';
elseif($ratio < 0.8)
$class = 'tall';
else
$class = 'square';
?>
<div id="info-<?= $p['id'] ?>" class="infobox <?= $class ?>">
<div class="image"><?= img(array(
'src' => 'img/paintings/'. $p['code'] .'_medium.jpg',
)) ?></div>
<div class="info">
<div class="painting">
<h3>Ingen titel</h3>
<p class="artist">Okänd konstnär</p>
</div>
<div class="description">
<p>
Akvarell papper<br />
<strong>Dimension (motiv):</strong> <?= $p['canvas_width'] ?>x<?= $p['canvas_height'] ?><br />
<?php if($p['frame'] == 1): ?>
<strong>Dimension (rulle):</strong> <?= $p['frame_width'] ?>x<?= $p['frame_height'] ?><br />
<?php endif; ?>
</p>
</div>
<div class="price">
<span class="value">SEK <?= number_format($p['price'], 2, ',','.') ?></span> <span class="vat">inklusive moms</span>
</div>
</div>
<div class="clearBoth"></div>
</div>
<?php endforeach; ?>
</div><!-- END .infoboxes -->
</div>
</div><!-- END #paintings-display -->
<div id="news" class="row">
<?php foreach($news as $n): ?>
<?php $date = strtotime($n['date_created']); ?>
<div class="medium-4 columns">
<div class="item">
<div class="date">
<span class="day"><?= date('j', $date) ?></span>
<span class="month"><?= date('M', $date) ?></span>
</div>
<h4><?= $n['title'] ?></h4>
<p><?= $n['slug'] ?></p>
<!--<p class="link"><a>Läs mer</a></p>-->
</div>
</div>
<?php endforeach; ?>
</div>

119
application/views/start.php Normal file
View File

@ -0,0 +1,119 @@
<header id="homepage">
<div class="row">
<div class="large-12 columns">
<p class="lead">Välkommen till Eastside! Den här sidan är under konstruktion och uppdateras ofta.</p>
</div>
</div>
</header>
<section class="row" id="info">
<div class="large-4 columns about">
<h3>Om oss</h3>
<p>Eastside importerar framförallt akvarell tavlor från Yunnan
provinsen i södra Kina. Tavlorna är målade av mer eller mindre
kända kinesiska konstnärer, men håller alla väldigt hög kvalitet. De
flesta av tavlorna är "monterade" långa rullar som man kan hänga
upp väggen som de är. Dock bör de skäras ut och ramas in för att
visa sin bästa sida.</p>
<p>Det här är en ytterst temporär sida som kommer uppdateras i högt
tempo den närmaste tiden. Titta tillbaka regelbundet för fler
tavlor, snyggare sida och mer funktionalitet.</p>
</div>
<div class="large-4 columns paintings">
<h3>Tavlorna</h3>
<p>I nuläget säljs enbart akvarell tavlor från Yunnan provinsen i södra Kina.
Tavlorna visar tecken väldigt hög, med bland annat hårtunna penseldrag och djupa landskap.
Tavlorna är målade av okända konstnärer, men vid behov
går antagligen respektive målare att sökas upp.</p>
<p>Tavlorna är monterade tygrullar men bör skäras
ut och ramas in. Vi kan utföra
inramningen, men detta ökar fraktkostnaden markant. Om kunden inte själv kan hämta
tavlan plats rekommenderas denne att söka upp en lokal inramare.</p>
</div>
<div class="large-4 columns order">
<h3>Beställning</h3>
<p>Beställningssystemet är väldigt enkelt den här sidan, men kommer uppdateras inom kort.
När ni hittat en tavla ni tycker om, klickar ni er in tavlans sida. Där finns
ett formulär under länken "Köp" som ni sedan fyller i.
Väljer ni postförskott skickas tavlan direkt, och tavlan markeras som såld. Väljer ni försökotts betalning
mailas ett inbetalningskort till er, och tavlan reserveras åt er. Betalar ni inom sju dagar skickas tavlan,
annars avbeställs den.</p>
</div>
</section>
asdlfkjasföw
<div id="paintings-display" class="row">
<div class="large-12 columns">
<div class="slider">
<a class="slider-button prev" href="#">&lt;</a>
<div class="viewport">
<ul class="overview">
<?php foreach($paintings as $p): ?>
<li>
<a id="<?= $p['id'] ?>" href="<?= base_url('index.php/gallery/' . $p['id']) ?>"><?= img(array( 'src' => 'img/paintings/'. $p['code'] .'_cube-200.jpg', 'class' => 'thumb',)) ?></a>
</li>
<?php endforeach; ?>
</ul>
</div><!-- END .viewport -->
<a class="slider-button next" href="#">&gt;</a>
</div><!-- END #paintings-slider -->
<div class="infoboxes">
<?php foreach($paintings as $p):
$w = $p['canvas_width'];
$h = $p['canvas_height'];
$ratio = $w / $h;
$class = 'medium';
if($ratio > 1.2)
$class = 'wide';
elseif($ratio < 0.8)
$class = 'tall';
else
$class = 'square';
?>
<div id="info-<?= $p['id'] ?>" class="infobox <?= $class ?>">
<div class="image"><?= img(array(
'src' => 'img/paintings/'. $p['code'] .'_medium.jpg',
)) ?></div>
<div class="info">
<div class="painting">
<h3>Ingen titel</h3>
<p class="artist">Okänd konstnär</p>
</div>
<div class="description">
<p>
Akvarell papper<br />
<strong>Dimension (motiv):</strong> <?= $p['canvas_width'] ?>x<?= $p['canvas_height'] ?><br />
<?php if($p['frame'] == 1): ?>
<strong>Dimension (rulle):</strong> <?= $p['frame_width'] ?>x<?= $p['frame_height'] ?><br />
<?php endif; ?>
</p>
</div>
<div class="price">
<span class="value">SEK <?= number_format($p['price'], 2, ',','.') ?></span> <span class="vat">inklusive moms</span>
</div>
</div>
<div class="clearBoth"></div>
</div>
<?php endforeach; ?>
</div><!-- END .infoboxes -->
</div>
</div><!-- END #paintings-display -->
<div id="news" class="row">
<?php foreach($news as $n): ?>
<?php $date = strtotime($n['date_created']); ?>
<div class="large-4 columns">
<div class="item">
<div class="date">
<span class="day"><?= date('j', $date) ?></span>
<span class="month"><?= date('M', $date) ?></span>
</div>
<h4><?= $n['title'] ?></h4>
<p><?= $n['slug'] ?></p>
<!--<p class="link"><a>Läs mer</a></p>-->
</div>
</div>
<?php endforeach; ?>
</div>
<script type="text/javascript">
$(document).ready(function(e){
alert('read');
});
</script>

View File

@ -0,0 +1,62 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Template</title>
<?= $_scripts ?>
<?= $_styles ?>
<style type="text/css">
body {
background-color: #fff;
margin: 40px;
font-family: Lucida Grande, Verdana, Sans-serif;
font-size: 12px;
color: #000;
}
#content {
border: #999 1px solid;
background-color: #fff;
padding: 20px 20px 12px 20px;
}
h1 {
font-weight: normal;
font-size: 14px;
color: #990000;
margin: 0 0 4px 0;
}
a {
color: #069;
text-decoration: underline;
}
a:hover {
color: #900;
}
p {
line-height: 1.55;
}
</style>
</head>
<body>
<div id="content">
<h1>Template Library</h1>
<p>The Template library, written for the <a href="http://www.codeigniter.com">CodeIgniter PHP
framework</a>, is a wrapper for CI's View
implementation. Template is a reaction to the numerous questions from the CI community
regarding how one would display multiple views for one controller, and how to embed "views
within views" in a standardized fashion.</p>
<p>In addition, Template provides extra Views loading
capabilities and shortcuts for including CSS, JavaScript, and other common elements in your
final rendered HTML.</p>
<p><a href="http://www.williamsconcepts.com/ci/libraries/template/index.html">Read Template
Library Documentation Online</a></p>
<?php print $content ?>
</div>
</body>
</html>

View File

@ -0,0 +1,7 @@
<html>
<head><title><?= $title ?></title></head>
<body>
<h1>Now we are testing</h1>
<p>What is this</p>
</body>
</html>

View File

@ -0,0 +1,88 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome to CodeIgniter</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;
}
#body{
margin: 0 15px 0 15px;
}
p.footer{
text-align: right;
font-size: 11px;
border-top: 1px solid #D0D0D0;
line-height: 32px;
padding: 0 10px 0 10px;
margin: 20px 0 0 0;
}
#container{
margin: 10px;
border: 1px solid #D0D0D0;
-webkit-box-shadow: 0 0 8px #D0D0D0;
}
</style>
</head>
<body>
<div id="container">
<h1>Welcome to CodeIgniter!</h1>
<div id="body">
<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>
<p>If you would like to edit this page you'll find it located at:</p>
<code>application/views/welcome_message.php</code>
<p>The corresponding controller for this page is found at:</p>
<code>application/controllers/welcome.php</code>
<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
</div>
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p>
</div>
</body>
</html>

20
bower.json Normal file
View File

@ -0,0 +1,20 @@
{
"name": "eastside",
"version": "0.0.0",
"authors": [
"Linus Miller <linus.miller@eastside.se>"
],
"description": "The Eastside Galleries website",
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"modernizr": "~2.6.2",
"respond": "~1.3.0"
}
}

25
config.rb Normal file
View File

@ -0,0 +1,25 @@
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "src/sass"
images_dir = "img"
javascripts_dir = "src/js"
# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed
output_style = :compressed
# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true
# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = false
# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass

208
index.php Normal file
View File

@ -0,0 +1,208 @@
<?php
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging and error reporting.
*
* This can be set to anything, but default usage is:
*
* development
* testing
* production
*
* NOTE: If you change these, also change the error_reporting() code below
*
*/
define('ENVIRONMENT', 'development');
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*
* Different environments will require different levels of error reporting.
* By default development will show errors but testing and live will hide them.
*/
if (defined('ENVIRONMENT'))
{
switch (ENVIRONMENT)
{
case 'development':
error_reporting(E_ALL);
break;
case 'testing':
case 'production':
error_reporting(0);
break;
default:
exit('The application environment is not set correctly.');
}
}
if( ! ini_get('date.timezone') )
{
date_default_timezone_set('Europe/Copenhagen');
}
/*
*---------------------------------------------------------------
* SYSTEM FOLDER NAME
*---------------------------------------------------------------
*
* This variable must contain the name of your "system" folder.
* Include the path if the folder is not in the same directory
* as this file.
*
*/
$system_path = 'system';
/*
*---------------------------------------------------------------
* APPLICATION FOLDER NAME
*---------------------------------------------------------------
*
* If you want this front controller to use a different "application"
* folder then the default one you can set its name here. The folder
* can also be renamed or relocated anywhere on your server. If
* you do, use a full server path. For more info please see the user guide:
* http://codeigniter.com/user_guide/general/managing_apps.html
*
* NO TRAILING SLASH!
*
*/
$application_folder = 'application';
/*
* --------------------------------------------------------------------
* DEFAULT CONTROLLER
* --------------------------------------------------------------------
*
* Normally you will set your default controller in the routes.php file.
* You can, however, force a custom routing by hard-coding a
* specific controller class/function here. For most applications, you
* WILL NOT set your routing here, but it's an option for those
* special instances where you might want to override the standard
* routing in a specific front controller that shares a common CI installation.
*
* IMPORTANT: If you set the routing here, NO OTHER controller will be
* callable. In essence, this preference limits your application to ONE
* specific controller. Leave the function name blank if you need
* to call functions dynamically via the URI.
*
* Un-comment the $routing array below to use this feature
*
*/
// The directory name, relative to the "controllers" folder. Leave blank
// if your controller is not in a sub-folder within the "controllers" folder
// $routing['directory'] = '';
// The controller class file name. Example: Mycontroller
// $routing['controller'] = '';
// The controller function you wish to be called.
// $routing['function'] = '';
/*
* -------------------------------------------------------------------
* CUSTOM CONFIG VALUES
* -------------------------------------------------------------------
*
* The $assign_to_config array below will be passed dynamically to the
* config class when initialized. This allows you to set custom config
* items or override any default config values found in the config.php file.
* This can be handy as it permits you to share one application between
* multiple front controller files, with each file containing different
* config values.
*
* Un-comment the $assign_to_config array below to use this feature
*
*/
// $assign_to_config['name_of_config_item'] = 'value of config item';
// --------------------------------------------------------------------
// END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT BELOW THIS LINE
// --------------------------------------------------------------------
/*
* ---------------------------------------------------------------
* Resolve the system path for increased reliability
* ---------------------------------------------------------------
*/
// Set the current directory correctly for CLI requests
if (defined('STDIN'))
{
chdir(dirname(__FILE__));
}
if (realpath($system_path) !== FALSE)
{
$system_path = realpath($system_path).'/';
}
// ensure there's a trailing slash
$system_path = rtrim($system_path, '/').'/';
// Is the system path correct?
if ( ! is_dir($system_path))
{
exit("Your system folder path does not appear to be set correctly. Please open the following file and correct this: ".pathinfo(__FILE__, PATHINFO_BASENAME));
}
/*
* -------------------------------------------------------------------
* Now that we know the path, set the main path constants
* -------------------------------------------------------------------
*/
// The name of THIS file
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
// The PHP file extension
// this global constant is deprecated.
define('EXT', '.php');
// Path to the system folder
define('BASEPATH', str_replace("\\", "/", $system_path));
// Path to the front controller (this file)
define('FCPATH', str_replace(SELF, '', __FILE__));
// Name of the "system folder"
define('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));
// The path to the "application" folder
if (is_dir($application_folder))
{
define('APPPATH', $application_folder.'/');
}
else
{
if ( ! is_dir(BASEPATH.$application_folder.'/'))
{
exit("Your application folder path does not appear to be set correctly. Please open the following file and correct this: ".SELF);
}
define('APPPATH', BASEPATH.$application_folder.'/');
}
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*
*/
require_once BASEPATH.'core/CodeIgniter.php';
/* End of file index.php */
/* Location: ./index.php */

51
license.txt Normal file
View File

@ -0,0 +1,51 @@
Copyright (c) 2008 - 2011, EllisLab, Inc.
All rights reserved.
This license is a legal agreement between you and EllisLab Inc. for the use
of CodeIgniter Software (the "Software"). By obtaining the Software you
agree to comply with the terms and conditions of this license.
PERMITTED USE
You are permitted to use, copy, modify, and distribute the Software and its
documentation, with or without modification, for any purpose, provided that
the following conditions are met:
1. A copy of this license agreement must be included with the distribution.
2. Redistributions of source code must retain the above copyright notice in
all source code files.
3. Redistributions in binary form must reproduce the above copyright notice
in the documentation and/or other materials provided with the distribution.
4. Any files that have been modified must carry notices stating the nature
of the change and the names of those who changed them.
5. Products derived from the Software must include an acknowledgment that
they are derived from CodeIgniter in their documentation and/or other
materials provided with the distribution.
6. Products derived from the Software may not be called "CodeIgniter",
nor may "CodeIgniter" appear in their name, without prior written
permission from EllisLab, Inc.
INDEMNITY
You agree to indemnify and hold harmless the authors of the Software and
any contributors for any direct, indirect, incidental, or consequential
third-party claims, actions or suits, as well as any related expenses,
liabilities, damages, settlements or fees arising from your use or misuse
of the Software, or a violation of any terms of this license.
DISCLAIMER OF WARRANTY
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF QUALITY, PERFORMANCE,
NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
LIMITATIONS OF LIABILITY
YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE LIABLE
FOR CLAIMS, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION
WITH THE SOFTWARE. LICENSE HOLDERS ARE SOLELY RESPONSIBLE FOR DETERMINING THE
APPROPRIATENESS OF USE AND ASSUME ALL RISKS ASSOCIATED WITH ITS USE, INCLUDING
BUT NOT LIMITED TO THE RISKS OF PROGRAM ERRORS, DAMAGE TO EQUIPMENT, LOSS OF
DATA OR SOFTWARE PROGRAMS, OR UNAVAILABILITY OR INTERRUPTION OF OPERATIONS.

17
package.json Normal file
View File

@ -0,0 +1,17 @@
{
"title": "Eastside Galleries",
"name": "eastside",
"version": "0.1.0",
"description": "The Whitemill Website",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-uglify": "~0.2.4",
"grunt-smushit": "~1.1.2",
"grunt-svgmin": "~0.2.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-compass": "~0.6.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-svg2png": "~0.2.1"
}
}

View File

@ -0,0 +1,258 @@
-- phpMyAdmin SQL Dump
-- version 3.5.8.1
-- http://www.phpmyadmin.net
--
-- Host: 10.246.16.72:3306
-- Generation Time: Dec 07, 2013 at 03:14 PM
-- Server version: 5.1.72-2
-- PHP Version: 5.3.3-7+squeeze15
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
DELIMITER $$
--
-- Procedures
--
CREATE PROCEDURE `general_reference`()
NO SQL
BEGIN
DECLARE reference INT;
SELECT value FROM next_reference INTO reference;
UPDATE next_reference SET value = reference + 1;
SELECT reference;
END$$
CREATE PROCEDURE `newsletter_add_email`(IN `inEmail` VARCHAR(255))
NO SQL
BEGIN
INSERT INTO newsletter (email, date_created) VALUES(inEmail, NOW());
END$$
CREATE PROCEDURE `news_get_all`()
NO SQL
BEGIN
SELECT * FROM news ORDER BY date_created DESC;
END$$
CREATE PROCEDURE `paintings_get_active_all`()
NO SQL
BEGIN
SELECT * FROM paintings WHERE is_active = 1;
END$$
CREATE PROCEDURE `paintings_get_active_limit`(IN `inLimit` INT(3))
NO SQL
BEGIN
PREPARE statement FROM
"SELECT * FROM paintings ORDER BY date_created DESC LIMIT 0,?";
SET @p1 = inLimit;
EXECUTE statement USING @p1;
END$$
CREATE PROCEDURE `paintings_get_by_id`(IN `inPaintingId` INT(8))
NO SQL
BEGIN
SELECT * FROM paintings WHERE id = inPaintingId;
END$$
CREATE PROCEDURE `paintings_get_on_display_limit`(IN `inLimit` INT(3))
NO SQL
BEGIN
PREPARE statement FROM
"SELECT * FROM paintings WHERE on_display = 1 LIMIT 0, ?";
SET @p1 = inLimit;
EXECUTE statement USING @p1;
END$$
CREATE PROCEDURE `paintings_set_status`(IN `inId` INT(11), IN `inStatus` TINYINT(1))
NO SQL
BEGIN
UPDATE paintings SET status = inStatus WHERE id = inId;
END$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `error_message`
--
CREATE TABLE IF NOT EXISTS `error_message` (
`error_message` varchar(255) NOT NULL,
PRIMARY KEY (`error_message`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `error_message`
--
INSERT INTO `error_message` (`error_message`) VALUES
('Foreign key constraint violated.'),
('Foreign key constraint violated: no user with that user_id.'),
('Rows with foreign key constraint still exist.');
-- --------------------------------------------------------
--
-- Table structure for table `news`
--
CREATE TABLE IF NOT EXISTS `news` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(128) NOT NULL,
`slug` varchar(255) NOT NULL,
`text` text NOT NULL,
`date_created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`date_modified` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `slug` (`slug`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `news`
--
INSERT INTO `news` (`id`, `title`, `slug`, `text`, `date_created`, `date_modified`) VALUES
(1, 'Eastside.se v1.0 lanseras!', 'Äntligen är den första seriösa versionen av den här sidan klar. Om någon funktion inte funkar, titta tillbaka om några dagar så ska det gå bättre!', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras non libero nisi. Pellentesque nisl ante, egestas ultricies dignissim nec, ullamcorper et metus. Nulla mi velit, sodales porta vehicula at, posuere iaculis nulla. Sed id lacus quis mi volutpat mattis. Suspendisse potenti. Phasellus at nunc luctus erat hendrerit iaculis. Maecenas ac vehicula massa. Cras sit amet dolor ante, ut commodo nunc. Proin bibendum orci a justo suscipit elementum. Integer non ultrices odio. Sed tempor metus vitae odio viverra in sollicitudin ante lobortis. Sed tincidunt, metus sit amet dapibus commodo, nisl justo dignissim justo, eu facilisis quam elit ut urna. Vivamus vestibulum feugiat nisi, sit amet imperdiet dui sagittis at. Suspendisse urna diam, fringilla fermentum mattis vel, vulputate quis nibh. Integer vestibulum lectus tempus metus tempor eu viverra elit vehicula.\n\nFusce et libero quis felis gravida ultrices eu ut dui. Quisque elementum, enim at bibendum aliquet, lacus orci placerat ligula, at porta leo dolor eget dolor. Etiam augue ligula, consequat ac aliquet sed, hendrerit in dolor. Vestibulum venenatis varius leo, eget iaculis dui scelerisque in. Etiam lorem turpis, hendrerit at pellentesque eu, laoreet quis arcu. Mauris odio lorem, sodales eget porta eu, porta a eros. Donec congue aliquam neque. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.', '2013-04-22 07:04:11', '2013-05-11 15:59:33'),
(2, 'Mindre uppdateringar', 'Lite mindre uppdateringar har gjorts. Numera skall alla formulärer fungera korrekt.', 'Nunc tortor arcu, tincidunt vitae gravida et, viverra eget nunc. Nullam faucibus volutpat elit, ornare blandit orci tempor a. Fusce hendrerit molestie ante. Proin dignissim laoreet libero, vitae convallis enim pulvinar non. Sed tempus nisl non enim pretium mattis. Morbi vel dui non nisl auctor rutrum. Praesent quis lorem justo. Vivamus consequat pharetra lacus, at imperdiet sapien dictum id. Maecenas et ipsum nec justo adipiscing fermentum et at ligula. Curabitur vulputate ante ac leo lacinia venenatis. Morbi tempor porttitor gravida. Sed id turpis vitae dolor pretium elementum. Maecenas ac libero non neque elementum blandit congue ac nulla. Nulla imperdiet ligula nec arcu fringilla eu dictum dolor cursus.\n\nDuis iaculis ultricies porta. Quisque laoreet facilisis lobortis. Morbi sed vehicula leo. Nam nec diam mi. Donec varius dapibus facilisis. Nunc libero libero, euismod scelerisque viverra nec, pulvinar feugiat dolor. Nunc posuere malesuada mauris, vel ultricies nisl porttitor eget. Curabitur imperdiet lectus sit amet ante accumsan facilisis et et mauris. Suspendisse potenti. In hac habitasse platea dictumst. Quisque id metus eget purus placerat hendrerit. Praesent laoreet magna ligula. Proin porttitor, metus pellentesque accumsan iaculis, turpis justo gravida purus, eu varius purus ipsum id mi. Ut sit amet quam non dolor venenatis pulvinar.', '2013-04-29 20:46:59', '2013-05-11 15:49:24'),
(3, 'Bilder i galleriet', 'Eftersom det ännu inte finns någon smidig funktion att klippa och ladda upp bilder har det tagit lite väl lång tid. Numera finns det dock bilder på de flesta tavlorna i galleriet.', 'Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Pellentesque suscipit diam quis risus commodo vel sollicitudin felis dignissim. Fusce tristique, mi et pulvinar bibendum, ante risus eleifend lorem, quis adipiscing ligula justo nec lorem. Donec venenatis tellus at lacus vestibulum molestie. Nulla posuere ultricies nulla et egestas. Aliquam erat volutpat. Proin ut lorem dolor, blandit placerat lacus. Aliquam erat volutpat. Suspendisse potenti. Aliquam rhoncus sodales velit, sed adipiscing ligula varius et. Nunc hendrerit pharetra tellus imperdiet volutpat.\r\n\r\nSed sed cursus metus. Sed ultricies quam at justo mattis accumsan. Etiam justo purus, pulvinar a ultrices ut, iaculis vitae augue. Maecenas sed erat erat, ut pretium massa. Suspendisse augue arcu, mollis aliquet bibendum sed, suscipit ut magna. Maecenas aliquam euismod rutrum. Ut ac ipsum elit, euismod tempus velit. Suspendisse quis dolor quis lorem fringilla aliquet quis feugiat lacus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.', '2013-05-10 09:31:29', '2013-05-11 16:00:28');
-- --------------------------------------------------------
--
-- Table structure for table `newsletter`
--
CREATE TABLE IF NOT EXISTS `newsletter` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) NOT NULL,
`status` int(11) NOT NULL DEFAULT '1',
`date_created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`date_modified` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=19 ;
-- --------------------------------------------------------
--
-- Table structure for table `next_reference`
--
CREATE TABLE IF NOT EXISTS `next_reference` (
`value` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`value`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `next_reference`
--
INSERT INTO `next_reference` (`value`) VALUES
(31450002);
-- --------------------------------------------------------
--
-- Table structure for table `paintings`
--
CREATE TABLE IF NOT EXISTS `paintings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` int(11) DEFAULT NULL,
`title` varchar(64) DEFAULT NULL,
`artist` varchar(255) NOT NULL DEFAULT 'Okänd konstnär',
`price` double NOT NULL,
`description` varchar(255) DEFAULT NULL,
`date_created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`date_modified` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`canvas_width` double NOT NULL,
`canvas_height` double NOT NULL,
`frame` tinyint(1) NOT NULL DEFAULT '1',
`frame_width` double DEFAULT NULL,
`frame_height` double DEFAULT NULL,
`has_image` tinyint(1) NOT NULL DEFAULT '0',
`is_active` tinyint(1) NOT NULL DEFAULT '0',
`on_display` tinyint(1) NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=60 ;
--
-- Dumping data for table `paintings`
--
INSERT INTO `paintings` (`id`, `code`, `title`, `artist`, `price`, `description`, `date_created`, `date_modified`, `canvas_width`, `canvas_height`, `frame`, `frame_width`, `frame_height`, `has_image`, `is_active`, `on_display`, `status`) VALUES
(1, 1001, 'Ingen titel', 'Okänd konstnär', 2500, NULL, '2013-03-31 21:17:23', '2013-06-01 12:49:14', 57.5, 121, 1, 68, 176, 1, 1, 1, 0),
(2, 1002, 'Ingen titel', 'Okänd konstnär', 2900, NULL, '2013-03-31 21:17:23', '2013-06-01 12:49:21', 129, 64.5, 1, 167, 73.5, 1, 1, 1, 0),
(3, 1003, 'Ingen titel', 'Okänd konstnär', 2900, NULL, '2013-03-31 21:17:23', '2013-06-02 10:19:46', 64, 128, 1, 73.5, 173, 1, 1, 0, 0),
(4, 1004, 'Ingen titel', 'Okänd konstnär', 2700, NULL, '2013-03-31 21:17:23', '2013-06-01 12:49:31', 59, 128, 1, 68.5, 172, 1, 1, 0, 0),
(5, 1005, 'Ingen titel', 'Okänd konstnär', 2700, NULL, '2013-03-31 21:17:23', '2013-06-01 12:49:36', 60, 127.5, 1, 69.5, 173, 1, 1, 0, 0),
(6, 1006, 'Ingen titel', 'Okänd konstnär', 2900, NULL, '2013-03-31 21:17:23', '2013-06-01 12:59:44', 130, 63, 1, 165, 73, 1, 1, 0, 0),
(7, 1007, 'Ingen titel', 'Okänd konstnär', 1100, NULL, '2013-04-23 12:32:31', '2013-06-01 12:49:51', 30.5, 94.5, 2, NULL, NULL, 1, 1, 0, 0),
(8, 1008, 'Ingen titel', 'Okänd konstnär', 1100, NULL, '2013-04-23 12:32:31', '2013-06-01 12:49:55', 30.5, 94.5, 1, 40, 150, 1, 1, 1, 0),
(9, 1009, 'Ingen titel', 'Okänd konstnär', 1100, NULL, '2013-04-23 12:32:31', '2013-06-01 12:49:59', 30.5, 94.5, 1, 40, 150, 1, 1, 1, 0),
(10, 1010, 'Ingen titel', 'Okänd konstnär', 1100, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:04', 30.5, 94.5, 1, 40, 150, 1, 1, 0, 0),
(11, 1011, 'Ingen titel', 'Okänd konstnär', 900, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:11', 27.5, 87.5, 1, 34.5, 136, 1, 1, 0, 0),
(12, 1012, 'Ingen titel', 'Okänd konstnär', 150, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:16', 10, 25, 1, 15, 45, 1, 1, 0, 0),
(13, 1013, 'Ingen titel', 'Okänd konstnär', 150, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:20', 10, 25, 1, 15, 45, 1, 1, 0, 0),
(14, 1014, 'Ingen titel', 'Okänd konstnär', 150, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:23', 10, 25, 1, 15, 45, 1, 1, 0, 0),
(15, 1015, 'Ingen titel', 'Okänd konstnär', 150, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:27', 10, 25, 1, 15, 45, 1, 1, 1, 0),
(16, 1016, 'Ingen titel', 'Okänd konstnär', 150, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:31', 10, 25, 1, 15, 45, 1, 1, 0, 0),
(17, 1017, 'Ingen titel', 'Okänd konstnär', 150, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:35', 10, 25, 1, 15, 45, 1, 1, 0, 0),
(18, 1018, 'Ingen titel', 'Okänd konstnär', 400, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:44', 22.5, 48, 1, 28, 78, 1, 1, 0, 0),
(19, 1019, 'Ingen titel', 'Okänd konstnär', 400, NULL, '2013-04-23 12:32:31', '2013-06-02 09:06:36', 22.5, 48, 1, 28, 78, 1, 1, 0, 0),
(20, 1020, 'Ingen titel', 'Okänd konstnär', 400, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:49', 21.5, 50, 1, 26.5, 70, 1, 1, 0, 0),
(21, 1021, 'Ingen titel', 'Okänd konstnär', 400, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:52', 22, 50, 1, 28, 72, 1, 1, 0, 0),
(22, 1022, 'Ingen titel', 'Okänd konstnär', 400, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:56', 20.5, 50, 1, 25.5, 70, 1, 1, 0, 0),
(23, 1023, 'Ingen titel', 'Okänd konstnär', 400, NULL, '2013-04-23 12:32:31', '2013-06-01 12:50:59', 23, 49.5, 1, 28, 71, 1, 1, 0, 0),
(24, 1024, 'Ingen titel', 'Okänd konstnär', 400, NULL, '2013-04-23 12:32:31', '2013-06-02 09:06:39', 23, 47, 1, 28.5, 69, 1, 1, 0, 0),
(25, 1025, 'Ingen titel', 'Okänd konstnär', 1200, NULL, '2013-04-23 12:32:31', '2013-06-01 12:51:11', 32, 102, 1, 44, 157, 1, 1, 0, 0),
(26, 1026, 'Ingen titel', 'Okänd konstnär', 1200, NULL, '2013-04-23 12:32:31', '2013-06-01 12:51:15', 32, 102, 1, 44, 157, 1, 1, 0, 0),
(27, 1027, 'Ingen titel', 'Okänd konstnär', 1200, NULL, '2013-04-23 12:32:31', '2013-06-01 12:51:19', 32, 102, 1, 44, 157, 1, 1, 0, 0),
(28, 1028, 'Ingen titel', 'Okänd konstnär', 1200, NULL, '2013-04-23 12:32:31', '2013-06-01 12:51:22', 32, 102, 1, 44, 157, 1, 1, 0, 0),
(29, 1029, 'Ingen titel', 'Okänd konstnär', 2600, NULL, '2013-04-23 12:32:31', '2013-06-01 12:51:28', 69.5, 105, 1, 82.5, 197, 0, 0, 0, 0),
(30, 1030, 'Ingen titel', 'Okänd konstnär', 1400, NULL, '2013-04-23 12:32:31', '2013-06-01 12:51:35', 65, 57.5, 1, 76.5, 180, 1, 1, 0, 0),
(32, 1032, 'Ingen titel', 'Okänd konstnär', 2900, NULL, '2013-04-23 12:44:58', '2013-06-01 12:51:47', 64, 129, 1, 74, 184, 1, 1, 0, 0),
(31, 1031, 'Ingen titel', 'Okänd konstnär', 1400, NULL, '2013-04-23 12:44:58', '2013-06-01 12:51:54', 64, 62, 1, 75, 176, 1, 1, 1, 0),
(33, 1033, 'Ingen titel', 'Okänd konstnär', 4900, NULL, '2013-05-11 15:42:13', '2013-06-01 12:52:01', 166, 84, 1, 200, 93, 1, 1, 0, 2),
(34, 1034, 'Ingen titel', 'Okänd konstnär', 3100, NULL, '2013-04-23 12:32:31', '2013-06-01 12:52:08', 133, 66, 1, 200, 77.5, 1, 1, 0, 0),
(35, 1035, 'Ingen titel', 'Okänd konstnär', 3200, NULL, '2013-04-23 12:32:31', '2013-06-01 12:52:17', 133, 67, 1, 189, 78.5, 1, 1, 0, 0),
(36, 1036, 'Ingen titel', 'Okänd konstnär', 2800, NULL, '2013-04-23 12:32:31', '2013-06-01 12:52:31', 66, 120, 1, 75.5, 174, 0, 0, 0, 0),
(37, 1037, 'Ingen titel', 'Okänd konstnär', 1500, NULL, '2013-04-23 12:32:31', '2013-06-01 12:52:41', 65, 65, 1, 74.5, 137, 1, 1, 1, 0),
(38, 1038, 'Ingen titel', 'Okänd konstnär', 3000, NULL, '2013-04-23 12:32:31', '2013-06-01 12:52:46', 132, 65, 1, 187, 75.5, 1, 1, 0, 0),
(39, 1039, 'Ingen titel', 'Okänd konstnär', 4900, NULL, '2013-04-23 12:32:31', '2013-06-01 12:52:54', 166, 83.5, 1, 200, 92.5, 1, 1, 0, 0),
(40, 1040, 'Ingen titel', 'Okänd konstnär', 3200, NULL, '2013-04-23 12:32:31', '2013-06-01 12:53:01', 132, 68.5, 1, 185, 80.5, 0, 0, 0, 0),
(41, 1041, 'Ingen titel', 'Okänd konstnär', 2600, NULL, '2013-04-23 12:32:31', '2013-06-01 12:53:08', 125, 59, 1, 184, 67.5, 1, 1, 0, 0),
(42, 1042, 'Ingen titel', 'Okänd konstnär', 1700, NULL, '2013-04-23 12:32:31', '2013-06-01 12:53:15', 49.5, 94, 1, 58.5, 140, 1, 1, 0, 0),
(43, 1043, 'Ingen titel', 'Okänd konstnär', 2700, NULL, '2013-04-23 12:32:31', '2013-06-01 12:53:21', 166, 46, 1, 233, 57, 1, 1, 1, 0),
(44, 1044, 'Ingen titel', 'Okänd konstnär', 2700, NULL, '2013-04-23 12:32:31', '2013-06-01 12:53:27', 166, 45.5, 1, 233, 57, 1, 1, 0, 0),
(45, 1045, 'Ingen titel', 'Okänd konstnär', 1700, NULL, '2013-04-23 12:32:31', '2013-06-01 12:53:33', 95, 49, 1, 151, 59, 0, 0, 0, 0),
(46, 1046, 'Ingen titel', 'Okänd konstnär', 1100, NULL, '2013-04-23 12:32:31', '2013-06-01 12:53:39', 44.5, 67.5, 1, 54, 162, 0, 0, 0, 0),
(47, 1047, 'Ingen titel', 'Okänd konstnär', 1700, NULL, '2013-04-23 12:32:31', '2013-06-01 12:53:48', 49, 94, 1, 59.5, 144, 0, 0, 0, 0),
(48, 1048, 'Ingen titel', 'Okänd konstnär', 1700, NULL, '2013-04-23 12:32:31', '2013-06-01 12:54:02', 95, 49, 1, 150, 59, 0, 0, 0, 0),
(49, 1049, 'Ingen titel', 'Okänd konstnär', 1700, NULL, '2013-04-23 12:32:31', '2013-06-01 12:54:07', 52, 92, 1, 63.5, 167, 0, 0, 0, 0),
(50, 1050, 'Ingen titel', 'Okänd konstnär', 3200, NULL, '2013-04-23 12:32:31', '2013-06-01 12:54:12', 133.5, 67, 1, 197, 79, 0, 0, 0, 0),
(51, 1051, 'Ingen titel', 'Okänd konstnär', 1700, NULL, '2013-04-23 12:32:31', '2013-06-01 12:54:18', 48, 98, 1, 60, 179, 0, 0, 0, 0),
(52, 1052, 'Ingen titel', 'Okänd konstnär', 1900, NULL, '2013-04-23 12:32:31', '2013-06-01 12:54:21', 53.5, 100, 1, 64.5, 170, 0, 0, 0, 0),
(53, 1053, 'Ingen titel', 'Okänd konstnär', 1700, NULL, '2013-04-23 12:32:31', '2013-06-01 12:54:24', 49.5, 96, 1, 61.5, 180, 0, 0, 0, 0),
(54, 1054, 'Ingen titel', 'Okänd konstnär', 1100, NULL, '2013-04-23 12:32:31', '2013-06-01 12:54:29', 44.5, 67, 1, 55.5, 160, 0, 0, 0, 0),
(55, 1055, 'Ingen titel', 'Okänd konstnär', 1100, NULL, '2013-04-23 12:32:31', '2013-06-01 12:54:32', 44, 67, 1, 55.5, 160, 0, 0, 0, 0),
(56, 1056, 'Ingen titel', 'Okänd konstnär', 1400, NULL, '2013-04-23 12:32:31', '2013-06-01 12:54:44', 33.5, 115.5, 1, 44, 182, 0, 0, 0, 0),
(57, 1057, 'Ingen titel', 'Okänd konstnär', 1300, NULL, '2013-04-23 12:32:31', '2013-06-01 12:56:11', 31.5, 111, 1, 43, 177, 0, 0, 0, 0),
(58, 1058, 'Ingen titel', 'Okänd konstnär', 1700, NULL, '2013-04-23 12:32:31', '2013-06-01 12:56:16', 34.5, 137, 1, 45, 193, 1, 1, 1, 0),
(59, 1059, 'Ingen titel', 'Okänd konstnär', 1600, NULL, '2013-04-23 12:32:31', '2013-06-01 12:56:20', 33.5, 131.5, 1, 45, 189, 1, 1, 1, 0);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

Some files were not shown because too many files have changed in this diff Show More