Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixing, fixing.

  • Loading branch information...
commit 0a1d031f4ff5ed776afdfa44945e1ef6d1bcf6f7 1 parent d070d02
Pascal Finette authored July 24, 2012
4  .gitignore
... ...
@@ -1,3 +1 @@
1  
-.DS_Store
2  
-site/site/config/config.php
3  
-site/site/panel/accounts/config.php
  1
+.DS_Store
4  README.md
Source Rendered
... ...
@@ -1,4 +1,6 @@
1 1
 ## WebFWD
2 2
 
3 3
 WebFWD is the Open Innovation program from Mozilla.  This 
4  
-repository contains the WebFWD website.
  4
+repository contains the WebFWD website.
  5
+
  6
+Updated: 2012-07-24
0  site/site/cache/index.html
No changes.
384  site/site/config/config.php
... ...
@@ -0,0 +1,384 @@
  1
+<?php
  2
+
  3
+// direct access protection
  4
+if(!defined('KIRBY')) die('Direct access is not allowed');
  5
+
  6
+/* 
  7
+
  8
+---------------------------------------
  9
+License Setup
  10
+---------------------------------------
  11
+
  12
+Please add your license key, which you've received 
  13
+via email after purchasing Kirby. 
  14
+
  15
+If you have no license yet, please buy one: 
  16
+http://getkirby.com/buy and support an indie developer. 
  17
+
  18
+You are not allowed to run a website without a valid license key. 
  19
+Please read the End User License Agreement for more information: 
  20
+http://getkirby.com/license
  21
+
  22
+*/
  23
+
  24
+c::set('license', '7d55e7045ab57bb77f94224db4b806dd');
  25
+
  26
+
  27
+/* 
  28
+
  29
+---------------------------------------
  30
+URL Setup
  31
+---------------------------------------
  32
+
  33
+By default kirby tries to detect the correct url
  34
+for your site if this is set to false, but if this should fail 
  35
+or you need to set it on your own, do it like this:
  36
+
  37
+c::set('url', 'http://yourdomain.com');
  38
+
  39
+Make sure to write the url without a trailing slash.
  40
+
  41
+To work with relative URLs, you can set the URL like this:
  42
+
  43
+c::set('url', '/');
  44
+ 
  45
+*/
  46
+
  47
+c::set('url', '/');
  48
+
  49
+
  50
+/* 
  51
+
  52
+---------------------------------------
  53
+Subfolder Setup
  54
+---------------------------------------
  55
+
  56
+Kirby will automatically try to detect the subfolder
  57
+
  58
+i.e. http://yourdomain.com/subfolder
  59
+
  60
+This might fail depending on your server setup. 
  61
+In such a case, please set the correct subfolder here. 
  62
+
  63
+You must also set the right url then:
  64
+
  65
+c::set('url', 'http://yoururl.com/subfolder');
  66
+
  67
+if you are using the .htaccess file, make sure to 
  68
+set the right RewriteBase there as well:
  69
+
  70
+RewriteBase /subfolder
  71
+ 
  72
+*/
  73
+
  74
+c::set('subfolder', false);
  75
+
  76
+
  77
+/* 
  78
+
  79
+---------------------------------------
  80
+Rewrite URL Setup
  81
+---------------------------------------
  82
+
  83
+Kirby uses apache's mod_rewrite to build nice 
  84
+urls like http://yourdomain.com/about by default. 
  85
+If you can't use mod_rewrite disable rewriting here.
  86
+Kirby will then switch to urls like this:
  87
+
  88
+http://yourdomain.com/index.php/about
  89
+
  90
+*/
  91
+
  92
+c::set('rewrite', true);
  93
+
  94
+
  95
+/* 
  96
+
  97
+---------------------------------------
  98
+Homepage Setup
  99
+---------------------------------------
  100
+
  101
+By default the folder/uri for your homepage is "home".
  102
+Sometimes it makes sense to change that to make your blog
  103
+your homepage for example. Just change it here in that case.
  104
+
  105
+*/
  106
+
  107
+c::set('home', 'home');
  108
+
  109
+
  110
+/*
  111
+
  112
+---------------------------------------
  113
+Force SSL 
  114
+---------------------------------------
  115
+
  116
+If you want to make sure to force SSL on every
  117
+page, just set this setting to true.
  118
+
  119
+Also make sure to include https in your url setup:
  120
+c::set('url', 'https://yourdomain.com');
  121
+
  122
+*/
  123
