Ignore:
Timestamp:
Oct 14, 2013, 6:35:28 PM (11 years ago)
Author:
mistic100
Message:

use my plugin architecture, add options to hide the page for guests, fix admin links in mails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GuestBook/admin/config.php

    r15948 r24889  
    11<?php
    2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     2if (!defined('GUESTBOOK_PATH')) die('Hacking attempt!');
    33
    44if (isset($_POST['submit']))
     
    1010    'nb_comment_page' => $_POST['nb_comment_page'],
    1111    'activate_rating' => isset($_POST['activate_rating']),
     12    'guest_can_view' => isset($_POST['guest_can_view']),
     13    'guest_can_add' => isset($_POST['guest_can_add']),
    1214    );
    1315   
     
    1820$template->assign($conf['guestbook']);
    1921
    20 $template->set_filename('guestbook', dirname(__FILE__).'/template/config.tpl');
    21 
    22 ?>
     22$template->set_filename('guestbook', realpath(GUESTBOOK_PATH . 'admin/template/config.tpl'));
Note: See TracChangeset for help on using the changeset viewer.