-[submodule "code/wfpl"]
- path = code/wfpl
+[submodule "inc/wfpl"]
+ path = inc/wfpl
url = /home/jasonwoof/www/wfpl.git
-[submodule "code/ckeditor"]
- path = code/ckeditor
+[submodule "inc/ckeditor"]
+ path = inc/ckeditor
url = /home/jasonwoof/www/ckeditor.git
; exit 1 \
)
-tags: *.php code/*.php code/wfpl/*.php
- exuberant-ctags *.php code/*.php code/wfpl/*.php
+tags: *.php code/*.php inc/wfpl/*.php
+ exuberant-ctags *.php code/*.php inc/wfpl/*.php
<?php
-require_once('code/wfpl/session.php');
+require_once('inc/wfpl/session.php');
function admin_main() {
if(!logged_in_as_admin()) {
define('ADMIN_ADMINS_DB_FIELDS', 'name,username,password,privs');
-require_once('code/wfpl/format.php');
-require_once('code/wfpl/email.php');
+require_once('inc/wfpl/format.php');
+require_once('inc/wfpl/email.php');
function admin_admins_get_fields() {
$data = array();
# To save results to a database, you'll need to create the files table
# (the file admin_files.sql should help with this), and create the file
# 'code/db_connect.php' which calls db_connect() see:
-# code/wfpl/examples/db_connect.php
+# inc/wfpl/examples/db_connect.php
#
# if you rename any of the database fields, you'll need to update this:
$GLOBALS['filename_file_name'] = uniqid() . getmypid() . '.txt';
-require_once('code/wfpl/format.php');
-require_once('code/wfpl/email.php');
-require_once('code/wfpl/upload.php');
+require_once('inc/wfpl/format.php');
+require_once('inc/wfpl/email.php');
+require_once('inc/wfpl/upload.php');
function admin_files_get_fields() {
$data = array();
# To save results to a database, you'll need to create the cms_images table
# (the file admin_images.sql should help with this), and create the file
# 'code/db_connect.php' which calls db_connect() see:
-# code/wfpl/examples/db_connect.php
+# inc/wfpl/examples/db_connect.php
#
# if you rename any of the database fields, you'll need to update this:
$GLOBALS['image_file_name'] = uniqid() . getmypid() . '.jpg'; # comment this out to use uploader's filename
-require_once('code/wfpl/format.php');
-require_once('code/wfpl/upload.php');
+require_once('inc/wfpl/format.php');
+require_once('inc/wfpl/upload.php');
# example: 200x300
function format_width_height($str) {
<head>
<title><!--~$title show {~-->~$host~ Admin: <!--~listings once_if {~-->Pages Listing<!--~}~--><!--~form {~--><!--~id {~-->Add a new page<!--~}~--><!--~id unset {~-->Edit page "~title html~"<!--~}~--><!--~}~--><!--~}~--></title>
<!--~$head {~-->
- <script type="text/javascript" src="code/ckeditor/ckeditor.js"></script>
+ <script type="text/javascript" src="inc/ckeditor/ckeditor.js"></script>
<style>
/* icon in cke buttons */
.cke_button_icon.cke_button__wfpl_images_icon {
- background-image: url(/code/ckeditor/plugins/icons.png?t=D5AC);
+ background-image: url(/inc/ckeditor/plugins/icons.png?t=D5AC);
background-position: 0 -1504px;
}
.cke_wfpl_images_dialog * {
define('ADMIN_PAGES_DB_FIELDS', 'title,filename,navbar,nav_title,content,description,keywords');
-require_once('code/wfpl/format.php');
-require_once('code/wfpl/email.php');
+require_once('inc/wfpl/format.php');
+require_once('inc/wfpl/email.php');
function format_cms_filename($str) {
$str = format_filename($str);
$GLOBALS['contact_robot_answer'] = 1002;
-require_once('code/wfpl/format.php');
-require_once('code/wfpl/email.php');
+require_once('inc/wfpl/format.php');
+require_once('inc/wfpl/email.php');
function contact_get_fields() {
$data = array();
-Subproject commit 23dfbcc20fc6d20fb5be211e5af50cdcb8565c8e
+Subproject commit fe9a487e1b5ed0700481aee4609055dc6c47505d
-@require 'code/wfpl/stylus-helpers.styl'
+@require 'inc/wfpl/stylus-helpers.styl'
@require '.image-mtimes.styl'
// dimensions