Wiki ⇒ Upgrading or Switching ⇒ 9.3-9.4 to 10.0 ⇒ CPG Dragonfly™ CMS
WikiUpgrading or Switching ⇒ 9.3-9.4 to 10.0

4. 5: 9.3-9.4 to 10.0 Parent

Critical core changes

The way you access your website interfaces is changed.
  • /admin.php -> /?admin
    There is not going to be a transitional step for admin.php, deleting the obsolete file is required.

  • /install.php -> /?install

  • /rss/news.php -> /?feed=News
  • /rss/forums.php -> /?feed=Forums
  • Built-in RRS feeders (News and Forums), instead, fall back to the moved feeders, you should updated your RSS subscriptions to point to the new URL.
    Other modules RSS will need to be upgraded to the new format.
    Creating new feeds, or upgrading old ones, is a fairly easy process even for users with a basic knowledge.
    The resulting code is extremely small, just feed data to the SynFeed library.

Before you upgrade you must add the following new configuration options (before DB_TYPE is fine) into /includes/config.php: define('DF_MODE_INSTALL', true);
define('DF_STATIC_DOMAIN', '');

define('DF_HTTP_SSL_REQUIRED', false);
define('DF_HTTP_CACHE_EXPIRE', 60*60*24*21); # 3 weeks

define('DF_SESSION_FREQ_CLEAR_DB', 300); # 10 minutes
define('DF_SESSION_FREQ_EXPIRE', 60*60*3); # 3 hours
define('DF_SESSION_FREQ_UPDATE_DB', 30); # 30 seconds

define('DF_EOL', "\n");
Set DF_MODE_INSTALL to false when upgrade completes.

For Apache powered website: you also must update your .htaccess file.
# DELETE RewriteCond %{QUERY_STRING} \=../ [NC,OR] RewriteCond %{QUERY_STRING} "%20UNION" [NC,OR] RewriteCond %{QUERY_STRING} \=http:// [NC] RewriteRule ^index\.html /index.php RewriteRule ^([a-zA-Z0-9_=+-]+)(/|\.html)$ index=$1 [L,S=5] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)(/|\.html)$ index=$1&file=$2 [L,S=4] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index=$1&file=$2 [L,S=3] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/(.*)(/|\.html)$ index=$1&file=$2&$3 [L,S=1] RewriteRule ^([a-zA-Z0-9_]+)/(.*)(/|\.html)$ index=$1&file=index&$2 [L] RewriteRule ^index=(.*[^/])/(.*) index=$1&$2 [N,L] RewriteRule ^index=(.*) index.php?name=$1 [L] # CHANGE RewriteCond %{X-moz} ^prefetch [NC,OR] # TO RewriteCond %{X-moz} ^prefetch [NC] # CHANGE RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.*)$ - [L] # TO RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?$1 [L]

Function changes

Note: old functions names are still, but temporary, supported to facilitate the transition.
Old function name New function name
adminlink() URL::admin()
getlink() URL::index()
get_uri() URL::uri()
url_encode() URL::encode()
url_redirect() URL::redirect()
url_refresh() URL::refresh()
Security::get_ip() Dragonfly_Net::ipn()

Themes changes

For all information about themes read v10 Developer's manual ⇒ Themes

Database changes

Note: database will operate under sql strict conditions - more later.

Language changes

There are new language definitions, at the time of this writing* is mostly already up to date.

Created: Tuesday, September 09, 2008 (09:41:24) by NanoCaiordo
Updated: Thursday, May 28, 2020 (19:39:11) by DJ Maze