Changeset 19836 for extensions
- Timestamp:
- Jan 5, 2013, 2:25:22 PM (12 years ago)
- Location:
- extensions/AdditionalPages/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdditionalPages/trunk/admin/add_page.inc.php
r19429 r19836 125 125 126 126 // Backup file 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"); 127 mkgetdir(AP_BACKUP_DIR, MKGETDIR_PROTECT_HTACCESS&~MKGETDIR_DIE_ON_ERROR); 128 $sav_file = @fopen(AP_BACKUP_DIR . $edited_page['id'] . '.txt', "w"); 130 129 @fwrite($sav_file, "Title: ".stripslashes($_POST['title'])."\nPermalink: ".stripslashes($_POST['permalink'])."\n\n".stripslashes($_POST['ap_content'])); 131 130 @fclose($sav_file); -
extensions/AdditionalPages/trunk/admin/edit_page.inc.php
r19429 r19836 12 12 { 13 13 pwg_query('DELETE FROM ' . ADD_PAGES_TABLE . ' WHERE id = ' . $_GET['edit'] . ';'); 14 @unlink( $conf['data_location'].'/additional_pages_backup/'. $_GET['edit'] . '.txt');14 @unlink(AP_BACKUP_DIR . $_GET['edit'] . '.txt'); 15 15 16 16 if ($conf['AP']['homepage'] == $_GET['edit']) -
extensions/AdditionalPages/trunk/main.inc.php
r16247 r19836 22 22 define('ADD_PAGES_TABLE' , $prefixeTable . 'additionalpages'); 23 23 define('AP_DISTRIBUED', AP_PATH . 'distribued/'); 24 define('AP_BACKUP_DIR', PHPWG_ROOT_PATH . $conf['data_location'] . 'additional_pages_backup/'); 24 25 25 26 $conf['AP'] = @unserialize($conf['additional_pages']);
Note: See TracChangeset
for help on using the changeset viewer.