Ignore:
Timestamp:
Dec 14, 2012, 5:59:33 PM (11 years ago)
Author:
mistic100
Message:

replace $conflocal_data_dir by $confdata_location

Location:
extensions/AdditionalPages/trunk/admin
Files:
3 edited

Legend:

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

    r16122 r19429  
    125125
    126126    // Backup file
    127     mkgetdir($conf['local_data_dir'], MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR);
    128     mkgetdir($conf['local_data_dir'].'/additional_pages_backup', MKGETDIR_PROTECT_HTACCESS&~MKGETDIR_DIE_ON_ERROR);
    129     $sav_file = @fopen($conf['local_data_dir'].'/additional_pages_backup/' . $edited_page['id'] . '.txt', "w");
     127    mkgetdir($conf['data_location'], MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR);
     128    mkgetdir($conf['data_location'].'/additional_pages_backup', MKGETDIR_PROTECT_HTACCESS&~MKGETDIR_DIE_ON_ERROR);
     129    $sav_file = @fopen($conf['data_location'].'/additional_pages_backup/' . $edited_page['id'] . '.txt', "w");
    130130    @fwrite($sav_file, "Title: ".stripslashes($_POST['title'])."\nPermalink: ".stripslashes($_POST['permalink'])."\n\n".stripslashes($_POST['ap_content']));
    131131    @fclose($sav_file);
  • extensions/AdditionalPages/trunk/admin/edit_page.inc.php

    r9350 r19429  
    1111if (isset($_REQUEST['delete']) and isset($_GET['edit']))
    1212{
    13         pwg_query('DELETE FROM ' . ADD_PAGES_TABLE . ' WHERE id = ' . $_GET['edit'] . ';');
    14   @unlink($conf['local_data_dir'].'/additional_pages_backup/' . $_GET['edit'] . '.txt');
     13  pwg_query('DELETE FROM ' . ADD_PAGES_TABLE . ' WHERE id = ' . $_GET['edit'] . ';');
     14  @unlink($conf['data_location'].'/additional_pages_backup/' . $_GET['edit'] . '.txt');
    1515
    1616  if ($conf['AP']['homepage'] == $_GET['edit'])
  • extensions/AdditionalPages/trunk/admin/manage.inc.php

    r12658 r19429  
    3737$languages = get_languages();
    3838
    39 $query = 'SELECT id, pos, lang, title, standalone
     39$query = 'SELECT id, pos, lang, title, standalone, permalink
    4040FROM '.ADD_PAGES_TABLE.'
    4141ORDER BY ABS(pos) ASC, id ASC
Note: See TracChangeset for help on using the changeset viewer.