@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | $smarty->append( |
| 38 | 38 | 'recent_interviews', |
| 39 | - array( 'individual_name' => $sql_recent_interviews['ind_name'], |
|
| 39 | + array('individual_name' => $sql_recent_interviews['ind_name'], |
|
| 40 | 40 | 'individual_id' => $sql_recent_interviews['ind_id'], |
| 41 | 41 | 'interview_author' => $sql_recent_interviews['userid'], |
| 42 | 42 | 'interview_author_id' => $sql_recent_interviews['user_id'], |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | include("../../config/admin.php"); |
| 20 | 20 | |
| 21 | 21 | if (isset($action)) { |
| 22 | - if ($action=='delete_comment') { |
|
| 22 | + if ($action == 'delete_comment') { |
|
| 23 | 23 | create_log_entry('Games', $comment_id, 'Comment', $comment_id, 'Delete', $_SESSION['user_id']); |
| 24 | 24 | |
| 25 | 25 | $sql = $mysqli->query("DELETE FROM game_user_comments WHERE comment_id = '$comment_id'") |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | //(instead of a post with pure HTML) The translation of the 'enter' breaks is different in JS, so in JS I do a |
| 73 | 73 | // conversion to a <br>. However, when we edit a comment, this <br> should not be |
| 74 | 74 | //visible to the user, hence again, now this conversion in php |
| 75 | - $breaks = array("<br />","<br>","<br/>"); |
|
| 75 | + $breaks = array("<br />", "<br>", "<br/>"); |
|
| 76 | 76 | $comment = str_ireplace($breaks, "\r\n", $comment); |
| 77 | 77 | |
| 78 | 78 | $date = date("F j, Y", $query_comment['timestamp']); |
@@ -97,5 +97,5 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | $smarty->assign('smarty_action', 'delete_comment'); |
| 100 | - $smarty->display("file:" . $mainsite_template_folder. "latest_comments_tile.html"); |
|
| 100 | + $smarty->display("file:".$mainsite_template_folder."latest_comments_tile.html"); |
|
| 101 | 101 | } |
@@ -23,8 +23,8 @@ |
||
| 23 | 23 | $last_year = date("Y") - 1; |
| 24 | 24 | $current_year = date("Y") - 1; |
| 25 | 25 | $current_day = 01; |
| 26 | -$months = array(1=>'Jan',2=>'Feb',3=>'Mar',4=>'Apr',5=>'May',6=>'Jun', |
|
| 27 | - 7=>'Jul',8=>'Aug',9=>'Sep',10=>'Oct',11=>'Nov',12=>'Dec'); |
|
| 26 | +$months = array(1=>'Jan', 2=>'Feb', 3=>'Mar', 4=>'Apr', 5=>'May', 6=>'Jun', |
|
| 27 | + 7=>'Jul', 8=>'Aug', 9=>'Sep', 10=>'Oct', 11=>'Nov', 12=>'Dec'); |
|
| 28 | 28 | $i = 0; |
| 29 | 29 | |
| 30 | 30 | if ($current_month == 13) { |
@@ -31,5 +31,5 @@ |
||
| 31 | 31 | $_SESSION['edit_message'] = "Please fill in all required fields"; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | -header('Location: ' . $_SERVER['HTTP_REFERER']); |
|
| 34 | +header('Location: '.$_SERVER['HTTP_REFERER']); |
|
| 35 | 35 | die(''); |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $pos_end = strpos($review_text, '[/frontpage]'); |
| 48 | 48 | $nr_char = $pos_end - $pos_start; |
| 49 | 49 | |
| 50 | - $review_text = substr($review_text, $pos_start, $nr_char); |
|
| 50 | + $review_text = substr($review_text, $pos_start, $nr_char); |
|
| 51 | 51 | |
| 52 | 52 | //$review_text = str_replace("[i][b]Comments[/b][/i]", "",$review_text); |
| 53 | 53 | //$review_text = str_replace("[i][b]Intro[/b][/i]", "",$review_text); |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace AL\Common\DAO; |
| 3 | 3 | |
| 4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
| 5 | -require_once __DIR__."/../Model/Game/Game.php" ; |
|
| 4 | +require_once __DIR__."/../../lib/Db.php"; |
|
| 5 | +require_once __DIR__."/../Model/Game/Game.php"; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * DAO for Games |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace AL\Common\DAO; |
| 3 | 3 | |
| 4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
| 5 | -require_once __DIR__."/../Model/Language/Language.php" ; |
|
| 4 | +require_once __DIR__."/../../lib/Db.php"; |
|
| 5 | +require_once __DIR__."/../Model/Language/Language.php"; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * DAO for ports |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace AL\Common\DAO; |
| 3 | 3 | |
| 4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
| 5 | -require_once __DIR__."/../Model/Database/Change.php" ; |
|
| 4 | +require_once __DIR__."/../../lib/Db.php"; |
|
| 5 | +require_once __DIR__."/../Model/Database/Change.php"; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * DAO for DB Change |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace AL\Common\DAO; |
| 3 | 3 | |
| 4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
| 5 | -require_once __DIR__."/../Model/Individual/IndividualRole.php" ; |
|
| 4 | +require_once __DIR__."/../../lib/Db.php"; |
|
| 5 | +require_once __DIR__."/../Model/Individual/IndividualRole.php"; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * DAO for Individual Roles |