Changeset 26065 for extensions/GuestBook/include/functions.inc.php
- Timestamp:
- Dec 21, 2013, 5:33:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GuestBook/include/functions.inc.php
r24889 r26065 1 1 <?php 2 if (!defined('GUESTBOOK_PATH'))die('Hacking attempt!');2 defined('GUESTBOOK_PATH') or die('Hacking attempt!'); 3 3 4 4 function get_stars($score, $path) 5 5 { 6 if ( $score === null) return null;6 if (!isset($score)) return null; 7 7 8 8 $max = 5; … … 10 10 $floor = floor($score); 11 11 12 $html = null;12 $html = ''; 13 13 for ($i=1; $i<=$floor; $i++) 14 14 {
Note: See TracChangeset
for help on using the changeset viewer.