Changeset 20181 for extensions/GuestBook/include/guestbook.inc.php
- Timestamp:
- Jan 16, 2013, 2:15:29 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GuestBook/include/guestbook.inc.php
r17717 r20181 1 1 <?php 2 2 if (!defined('GUESTBOOK_PATH')) die('Hacking attempt!'); 3 4 global $user; 3 5 4 6 include(GUESTBOOK_PATH . '/include/functions.inc.php'); … … 116 118 include_once(GUESTBOOK_PATH.'include/functions_comment.inc.php'); 117 119 118 $comment_action = insert_user_comment_guestbook($comm, @$_POST['key'] , $page['infos']);120 $comment_action = insert_user_comment_guestbook($comm, @$_POST['key']); 119 121 120 122 switch ($comment_action) … … 303 305 } 304 306 } 307 if (is_classic_user()) 308 { 309 $author = $user['username']; 310 $email = $user['email']; 311 } 312 if (empty($conf['comments_email_mandatory'])) // < 2.5 compatibility 313 { 314 $conf['comments_email_mandatory'] = false; 315 } 316 305 317 $template->assign('comment_add', 306 318 array( … … 308 320 'KEY' => get_ephemeral_key(3), 309 321 'CONTENT' => $content, 310 ' SHOW_AUTHOR' => !is_classic_user(),311 'AUTHOR' => $author 312 'WEBSITE' => $website 313 'EMAIL' => $email 322 'IS_LOGGED' => is_classic_user(), 323 'AUTHOR' => $author, 324 'WEBSITE' => $website, 325 'EMAIL' => $email, 314 326 'ACTIVATE_RATING' => $conf['guestbook']['activate_rating'], 327 'EMAIL_MANDATORY' => $conf['comments_email_mandatory'], 315 328 )); 316 329 } … … 319 332 $template->assign('GUESTBOOK_PATH', GUESTBOOK_PATH); 320 333 321 $template->assign('clear_themes', array(322 'clear',323 'gally-minimalist',324 'hr_os',325 'hr_os_xl',326 'kardon',327 'montblancxl',328 'Naive',329 'OS_glass_clear',330 'p0w0',331 'Pure_autumn',332 'Pure_clear_blue',333 'Pure_sky',334 'Pure_tr_clear_blue',335 'simple-white',336 'VerticalWhite',337 ));338 339 334 $template->set_filename('index', dirname(__FILE__).'/../template/guestbook.tpl'); 340 335
Note: See TracChangeset
for help on using the changeset viewer.