+
  124
+c::set('ssl', false);
  125
+
  126
+
  127
+/*
  128
+
  129
+---------------------------------------
  130
+Kirbytext Setup 
  131
+---------------------------------------
  132
+
  133
+set the default video width and height for 
  134
+embedded flash videos from youtube or vimeo
  135
+
  136
+*/
  137
+
  138
+c::set('kirbytext.video.width', 480); 
  139
+c::set('kirbytext.video.height', 358); 
  140
+
  141
+
  142
+/* 
  143
+
  144
+---------------------------------------
  145
+Markdown Setup 
  146
+---------------------------------------
  147
+
  148
+to disable automatic line breaks in markdown
  149
+set this to false. 
  150
+
  151
+You can also switch between regular markdown
  152
+or markdown extra: http://michelf.com/projects/php-markdown/extra/
  153
+
  154
+*/
  155
+
  156
+c::set('markdown.breaks', true);
  157
+c::set('markdown.extra', false);
  158
+
  159
+
  160
+/*
  161
+
  162
+---------------------------------------
  163
+Tinyurl Setup 
  164
+---------------------------------------
  165
+
  166
+KirbyCMS has built in tiny urls for every
  167
+page. Tinyurls look like this:
  168
+
  169
+http://yourdomain.com/x/asd2qd1c 
  170
+
  171
+the /x/ in the url is needed to detect tinyurls,
  172
+you can change the x to anything else but an existing page uri.
  173
+
  174
+If you don't want to use tiny urls for your site
  175
+disable them here
  176
+
  177
+*/
  178
+
  179
+c::set('tinyurl.folder', 'x');
  180
+c::set('tinyurl.enabled', true);
  181
+
  182
+
  183
+/*
  184
+
  185
+---------------------------------------
  186
+Cache 
  187
+---------------------------------------
  188
+
  189
+Enable or disable the cache. 
  190
+It is enabled by default, but you 
  191
+need to make sure that the site/cache
  192
+directory is writable. 
  193
+
  194
+You can also decide to disable/enable
  195
+either caching of the data structure 
  196
+or the final html. If you are caching
  197
+the final html, make sure to clean
  198
+the cache, once you've modified your
  199
+templates. It's better to keep this
  200
+off until your site is ready for production. 
  201
+
  202
+Caching is switched off by default
  203
+
  204
+With c::set('cache.autoupdate') you can set if 
  205
+Kirby will automatically check for updates in your 
  206
+content folder. Depending on the size of your site
  207
+this can slow down the performance, because the 
  208
+filesystem is accessed a lot. Switch this off to 
  209
+disabled autoupdating of cache files, but then you 
  210
+need to make sure to delete cache files yourself after
  211
+each update. 
  212
+
  213
+With c::set('cache.ignore', array()); you can speficy
  214
+an array of URIs which should be skipped for caching.
  215
+If you got a search page for example you might not want
  216
+to cache each search result so you can add the URI of your
  217
+search site to the ignore array: 
  218
+
  219
+c::set('cache.ignore', array('search', 'some/other/uri/to/ignore'));
  220
+
  221
+*/
  222
+
  223
+c::set('cache', false);
  224
+c::set('cache.autoupdate', true);
  225
+c::set('cache.data', true);
  226
+c::set('cache.html', true);
  227
+c::set('cache.ignore', array());
  228
+
  229
+
  230
+/*
  231
+
  232
+---------------------------------------
  233
+Timezone Setup 
  234
+---------------------------------------
  235
+
  236
+You can change the default timezone used for all 
  237
+date functions here. It is set to UTC by default. 
  238
+
  239
+Please read more about it at: http://php.net/manual/en/function.date-default-timezone-set.php
  240
+
  241
+*/ 
  242
+
  243
+c::set('timezone', 'America/Los_Angeles');
  244
+
  245
+
  246
+/*
  247
+
  248
+---------------------------------------
  249
+Troubleshooting
  250
+---------------------------------------
  251
+
  252
+Kirby has a built-in troubleshooting screen 
  253
+with loads of information about your setup.
  254
+
  255
+It's there to help you out when things don't work
  256
+as expected. Set it to true to activate it and
  257
+go to your homepage afterwards to display it on refresh. 
  258
+
  259
+*/ 
  260
