JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
remove obsolete type="text/javascript" from script tags
[wfpl-cms.git] / admin_pages.php
index 4f5c4c8..ae6e4c4 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 
-# This form requires wfpl. See: http://jasonwoof.org/wfpl
+# This form requires wfpl. See: http://sametwice.com/wfpl
 
 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);
@@ -80,7 +80,7 @@ function admin_pages_main_delete($id) {
 
 function admin_pages_get_images() {
        $images = db_get_assocs('cms_images', 'image,name,caption,sizes', 'order by name, caption, image');
-       $id = 1;
+       $id = 0;
        foreach($images as &$image) {
                $image['id'] = '' . $id;
                $id += 1;