I installed the BACKUP MYSQL ADMIN PLUGIN 1.3. It created a backup file for me in no time. Thanks a lot! But I don't quite understand how to download the backup files via a secure SSL / HTTPS connection.
I have ENABLE_SSL_ADMIN set to true in my configure.php. If I click the little download button in the backup page, the file would be downloaded via http not https.
I checked the source code and found the following code was commented out in admin/backup_mysql.php. (The red portion is what I added. The blue portion is what I deleted.)
Instead, the following code is used in the current version.Code:<!-- <td class="dataTableContent" onclick="document.location.href='<?php echo zen_href_link(FILENAME_BACKUP_MYSQL, $onclick_link); ?>'"><?php echo '<a href="' . zen_href_link(FILENAME_BACKUP_MYSQL, 'action=download&file=' . $entry, 'SSL') . '">' . zen_image(DIR_WS_ICONS . 'file_download.gif', ICON_FILE_DOWNLOAD) . '</a> ' . $entry; ?></td> -->
After uncommented the code in the top quote and commented the code in the second quote, I couldn't even log in to admin. I was able to log in again when I swapped the comment back. How could this change impact the login process?Code:<td class="dataTableContent" onClick="document.location.href='<?php echo zen_href_link(FILENAME_BACKUP_MYSQL, $onclick_link); ?>'"><?php echo '<a href="' . ((ENABLE_SSL_ADMIN == 'true') ? DIR_WS_HTTPS_ADMIN : DIR_WS_ADMIN) . 'backups/' . $entry . '">' . zen_image(DIR_WS_ICONS . 'file_download.gif', ICON_FILE_DOWNLOAD) . '</a> ' . $entry; ?></td>
I then tried to approach in different way. I comment out the code in the quote by using a php comment, <?php /* */ ?>, instead of the html comment, <!-- -->. It worked. I can still login too. Odd! I couldn't reproduce the problem.
Am I doing the right thing to use https connection for downloading the backup files?
I just installed 7-zip on my local PC. It is under c:/program files/7-zip. I modified both LOCAL_EXE_GUNZIP and LOCAL_EXE_UNZIP in admin/includes/init_includes/init_gzip.php to 'c:/Program Files/7-Zip/7z e -y'. I tested the command in cmd window. But the .gz file never got extracted from backup page. So, I couldn't restore the .gz file from the backup page. Restoring db with a .sql file is fine. Any idea?



