@@ -423,7 +423,8 @@ discard block |
||
| 423 | 423 | $stmt->bindParam(":pper", $results_per_page); |
| 424 | 424 | $stmt->execute(); |
| 425 | 425 | |
| 426 | - while($comment = $stmt->fetch(PDO::FETCH_ASSOC))) { |
|
| 426 | + while($comment = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 427 | + ) { |
|
| 427 | 428 | ?> |
| 428 | 429 | |
| 429 | 430 | <li class="comment yt-tile-default " data-author-viewing="" data-author-id="-uD01K8FQTeOSS5sniRFzQ" data-id="HdQrMeklJ_5hd_uPDRcvtdaMk2pMVS8d9sufcfiGx0U" data-score="0"> |
@@ -431,7 +432,9 @@ discard block |
||
| 431 | 432 | <div class="content-container"> |
| 432 | 433 | <div class="content"> |
| 433 | 434 | <div class="comment-text" dir="ltr"> |
| 434 | - <p><?php echo $__video_h->shorten_description($comment['comment'], 3000, true); ?></p> |
|
| 435 | + <p><?php echo $__video_h->shorten_description($comment['comment'], 3000, true); |
|
| 436 | + } |
|
| 437 | + ?></p> |
|
| 435 | 438 | </div> |
| 436 | 439 | <p class="metadata"> |
| 437 | 440 | <span class="author "> |
@@ -27,8 +27,9 @@ |
||
| 27 | 27 | $stmt->bindParam(":username", $_SESSION['siteusername']); |
| 28 | 28 | $characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'; |
| 29 | 29 | $result = ''; |
| 30 | - for ($i = 0; $i < 11; $i++) |
|
| 31 | - $rid .= $characters[mt_rand(0, 63)]; |
|
| 30 | + for ($i = 0; $i < 11; $i++) { |
|
| 31 | + $rid .= $characters[mt_rand(0, 63)]; |
|
| 32 | + } |
|
| 32 | 33 | $text = htmlspecialchars($_POST['comment']); |
| 33 | 34 | $stmt->execute(); |
| 34 | 35 | $__user_u->update_cooldown_time($_SESSION['siteusername'], "cooldown_comment"); |
@@ -33,8 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | $row = $stmt->fetch(PDO::FETCH_ASSOC); |
| 35 | 35 | if(!isset($row['password'])) |
| 36 | - { $request->error->message = "Incorrect username or password!"; $request->error->status = ""; } |
|
| 37 | - else |
|
| 36 | + { $request->error->message = "Incorrect username or password!"; $request->error->status = ""; } else |
|
| 38 | 37 | { $request->returned_password = $row['password']; } |
| 39 | 38 | |
| 40 | 39 | if(!password_verify($request->password, $request->returned_password)) |
@@ -12,14 +12,22 @@ |
||
| 12 | 12 | |
| 13 | 13 | public function sh_exec(string $cmd, string $outputfile = "", string $pidfile = "", bool $mergestderror = true, bool $bg = false) { |
| 14 | 14 | $fullcmd = $cmd; |
| 15 | - if(strlen($outputfile) > 0) $fullcmd .= " >> " . $outputfile; |
|
| 16 | - if($mergestderror) $fullcmd .= " 2>&1"; |
|
| 15 | + if(strlen($outputfile) > 0) { |
|
| 16 | + $fullcmd .= " >> " . $outputfile; |
|
| 17 | + } |
|
| 18 | + if($mergestderror) { |
|
| 19 | + $fullcmd .= " 2>&1"; |
|
| 20 | + } |
|
| 17 | 21 | |
| 18 | 22 | if($bg) { |
| 19 | 23 | $fullcmd = "nohup " . $fullcmd . " &"; |
| 20 | - if(strlen($pidfile)) $fullcmd .= " echo $! > " . $pidfile; |
|
| 24 | + if(strlen($pidfile)) { |
|
| 25 | + $fullcmd .= " echo $! > " . $pidfile; |
|
| 26 | + } |
|
| 21 | 27 | } else { |
| 22 | - if(strlen($pidfile) > 0) $fullcmd .= "; echo $$ > " . $pidfile; |
|
| 28 | + if(strlen($pidfile) > 0) { |
|
| 29 | + $fullcmd .= "; echo $$ > " . $pidfile; |
|
| 30 | + } |
|
| 23 | 31 | } |
| 24 | 32 | shell_exec($fullcmd); |
| 25 | 33 | } |
@@ -38,8 +38,7 @@ |
||
| 38 | 38 | ] |
| 39 | 39 | ); |
| 40 | 40 | $__server->db_properties->db_connected = true; |
| 41 | - } |
|
| 42 | - catch(PDOException $e) |
|
| 41 | + } catch(PDOException $e) |
|
| 43 | 42 | { |
| 44 | 43 | $__server->db_properties->db_connected = false; |
| 45 | 44 | // wtf is the point of this? cant you just vomit out the error? why????????????? |