*********************************************************** * ______ ______ ___ _______ ___ ___ _______ * * | _ \ | _ \ | | | _ || Y || _ | * * |. | \|. | \|. | |. 1___||. || 1___| * * |. | |. | |. |___ |. |___ |. \_/ ||____ | * * |: 1 |: 1 |: 1 ||: 1 ||: | ||: 1 | * * |::.. . /|::.. . /|::.. . ||::.. . ||::.|:. ||::.. . | * * `------' `------' `-------'`-------'`--- ---'`-------' * * _______ _____ * * .--.--. | | | _ | * * | | | |___| | __ |.| | * * \___/ / ___/ |__| `-|. | * * |: 1 \ |: | * * |::.. . | |::.| * * `-------' `---' * * * * Script: DDLCMS v2.1 * * Author: Little Dragon * * Email: ddlcms@ddlcms.com * * Website: http://www.ddlcms.com * * * * Please direct bug reports, suggestions or feedback * * to the DDLCMS forums: * * * * http://www.ddlcms.com/forums * * * * DDLCMS is a commercial grade content management * * system for DDL site owners. It is provided free * * of charge, provided: * * * * 1. You keep the linkback to http://www.ddlcms.com * * in the footer. * * * * 2. You keep the sponsored links to Sharingzone.net * * on your site. * * * * By using this script, you agree that you will not * * modify, remove, or replace any encoded parts of * * this script. All encoded parts MUST remain intact * * for your site to remain in good standing. * * * *********************************************************** DDLCMS Upgrade From v2.0 to v2.1 ================================ Step 1 ====== Edit file: admin/adminheader.php: Find and delete this line (line 60): $e->headers(); Step 2 ====== Find: Add after: Step 3 ====== Edit file: admin/edit.php Find and delete these lines (lines 50 - 58): function headers() { header('Cache-control: private, no-cache'); header('Expires: Thu, 1 Jan 2009 00:00:00 GMT'); header('Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', false); header('Pragma: no-cache'); } Step 4 ====== Edit file: bookmark.php Find line 47: define('BASEDIR', substr(WWWROOT, 0, 27)); Change the number 27 to whatever it's set to in index.php on line 48 (it's specific to your installation). Step 5 ====== Edit file: submitted.php Find: require(WWWROOT. 'autosubmitter/ban.php'); Add before: if(!defined('BASEDIR') || !defined('WWWROOT')) { define('WWWROOT', dirname(__FILE__) . '/'); define('BASEDIR', substr(WWWROOT, 0, ##BASEDIR##)); } In the above code, replace ##BASEDIR## with the number from Step 4 above. Step 6 ====== Now you have upgraded to v2.1. To stop getting the upgrade notifications in AdminCP, you will have to change your script's version number: Using Phpmyadmin, run the following SQL command on your database to update your script to v2.1: UPDATE config SET version = 2.1 LIMIT 1; Step 7 ====== Test your site to make sure everything works.