Ignore:
Timestamp:
Feb 20, 2011, 12:21:05 AM (13 years ago)
Author:
patdenice
Message:

Code comment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdditionalPages/admin/add_page.inc.php

    r9310 r9312  
    2020}
    2121
    22 // Enregistrement
     22// Submit form
    2323if (isset($_POST['save']))
    2424{
     
    106106    }
    107107
    108     // Enregistrement du fichier de sauvegarde
     108    // Backup file
    109109    mkgetdir($conf['local_data_dir'], MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR);
    110     mkgetdir($conf['local_data_dir'].'/additional_pages_backup', MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR);
     110    mkgetdir($conf['local_data_dir'].'/additional_pages_backup', MKGETDIR_PROTECT_HTACCESS&~MKGETDIR_DIE_ON_ERROR);
    111111    $sav_file = @fopen($conf['local_data_dir'].'/additional_pages_backup/' . $edited_page['id'] . '.txt', "w");
    112112    @fwrite($sav_file, "Title: ".$_POST['title']."\nPermalink: ".$_POST['permalink']."\nLanguage: ".$_POST['lang']."\n\n" . $_POST['ap_content']);
    113113    @fclose($sav_file);
    114114
     115    // Redirect to admin pannel or additional page
    115116    if (isset($_GET['redirect']))
    116117    {
     
    131132}
    132133
    133 // Selection des langues
     134// Language options
    134135$options['ALL'] = l10n('ap_all_lang');
    135136$selected = 'ALL';
Note: See TracChangeset for help on using the changeset viewer.