+
  261
+c::set('troubleshoot', false);
  262
+
  263
+
  264
+/*
  265
+
  266
+---------------------------------------
  267
+Debug 
  268
+---------------------------------------
  269
+
  270
+Set this to true to enable php errors. 
  271
+Make sure to keep this disabled for your 
  272
+production site, so you won't get nasty 
  273
+php errors there.
  274
+
  275
+*/
  276
+
  277
+c::set('debug', false);
  278
+
  279
+
  280
+/* 
  281
+
  282
+---------------------------------------
  283
+Your custom config file
  284
+---------------------------------------
  285
+
  286
+this is your custom config file for your site.
  287
+you can set any variable here, which you want to reuse later.
  288
+setting custom config variables works like this:
  289
+
  290
+c::set('yourvar', 'yourvalue');
  291
+
  292
+you can access them later in your code like this
  293
+
  294
+c::get('yourvar', 'some default value if the var is not set');
  295
+
  296
+please be careful with existing config rules to not 
  297
+overwrite them accidentally. Maybe just namespace them
  298
+in doubt like: 
  299
+
  300
+c::set('yourproject.yourvar', 'yourvalue');
  301
+
  302
+*/
  303
+
  304
+
  305
+/*
  306
+
  307
+---------------------------------------
  308
+Custom host setup
  309
+---------------------------------------
  310
+
  311
+I've added a nice way to add different 
  312
+config files for different environments
  313
+
  314
+Let's say you run a development version of your
  315
+site at http://dev.yoursite.com and a production
  316
+version of your site at http://yoursite.com, you
  317
+can easily setup two different config files
  318
+by adding two more files in this directory and name them
  319
+like this: 
  320
+
  321
+config.dev.yoursite.com.php
  322
+config.yoursite.com.php
  323
+
  324
+What happens is, that this global config.php
  325
+will be loaded first and afterwards only the
  326
+config file for the matching hostname will be 
  327
+attached. So you can easily overwrite your global
  328
+custom config by specific rules for that host. 
  329
+
  330
+*/
  331
+
  332
+
  333
+/* 
  334
+
  335
+---------------------------------------
  336
+Multi-Language support setup
  337
+---------------------------------------
  338
+
  339
+If you want to run a site with multiple languages, 
  340
+enable support for it here. As soon as you set
  341
+
  342
+c::set('lang.support', true); 
  343
+
  344
+Kirby will automatically create language-dependent 
  345
+URLs like:
  346
+
  347
+http://yourdomain.com/en/blog
  348
+
  349
+or 
  350
+
  351
+http://yourdomain.com/de/blog
  352
+
  353
+Make sure to set the default language code and 
  354
+also the available language codes. 
  355
+
  356
+If you keep…
  357
+
  358
+c::set('lang.detect', true);
  359
+
  360
+Kirby will try to detect the default language 
  361
+from the user agent string instead of using the
  362
+default language. 
  363
+
  364
+*/
  365
+
  366
+c::set('lang.support', false);
  367
+c::set('lang.default', 'en');
  368
+c::set('lang.available', array('en', 'de'));
  369
+c::set('lang.detect', true);
  370
+
  371
+
  372
+/* 
  373
+
  374
+---------------------------------------
  375
+Content File Extension
  376
+---------------------------------------
  377
+
  378
+Change the default file extension for your
  379
+content files here if you'd rather use something
  380
+else than txt. For example md or mdown. 
  381
+
  382
+*/
  383
+
  384
+c::set('content.file.extension', 'txt');
10  site/site/panel/accounts/config.php
... ...
@@ -0,0 +1,10 @@
  1
+<?php if(!defined('KIRBY')) exit ?>
  2
+
  3
+# setup your account credentials here
  4
+# it's highly recommended to use md5 or sha1 encryption 
  5
+# for your passwords. read more about encryption in the
  6
+# docs: http://getkirby.com/panel/accounts
  7
+
  8
+username: username
  9
+password: password
  10
+language: en
0  site/thumbs/index.html
No changes.

0 notes on commit 0a1d031

Please sign in to comment.
Something went wrong with that request. Please try again.