Dragonfly CMS v9 ⇒ Downloads Pro ⇒ DL Pro 1.6 ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum Index Modules & Blocks Downloads Pro

DL Pro 1.6 Reply to topic


I currently have DLP 1.5
Just unloaded DLP 1.6
Modules|edit, It shows as 1.5 with no update link. Is that correct?

Also what changes were made 1.5 to 1.6, i have a custom version i may need to change --> dragonflycms.org/Forum...23286.html

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Litespeed/Apache2.4.23/MySQL5.5.42/PHP 5.6.25/DF 9.4.0.0


1.6 ?!?!
The current version is 3.0.0.16
Changes: dragonflycms.org/Downl...y=174.html

And yes, there is no upgrade link. I forgot to change version number in cpg_inst.php
So it still says 3.0.0.15.
No worry as there are no DB changes.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


Ok Thanks,
yes i meant .15 and .16 sorry

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Litespeed/Apache2.4.23/MySQL5.5.42/PHP 5.6.25/DF 9.4.0.0


i made a detailed list of changes for anyone interested with a custom DLP

Download Pro 3.0.0.15 to 3.0.0.16 changes

modules/Downloads/admin/dls_mngr.inc
Change line 98

if (ereg('://', $mirror_url)) {
to
if (strpos($mirror_url, '://')) {
------------------------------------

modules/Downloads/admin/fields_mngr.inc
Change line 34

if ($a_del && !ereg("[_0-9a-z-]", $f_name)) { cpg_error(sprintf(_DLP_FNAMEFORBIDDEN, $f_name)); }
to
if ($a_del && !preg_match('/[_0-9a-z-]/', $f_name)) { cpg_error(sprintf(_DLP_FNAMEFORBIDDEN, $f_name)); }

Change lines 53 & 54

$f_name = Fix_Quotes(ereg_replace(' ', '_', $_POST['name']), true);
if (!ereg("[_0-9a-z-]", $f_name)) { cpg_error(sprintf(_DLP_FNAMEFORBIDDEN, $f_name)); }
to
$f_name = Fix_Quotes(str_replace(' ', '_', $_POST['name']), true);
if (!preg_match('/[_0-9a-z-]/', $f_name)) { cpg_error(sprintf(_DLP_FNAMEFORBIDDEN, $f_name)); }
------------------------------------

modules/Downloads/admin/index.inc
Change line 74

if (ereg('://', $row['url'])) {
to
if (strpos($row['url'], '://')) {
------------------------------------

modules/Downloads/functions/linking.inc
Change line 78

if (empty($img_name) || ereg('://', $img_name)) { return ''; }
to
if (empty($img_name) || strpos($img_name, '://')) { return ''; }
------------------------------------

modules/Downloads/functions/mirrors.inc
Change line 37

if (ereg('://', $url)) {
to
if (strpos($url, '://')) {

Change line 48

if (ereg('\.\.', $url) || preg_match("/[\\:*?"<>|]/i", $url)) {
to
if (false !== strpos($url, '..') || preg_match("/[\\:*?"<>|]/i", $url)) {
------------------------------------

modules/Downloads/functions/padfile.inc
Change line 187

if (ereg('://', $this->URL)) {
to
if (strpos($this->URL, '://')) {

Change line 195

if (ereg('\.\.', $this->URL) || preg_match("/[*?"<>|]/i", $this->URL) || !file_exists($this->URL)) {
to
if (false !== strpos($this->URL,'..') || preg_match("/[*?"<>|]/i", $this->URL) || !file_exists($this->URL)) {
------------------------------------

modules/Downloads/functions/screenshots.inc
Change line 36

if (ereg('://', $url)) {
to
if (strpos($url, '://')) {

Change line 42

if (ereg('\.\.', $url) || preg_match("/[\\:*?"<>|]/i", $url)) {
to
if (false !== strpos($url, '..') || preg_match("/[\\:*?"<>|]/i", $url)) {

Change line 185

'VALID' => (!ereg('://', $image['url']) && file_exists($image['url'])),
to
'VALID' => (!strpos($image['url'], '://') && file_exists($image['url'])),
------------------------------------

modules/Downloads/includes/viewcat.inc
Change line 118

if (ereg('://', $row['img_url'])) {
to
if (strpos($row['img_url'], '://')) {
------------------------------------

modules/Downloads/cpg_inst.php
Change line 239

if (ereg('://', $row[1])) {
to
if (strpos($row[1], '://')) {
------------------------------------

modules/Downloads/details.php
Change line 42

if (ereg('://', $row['img_url'])) {
to
if (strpos($row['img_url'], '://')) {
------------------------------------

modules/Downloads/index.php
Change line 211

$remote = ereg('://', $dl_url);
to
$remote = strpos($dl_url, '://');

Change line 289

if (ereg('://', $mirror['url'])) {
to
if (strpos($mirror['url'], '://')) {
------------------------------------

modules/Downloads/manage.php
Change line 353

if (ereg('://', $row['mirror_url'])) {
to
if (strpos($row['mirror_url'], '://')) {
------------------------------------

modules/Downloads/search.php
Change line 204

if (ereg('://', $row['img_url'])) {
to
if (strpos($row['img_url'], '://')) {
------------------------------------

rss/downloads.php
Change line 36

$BASEHREF = ereg_replace('//rss.', '//', $BASEHREF);
to
$BASEHREF = str_replace('//rss.', '//', $BASEHREF);
------------------------------------

rss/downloadssl.php
Change line 36

$BASEHREF = ereg_replace('//rss.', '//', $BASEHREF);
to
$BASEHREF = str_replace('//rss.', '//', $BASEHREF);

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Litespeed/Apache2.4.23/MySQL5.5.42/PHP 5.6.25/DF 9.4.0.0

All times are UTC


Jump to: