equal
deleted
inserted
replaced
429 $flags = $flags | LC_LINK_TRACK_CLICKS; |
429 $flags = $flags | LC_LINK_TRACK_CLICKS; |
430 |
430 |
431 $before_html = strval(trim($_POST['link_before_html'])); |
431 $before_html = strval(trim($_POST['link_before_html'])); |
432 $after_html = strval(trim($_POST['link_after_html'])); |
432 $after_html = strval(trim($_POST['link_after_html'])); |
433 |
433 |
434 if ( !$session->get_permissions('php_in_pages') ) |
434 $perms = $session->fetch_page_acl('LinkChomper', 'System'); |
|
435 if ( !$perms->get_permissions('html_in_pages') ) |
435 { |
436 { |
436 // Not allowed to embed PHP and Javascript |
437 // Not allowed to embed PHP and Javascript |
437 $before_html = sanitize_html($before_html); |
438 $before_html = sanitize_html($before_html); |
438 $after_html = sanitize_html($after_html); |
439 $after_html = sanitize_html($after_html); |
439 $inner_html = sanitize_html($inner_html); |
440 $inner_html = sanitize_html($inner_html); |
507 $flags = $flags | LC_LINK_TRACK_CLICKS; |
508 $flags = $flags | LC_LINK_TRACK_CLICKS; |
508 |
509 |
509 $before_html = strval(trim($_POST['link_before_html'])); |
510 $before_html = strval(trim($_POST['link_before_html'])); |
510 $after_html = strval(trim($_POST['link_after_html'])); |
511 $after_html = strval(trim($_POST['link_after_html'])); |
511 |
512 |
512 if ( !$session->get_permissions('php_in_pages') ) |
513 $perms = $session->fetch_page_acl('LinkChomper', 'System'); |
|
514 if ( !$perms->get_permissions('php_in_pages') ) |
513 { |
515 { |
514 // Not allowed to embed PHP and Javascript |
516 // Not allowed to embed PHP and Javascript |
515 $before_html = sanitize_html($before_html); |
517 $before_html = sanitize_html($before_html); |
516 $after_html = sanitize_html($after_html); |
518 $after_html = sanitize_html($after_html); |
517 $inner_html = sanitize_html($inner_html); |
519 $inner_html = sanitize_html($inner_html); |
759 fclose($f); |
761 fclose($f); |
760 $uuid = $random; |
762 $uuid = $random; |
761 } |
763 } |
762 } |
764 } |
763 $this->uuid = $uuid; |
765 $this->uuid = $uuid; |
764 } |
|
765 |
|
766 /** |
|
767 * PHP 4 constructor |
|
768 */ |
|
769 |
|
770 function LinkchomperFormGenerator() |
|
771 { |
|
772 $this->__construct(); |
|
773 } |
766 } |
774 |
767 |
775 /** |
768 /** |
776 * Generates the ready to use HTML. |
769 * Generates the ready to use HTML. |
777 * @return string |
770 * @return string |