@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | class user_helper { |
| 12 | 12 | public $__db; |
| 13 | 13 | |
| 14 | - public function __construct($conn){ |
|
| 14 | + public function __construct($conn) { |
|
| 15 | 15 | $this->__db = $conn; |
| 16 | 16 | } |
| 17 | 17 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | $stmt = $this->__db->prepare("SELECT pfp FROM users WHERE username = :username"); |
| 20 | 20 | $stmt->bindParam(":username", $username); |
| 21 | 21 | $stmt->execute(); |
| 22 | - while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 22 | + while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 23 | 23 | $pfp = $row['pfp']; |
| 24 | 24 | } // why the while statement? just remove it (i cant be bothered to) |
| 25 | 25 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | function if_admin($user) { |
| 48 | 48 | $stmt = $this->__db->prepare("SELECT status FROM users WHERE username = :user AND status = 'admin'"); |
| 49 | - $stmt->bindParam(":user", $user);; |
|
| 49 | + $stmt->bindParam(":user", $user); ; |
|
| 50 | 50 | $stmt->execute(); |
| 51 | 51 | |
| 52 | 52 | return $stmt->rowCount() === 1; |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | function if_partner($user) { |
| 56 | 56 | $stmt = $this->__db->prepare("SELECT partner FROM users WHERE username = :user AND partner = 'y'"); |
| 57 | - $stmt->bindParam(":user", $user);; |
|
| 57 | + $stmt->bindParam(":user", $user); ; |
|
| 58 | 58 | $stmt->execute(); |
| 59 | 59 | |
| 60 | 60 | return $stmt->rowCount() === 1; |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | Choose image. Non-square images wil be cropped.<br> |
| 248 | 248 | Suggested dimensions: 800x800 pixels. Max size: 1MB. |
| 249 | 249 | </p> |
| 250 | - <?php if($_user['pfp'] != "default.png") { ?> |
|
| 250 | + <?php if ($_user['pfp'] != "default.png") { ?> |
|
| 251 | 251 | <a style="font-size: 11px;" href="/get/remove_profile_pic">Remove Profile Picture</a><br> |
| 252 | 252 | <?php } ?> |
| 253 | 253 | <br> |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | <input type="file" name="backgroundbgset" id="background-upload"> |
| 338 | 338 | <!--<button class="yt-uix-button yt-uix-button-default" id="av-uplod">Select File</button>--> |
| 339 | 339 | </div><br> |
| 340 | - <?php if($__user_h->if_partner($_user['username'])) { ?> |
|
| 340 | + <?php if ($__user_h->if_partner($_user['username'])) { ?> |
|
| 341 | 341 | <h2>Watch Page Subscribe Button</h2> |
| 342 | 342 | <span style="font-size: 11px;color:grey;" class="grey-text">Choose Image (Max file size: 10MB)</span><br> |
| 343 | 343 | <div id="watchsub" method="post" action="/d/channel_update?n=watchsub" enctype="multipart/form-data"> |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | <td class="left-side-customization" style="width: 247px;"> |
| 462 | 462 | <h2>Channel information & Settings</h2> |
| 463 | 463 | <span style="font-size: 10px;color: grey;">Featured Video</span><br> |
| 464 | - <input class="yt-uix-form-input-text" style="width: 225px;" id="biomd" placeholder="Video ID" value="<?php echo htmlspecialchars($_user['featured']);?>" name="videoid"><br><br> |
|
| 464 | + <input class="yt-uix-form-input-text" style="width: 225px;" id="biomd" placeholder="Video ID" value="<?php echo htmlspecialchars($_user['featured']); ?>" name="videoid"><br><br> |
|
| 465 | 465 | <span style="font-size: 10px;color: grey;">Description</span><br> |
| 466 | 466 | <div id="bio" action="/d/channel_update" enctype="multipart/form-data"> |
| 467 | 467 | <textarea class="yt-uix-form-input-text" style="resize:none;height: 55px;width: 225px;background-color:white;border: 1px solid #d3d3d3;" id="biom" placeholder="Bio" name="bio"><?php echo htmlspecialchars($_user['bio']); ?></textarea><br> |
@@ -474,12 +474,12 @@ discard block |
||
| 474 | 474 | <h2>Advanced</h2> |
| 475 | 475 | <span style="font-size: 10px;color: grey;">Website URL</span><br> |
| 476 | 476 | <div id="featuredvid" action="/d/channel_update" enctype="multipart/form-data"> |
| 477 | - <input class="yt-uix-form-input-text" style="width: 225px;" id="biomd" placeholder="Website URL" value="<?php echo htmlspecialchars($_user['website']);?>" name="website"> |
|
| 477 | + <input class="yt-uix-form-input-text" style="width: 225px;" id="biomd" placeholder="Website URL" value="<?php echo htmlspecialchars($_user['website']); ?>" name="website"> |
|
| 478 | 478 | </div><br> |
| 479 | 479 | <div> |
| 480 | 480 | <span style="font-size: 10px;color: grey;">Featured Channels</span> |
| 481 | 481 | <div id="featuredvid" action="/d/channel_update" enctype="multipart/form-data"> |
| 482 | - <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Seperate by commas!" value="<?php echo htmlspecialchars($_user['featured_channels']);?>" name="featuredchannels"> |
|
| 482 | + <input class="yt-uix-form-input-text" style="width: 291px;" id="biomd" placeholder="Seperate by commas!" value="<?php echo htmlspecialchars($_user['featured_channels']); ?>" name="featuredchannels"> |
|
| 483 | 483 | </div> |
| 484 | 484 | </div><br> |
| 485 | 485 | |
@@ -487,11 +487,11 @@ discard block |
||
| 487 | 487 | <div id="countryselect" action="/d/channel_update" enctype="multipart/form-data"> |
| 488 | 488 | <select style="width: 246px;" class="yt-uix-button yt-uix-button-default" id="country" name="country" value="<?php echo $_user['country']?>"> |
| 489 | 489 | <?php |
| 490 | - $countries = ["Select country","Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan", "Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe"]; |
|
| 490 | + $countries = ["Select country", "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)", "Faroe Islands", "Fiji", "Finland", "France", "France Metropolitan", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard and Mc Donald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan", "Lao, People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macau", "Macedonia, The Former Yugoslav Republic of", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of", "Monaco", "Mongolia", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands", "Netherlands Antilles", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "St. Helena", "St. Pierre and Miquelon", "Sudan", "Suriname", "Svalbard and Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands (British)", "Virgin Islands (U.S.)", "Wallis and Futuna Islands", "Western Sahara", "Yemen", "Yugoslavia", "Zambia", "Zimbabwe"]; |
|
| 491 | 491 | |
| 492 | 492 | $countryLength = sizeof($countries); |
| 493 | 493 | $i = 0; |
| 494 | - for($i = 0;$i <= $countryLength; $i++) |
|
| 494 | + for ($i = 0; $i <= $countryLength; $i++) |
|
| 495 | 495 | { |
| 496 | 496 | $c = $countries[$i]; |
| 497 | 497 | if ($c == $_user['country']) |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | else |
| 505 | 505 | { |
| 506 | 506 | ?> |
| 507 | - <option value="<?php echo $c;?>"><?php echo $c; ?></option> |
|
| 507 | + <option value="<?php echo $c; ?>"><?php echo $c; ?></option> |
|
| 508 | 508 | <?php |
| 509 | 509 | } |
| 510 | 510 | } |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | <span style="font-size: 10px;color: grey;">Channel Genre</span><br> |
| 518 | 518 | <div id="channellayout" action="/d/channel_update" enctype="multipart/form-data"> |
| 519 | 519 | <select style="width: 246px;" class="yt-uix-button yt-uix-button-default" name="genre"> |
| 520 | - <?php foreach($categories as $category) { ?> |
|
| 520 | + <?php foreach ($categories as $category) { ?> |
|
| 521 | 521 | <option value="<?php echo $category; ?>"><?php echo $category; ?></option> |
| 522 | 522 | <?php } ?> |
| 523 | 523 | </select> |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | <?php |
| 64 | 64 | $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 1"); |
| 65 | 65 | $stmt->execute(); |
| 66 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 66 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 67 | 67 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 68 | 68 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 69 | 69 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -71,20 +71,20 @@ discard block |
||
| 71 | 71 | $video['title'] = htmlspecialchars($video['title']); |
| 72 | 72 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
| 73 | 73 | ?> |
| 74 | - <div class="context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="<?php echo $video['views']; ?> views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="6:58"> |
|
| 75 | - <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CAMQ0x4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-370 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" alt="Thumbnail" width="370"><span class="vertical-align"></span></span></span></span><span class="video-time">6:58</span> |
|
| 76 | - <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 74 | + <div class="context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="<?php echo $video['views']; ?> views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="6:58"> |
|
| 75 | + <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CAMQ0x4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-370 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" alt="Thumbnail" width="370"><span class="vertical-align"></span></span></span></span><span class="video-time">6:58</span> |
|
| 76 | + <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 77 | 77 | </span> <img class="yt-uix-button-arrow" src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" title=""> |
| 78 | 78 | </button> |
| 79 | 79 | </a> |
| 80 | - <a class="lohp-video-link max-line-2 yt-uix-sessionlink" data-sessionlink="ved=CAMQ0x4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 80 | + <a class="lohp-video-link max-line-2 yt-uix-sessionlink" data-sessionlink="ved=CAMQ0x4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 81 | 81 | <div class="lohp-video-metadata attached"> |
| 82 | 82 | <span class="content-uploader"> |
| 83 | - <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 83 | + <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 84 | 84 | </span> |
| 85 | 85 | </div> |
| 86 | - <p title="<?php echo $video['description']; ?>" class="lohp-blog-headline"> |
|
| 87 | - <?php echo $video['description']; ?> |
|
| 86 | + <p title="<?php echo $video['description']; ?>" class="lohp-blog-headline"> |
|
| 87 | + <?php echo $video['description']; ?> |
|
| 88 | 88 | </p> |
| 89 | 89 | <a title="Trending" href="#" class="lohp-blog-attribution"> |
| 90 | 90 | <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" class="lohp-blog-decoration">Trending & Featured: SubRocks |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | <?php |
| 97 | 97 | $stmt = $__db->prepare("SELECT * FROM videos WHERE featured = 'v' ORDER BY id DESC LIMIT 1, 3"); |
| 98 | 98 | $stmt->execute(); |
| 99 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 99 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 100 | 100 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 101 | 101 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 102 | 102 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -104,23 +104,23 @@ discard block |
||
| 104 | 104 | $video['title'] = htmlspecialchars($video['title']); |
| 105 | 105 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
| 106 | 106 | ?> |
| 107 | - <div class="lohp-medium-shelf context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="5,761,446 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 107 | + <div class="lohp-medium-shelf context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="5,761,446 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 108 | 108 | <div class="lohp-media-object"> |
| 109 | - <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CAQQ0x4oAQ&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-128 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" alt="Thumbnail" width="128"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 110 | - <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 109 | + <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CAQQ0x4oAQ&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-128 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" alt="Thumbnail" width="128"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 110 | + <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 111 | 111 | </span> <img class="yt-uix-button-arrow" src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" title=""> |
| 112 | 112 | </button> |
| 113 | 113 | </a> |
| 114 | 114 | </div> |
| 115 | 115 | <div class="lohp-media-object-content lohp-medium-shelf-content"> |
| 116 | - <a class="lohp-video-link max-line-1 yt-uix-sessionlink" data-sessionlink="ved=CAQQ0x4oAQ&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 116 | + <a class="lohp-video-link max-line-1 yt-uix-sessionlink" data-sessionlink="ved=CAQQ0x4oAQ&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 117 | 117 | <div class="lohp-video-metadata attached"> |
| 118 | 118 | <span class="content-uploader"> |
| 119 | - <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 119 | + <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 120 | 120 | </span> |
| 121 | 121 | </div> |
| 122 | - <p title="<?php echo $video['title']; ?>" class="lohp-blog-headline"> |
|
| 123 | - <?php echo $video['title']; ?> |
|
| 122 | + <p title="<?php echo $video['title']; ?>" class="lohp-blog-headline"> |
|
| 123 | + <?php echo $video['title']; ?> |
|
| 124 | 124 | </p> |
| 125 | 125 | </div> |
| 126 | 126 | </div> |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | <?php |
| 140 | 140 | $stmt = $__db->prepare("SELECT * FROM videos ORDER BY id DESC LIMIT 6"); |
| 141 | 141 | $stmt->execute(); |
| 142 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 142 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 143 | 143 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 144 | 144 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 145 | 145 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | <?php |
| 179 | 179 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Entertainment' ORDER BY rand() LIMIT 3"); |
| 180 | 180 | $stmt->execute(); |
| 181 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 181 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 182 | 182 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 183 | 183 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 184 | 184 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | <?php |
| 218 | 218 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Sports' ORDER BY rand() LIMIT 3"); |
| 219 | 219 | $stmt->execute(); |
| 220 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 220 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 221 | 221 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 222 | 222 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 223 | 223 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | <?php |
| 257 | 257 | $stmt = $__db->prepare("SELECT * FROM videos WHERE author = 'bhief' ORDER BY rand() LIMIT 1"); |
| 258 | 258 | $stmt->execute(); |
| 259 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 259 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 260 | 260 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 261 | 261 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 262 | 262 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | <?php |
| 294 | 294 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Music' ORDER BY rand() LIMIT 2"); |
| 295 | 295 | $stmt->execute(); |
| 296 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 296 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 297 | 297 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 298 | 298 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 299 | 299 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | <?php |
| 333 | 333 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 3"); |
| 334 | 334 | $stmt->execute(); |
| 335 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 335 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 336 | 336 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 337 | 337 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 338 | 338 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | <?php |
| 372 | 372 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Gaming' ORDER BY rand() LIMIT 2"); |
| 373 | 373 | $stmt->execute(); |
| 374 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 374 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 375 | 375 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 376 | 376 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 377 | 377 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -379,19 +379,19 @@ discard block |
||
| 379 | 379 | $video['title'] = htmlspecialchars($video['title']); |
| 380 | 380 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
| 381 | 381 | ?> |
| 382 | - <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 382 | + <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 383 | 383 | <div class="lohp-media-object"> |
| 384 | - <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 385 | - <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 384 | + <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 385 | + <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 386 | 386 | </span> <img class="yt-uix-button-arrow" src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" title=""> |
| 387 | 387 | </button> |
| 388 | 388 | </a> |
| 389 | 389 | </div> |
| 390 | 390 | <div class="lohp-vertical-shelf-item-content lohp-media-object-content"> |
| 391 | - <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 391 | + <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 392 | 392 | <div class="lohp-video-metadata attached"> |
| 393 | 393 | <span class="content-uploader"> |
| 394 | - <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 394 | + <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 395 | 395 | </span> |
| 396 | 396 | </div> |
| 397 | 397 | </div> |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | <?php |
| 408 | 408 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Music' ORDER BY rand() LIMIT 4"); |
| 409 | 409 | $stmt->execute(); |
| 410 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 410 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 411 | 411 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 412 | 412 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 413 | 413 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -415,19 +415,19 @@ discard block |
||
| 415 | 415 | $video['title'] = htmlspecialchars($video['title']); |
| 416 | 416 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
| 417 | 417 | ?> |
| 418 | - <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 418 | + <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 419 | 419 | <div class="lohp-media-object"> |
| 420 | - <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 421 | - <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 420 | + <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 421 | + <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 422 | 422 | </span> <img class="yt-uix-button-arrow" src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" title=""> |
| 423 | 423 | </button> |
| 424 | 424 | </a> |
| 425 | 425 | </div> |
| 426 | 426 | <div class="lohp-vertical-shelf-item-content lohp-media-object-content"> |
| 427 | - <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 427 | + <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 428 | 428 | <div class="lohp-video-metadata attached"> |
| 429 | 429 | <span class="content-uploader"> |
| 430 | - <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 430 | + <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 431 | 431 | </span> |
| 432 | 432 | </div> |
| 433 | 433 | </div> |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | <?php |
| 444 | 444 | $stmt = $__db->prepare("SELECT * FROM videos WHERE category = 'Trending' ORDER BY rand() LIMIT 4"); |
| 445 | 445 | $stmt->execute(); |
| 446 | - while($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 446 | + while ($video = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 447 | 447 | $video['age'] = $__time_h->time_elapsed_string($video['publish']); |
| 448 | 448 | $video['duration'] = $__time_h->timestamp($video['duration']); |
| 449 | 449 | $video['views'] = $__video_h->fetch_video_views($video['rid']); |
@@ -451,19 +451,19 @@ discard block |
||
| 451 | 451 | $video['title'] = htmlspecialchars($video['title']); |
| 452 | 452 | $video['description'] = $__video_h->shorten_description($video['description'], 50); |
| 453 | 453 | ?> |
| 454 | - <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 454 | + <div class="lohp-vertical-shelf-item context-data-item" data-context-item-id="<?php echo $video['rid']; ?>" data-context-item-type="video" data-context-item-title="<?php echo $video['title']; ?>" data-context-item-views="303 views" data-context-item-user="<?php echo $video['author']; ?>" data-context-item-time="<?php echo $video['duration']; ?>"> |
|
| 455 | 455 | <div class="lohp-media-object"> |
| 456 | - <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 457 | - <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 456 | + <a href="/watch?v=<?php echo $video['rid']; ?>" class="ux-thumb-wrap yt-uix-sessionlink yt-uix-contextlink contains-addto " data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo"><span class="video-thumb ux-thumb yt-thumb-default-64 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb="/dynamic/thumbs/<?php echo $video['thumbnail']; ?>" width="64"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $video['duration']; ?></span> |
|
| 457 | + <button onclick=";return false;" type="button" class="addto-button video-actions spf-nolink addto-watch-later-button-sign-in yt-uix-button yt-uix-button-default yt-uix-button-short yt-uix-tooltip" title="Watch Later" data-button-menu-id="shared-addto-watch-later-login" data-video-ids="<?php echo $video['rid']; ?>" role="button"><span class="yt-uix-button-content"> <img src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Watch Later"> |
|
| 458 | 458 | </span> <img class="yt-uix-button-arrow" src="//s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="" title=""> |
| 459 | 459 | </button> |
| 460 | 460 | </a> |
| 461 | 461 | </div> |
| 462 | 462 | <div class="lohp-vertical-shelf-item-content lohp-media-object-content"> |
| 463 | - <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 463 | + <a class="lohp-video-link max-line-3 yt-uix-sessionlink" data-sessionlink="ved=CCsQzx4oAA&ei=7pFAUZzAG52shAGGr4DACw&feature=g-logo" href="/watch?v=<?php echo $video['rid']; ?>" title="<?php echo $video['title']; ?>"><?php echo $video['title']; ?></a> |
|
| 464 | 464 | <div class="lohp-video-metadata attached"> |
| 465 | 465 | <span class="content-uploader"> |
| 466 | - <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 466 | + <span class="username-prepend">by</span> <a href="/user/<?php echo $video['author']; ?>" class="yt-uix-sessionlink yt-user-name " data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw" dir="ltr"><?php echo $video['author']; ?></a> |
|
| 467 | 467 | </span> |
| 468 | 468 | </div> |
| 469 | 469 | </div> |
@@ -103,8 +103,8 @@ discard block |
||
| 103 | 103 | <div class="guide-recommendations-list"> |
| 104 | 104 | <div class="guide-channels-content"> |
| 105 | 105 | <ul class="guide-channels-list guide-item-container yt-uix-scroller filter-has-matches"> |
| 106 | - <?php if(!isset($_SESSION['siteusername'])) { ?> |
|
| 107 | - <?php foreach($__server->featured_channels as $channel) { ?> |
|
| 106 | + <?php if (!isset($_SESSION['siteusername'])) { ?> |
|
| 107 | + <?php foreach ($__server->featured_channels as $channel) { ?> |
|
| 108 | 108 | <li class="guide-channel"> |
| 109 | 109 | <a class="guide-item yt-uix-sessionlink narrow-item" href="/feed/UCF1cWZk-kVBrN9AM_ey7qdQ" title="<?php echo htmlspecialchars($channel); ?>" data-channel-id="UCF1cWZk-kVBrN9AM_ey7qdQ" data-featured="1" data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw&feature=g-featured"> |
| 110 | 110 | <span class="thumb"><span class="video-thumb ux-thumb yt-thumb-square-18 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb-manual="1" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($channel); ?>" data-group-key="guide-channel-thumbs" width="18"><span class="vertical-align"></span></span></span></span></span> |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $stmt = $__db->prepare("SELECT * FROM subscribers WHERE sender = :username ORDER BY id DESC LIMIT 20"); |
| 119 | 119 | $stmt->bindParam(":username", $_SESSION['siteusername']); |
| 120 | 120 | $stmt->execute(); |
| 121 | - while($channel = $stmt->fetch(PDO::FETCH_ASSOC)) { $channel = $channel['reciever']; ?> |
|
| 121 | + while ($channel = $stmt->fetch(PDO::FETCH_ASSOC)) { $channel = $channel['reciever']; ?> |
|
| 122 | 122 | <li class="guide-channel"> |
| 123 | 123 | <a class="guide-item yt-uix-sessionlink narrow-item" href="/feed/UCF1cWZk-kVBrN9AM_ey7qdQ" title="<?php echo htmlspecialchars($channel); ?>" data-channel-id="UCF1cWZk-kVBrN9AM_ey7qdQ" data-featured="1" data-sessionlink="ei=7pFAUZzAG52shAGGr4DACw&feature=g-featured"> |
| 124 | 124 | <span class="thumb"><span class="video-thumb ux-thumb yt-thumb-square-18 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yts/img/pixel-vfl3z5WfW.gif" alt="Thumbnail" data-thumb-manual="1" data-thumb="/dynamic/pfp/<?php echo $__user_h->fetch_pfp($channel); ?>" data-group-key="guide-channel-thumbs" width="18"><span class="vertical-align"></span></span></span></span></span> |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | |
| 39 | - if($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['password'] && $_POST['username']) { |
|
| 39 | + if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['password'] && $_POST['username']) { |
|
| 40 | 40 | $request = (object) [ |
| 41 | 41 | "username" => $_POST['username'], |
| 42 | 42 | "password" => $_POST['password'], |
@@ -56,30 +56,30 @@ discard block |
||
| 56 | 56 | $stmt->bindParam(":ip", $_SERVER["HTTP_CF_CONNECTING_IP"]); |
| 57 | 57 | $stmt->execute(); |
| 58 | 58 | |
| 59 | - while($ip = $stmt->fetch(PDO::FETCH_ASSOC)) { $request->error->message = "You cannot make alt accounts."; $request->error->status = ""; } |
|
| 59 | + while ($ip = $stmt->fetch(PDO::FETCH_ASSOC)) { $request->error->message = "You cannot make alt accounts."; $request->error->status = ""; } |
|
| 60 | 60 | |
| 61 | 61 | if (!filter_var($request->email, FILTER_VALIDATE_EMAIL)) |
| 62 | - { $request->error->message = "Your email is invalid!"; $request->error->status = ""; } |
|
| 63 | - if(strlen($request->username) > 21) |
|
| 62 | + { $request->error->message = "Your email is invalid!"; $request->error->status = ""; } |
|
| 63 | + if (strlen($request->username) > 21) |
|
| 64 | 64 | { $request->error->message = "Your username must be shorter than 20 characters."; $request->error->status = ""; } |
| 65 | - if(strlen($request->password) < 8) |
|
| 65 | + if (strlen($request->password) < 8) |
|
| 66 | 66 | { $request->error->message = "Your password must at least be 8 characters long."; $request->error->status = ""; } |
| 67 | - if(!preg_match('/[A-Za-z].*[0-9]|[0-9].*[A-Za-z]/', $request->password)) |
|
| 67 | + if (!preg_match('/[A-Za-z].*[0-9]|[0-9].*[A-Za-z]/', $request->password)) |
|
| 68 | 68 | { $request->error->message = "Include numbers and letters in your password!"; $request->error->status = ""; } |
| 69 | - if(preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬-]/', $request->username)) |
|
| 69 | + if (preg_match('/[\'^£$%&*()}{@#~?><>,|=_+¬-]/', $request->username)) |
|
| 70 | 70 | { $request->error->message = "Your username cannot contain any special characters!"; $request->error->status = ""; } |
| 71 | - if(!preg_match('/^\S+\w\S{1,}/', $request->username)) |
|
| 71 | + if (!preg_match('/^\S+\w\S{1,}/', $request->username)) |
|
| 72 | 72 | { $request->error->message = "Your username cannot contain any special characters!"; $request->error->status = ""; } |
| 73 | - if(empty(trim($request->username))) |
|
| 73 | + if (empty(trim($request->username))) |
|
| 74 | 74 | { $request->error->message = "Your username cannot be empty!"; $request->error->status = ""; } |
| 75 | 75 | |
| 76 | 76 | $stmt = $__db->prepare("SELECT username FROM users WHERE username = lower(:username)"); |
| 77 | 77 | $stmt->bindParam(":username", $request->username); |
| 78 | 78 | $stmt->execute(); |
| 79 | - if($stmt->rowCount()) |
|
| 79 | + if ($stmt->rowCount()) |
|
| 80 | 80 | { $request->error->message = "There's already a user with that same username!"; $request->error->status = ""; } |
| 81 | 81 | |
| 82 | - if($request->error->status == "OK") { |
|
| 82 | + if ($request->error->status == "OK") { |
|
| 83 | 83 | $stmt = $__db->prepare("INSERT INTO users (username, email, password) VALUES (:username, :email, :password)"); |
| 84 | 84 | $stmt->bindParam(":username", $request->username); |
| 85 | 85 | $stmt->bindParam(":email", $request->email); |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | <?php $__db_h = new db_helper(); ?> |
| 12 | 12 | <?php $__time_h = new time_helper(); ?> |
| 13 | 13 | <?php |
| 14 | - if(!isset($_SESSION['siteusername'])) { die(); } |
|
| 15 | - if(!$__user_h->if_admin($_SESSION['siteusername'])) { die(); } |
|
| 14 | + if (!isset($_SESSION['siteusername'])) { die(); } |
|
| 15 | + if (!$__user_h->if_admin($_SESSION['siteusername'])) { die(); } |
|
| 16 | 16 | |
| 17 | 17 | $request = (object) [ |
| 18 | 18 | "video" => $_GET['v'], |
@@ -16,29 +16,29 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | $results_per_page = 12; |
| 18 | 18 | $number_of_result = $stmt->rowCount(); |
| 19 | - $number_of_page = ceil ($number_of_result / $results_per_page); |
|
| 19 | + $number_of_page = ceil($number_of_result/$results_per_page); |
|
| 20 | 20 | |
| 21 | - if (!isset ($_GET['page']) ) { |
|
| 21 | + if (!isset ($_GET['page'])) { |
|
| 22 | 22 | $page = 1; |
| 23 | 23 | } else { |
| 24 | - $page = (int)$_GET['page']; |
|
| 24 | + $page = (int) $_GET['page']; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - $page_first_result = ($page - 1) * $results_per_page; |
|
| 27 | + $page_first_result = ($page - 1)*$results_per_page; |
|
| 28 | 28 | |
| 29 | - if($_GET['filter'] == "notification") { |
|
| 29 | + if ($_GET['filter'] == "notification") { |
|
| 30 | 30 | $stmt6 = $__db->prepare("SELECT * FROM pms WHERE touser = :search AND type = 'nt' AND readed = 'y' ORDER BY id DESC LIMIT :pfirst, :pper"); |
| 31 | 31 | $stmt6->bindParam(":search", $search); |
| 32 | 32 | $stmt6->bindParam(":pfirst", $page_first_result); |
| 33 | 33 | $stmt6->bindParam(":pper", $results_per_page); |
| 34 | 34 | $stmt6->execute(); |
| 35 | - } else if($_GET['filter'] == "sent") { |
|
| 35 | + } else if ($_GET['filter'] == "sent") { |
|
| 36 | 36 | $stmt6 = $__db->prepare("SELECT * FROM pms WHERE owner = :search AND readed = 'y' ORDER BY id DESC LIMIT :pfirst, :pper"); |
| 37 | 37 | $stmt6->bindParam(":search", $search); |
| 38 | 38 | $stmt6->bindParam(":pfirst", $page_first_result); |
| 39 | 39 | $stmt6->bindParam(":pper", $results_per_page); |
| 40 | 40 | $stmt6->execute(); |
| 41 | - } else if($_GET['filter'] == "pm") { |
|
| 41 | + } else if ($_GET['filter'] == "pm") { |
|
| 42 | 42 | $stmt6 = $__db->prepare("SELECT * FROM pms WHERE touser = :search AND type = 'nm' AND readed = 'y' ORDER BY id DESC LIMIT :pfirst, :pper"); |
| 43 | 43 | $stmt6->bindParam(":search", $search); |
| 44 | 44 | $stmt6->bindParam(":pfirst", $page_first_result); |
@@ -67,8 +67,8 @@ discard block |
||
| 67 | 67 | </tr> |
| 68 | 68 | |
| 69 | 69 | <?php |
| 70 | - while($inbox = $stmt6->fetch(PDO::FETCH_ASSOC)) { |
|
| 71 | - if($__video_h->video_exists($inbox['video_attribute'])) { |
|
| 70 | + while ($inbox = $stmt6->fetch(PDO::FETCH_ASSOC)) { |
|
| 71 | + if ($__video_h->video_exists($inbox['video_attribute'])) { |
|
| 72 | 72 | $inbox['video'] = $__video_h->fetch_video_rid($inbox['video_attribute']); |
| 73 | 73 | $inbox['video_attr_exists'] = true; |
| 74 | 74 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | ?> |
| 83 | 83 | <tr style="margin-top: 5px;" id="videoslist"> |
| 84 | 84 | <!-- |
| 85 | - <?php if($inbox['readed'] == "n") { ?> |
|
| 85 | + <?php if ($inbox['readed'] == "n") { ?> |
|
| 86 | 86 | <a style="position:relative;top:7px;color: white;text-decoration: none;background-color: #d54343;padding: 7px;padding-left: 10px;margin-right: 12px;display: inline;" href="/inbox/"> |
| 87 | 87 | NEW |
| 88 | 88 | </a> |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | <p style="width:475px;"> |
| 114 | 114 | <?php echo $__video_h->shorten_description($inbox['message'], 300, true); ?> |
| 115 | 115 | </p> |
| 116 | - <?php if($inbox['video_attr_exists']) { ?> |
|
| 116 | + <?php if ($inbox['video_attr_exists']) { ?> |
|
| 117 | 117 | <hr> |
| 118 | 118 | <ul> |
| 119 | 119 | <li class="video-list-item "><a href="/watch?v=<?php echo $inbox['video']['rid']; ?>" class="video-list-item-link yt-uix-sessionlink" data-sessionlink="ei=CNLr3rbS3rICFSwSIQodSW397Q%3D%3D&feature=g-sptl%26cid%3Dinp-hs-ytg"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo $inbox['video']['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $inbox['video']['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $inbox['video']['duration']; ?></span> |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | <?php $__user_u = new user_update($__db); ?> |
| 9 | 9 | <?php $__db_h = new db_helper(); ?> |
| 10 | 10 | <?php $__time_h = new time_helper(); ?> |
| 11 | -<?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?> |
|
| 11 | +<?php if (!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?> |
|
| 12 | 12 | <?php |
| 13 | 13 | $__server->page_embeds->page_title = "SubRocks - Personal Messages"; |
| 14 | 14 | $__server->page_embeds->page_description = "SubRocks is a site dedicated to bring back the 2012 layout of YouTube."; |
@@ -178,15 +178,15 @@ discard block |
||
| 178 | 178 | $stmt->execute(); |
| 179 | 179 | |
| 180 | 180 | $number_of_result = $stmt->rowCount(); |
| 181 | - $number_of_page = ceil ($number_of_result / $results_per_page); |
|
| 181 | + $number_of_page = ceil($number_of_result/$results_per_page); |
|
| 182 | 182 | |
| 183 | - if (!isset ($_GET['page']) ) { |
|
| 183 | + if (!isset ($_GET['page'])) { |
|
| 184 | 184 | $page = 1; |
| 185 | 185 | } else { |
| 186 | - $page = (int)$_GET['page']; |
|
| 186 | + $page = (int) $_GET['page']; |
|
| 187 | 187 | } |
| 188 | 188 | |
| 189 | - $page_first_result = ($page - 1) * $results_per_page; |
|
| 189 | + $page_first_result = ($page - 1)*$results_per_page; |
|
| 190 | 190 | |
| 191 | 191 | $stmt6 = $__db->prepare("SELECT * FROM pms WHERE touser = :search AND type = 'nm' AND readed = 'y' ORDER BY id DESC LIMIT :pfirst, :pper"); |
| 192 | 192 | $stmt6->bindParam(":search", $search); |
@@ -211,8 +211,8 @@ discard block |
||
| 211 | 211 | </tr> |
| 212 | 212 | |
| 213 | 213 | <?php |
| 214 | - while($inbox = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 215 | - if($__video_h->video_exists($inbox['video_attribute'])) { |
|
| 214 | + while ($inbox = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 215 | + if ($__video_h->video_exists($inbox['video_attribute'])) { |
|
| 216 | 216 | $inbox['video'] = $__video_h->fetch_video_rid($inbox['video_attribute']); |
| 217 | 217 | $inbox['video_attr_exists'] = true; |
| 218 | 218 | |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | ?> |
| 227 | 227 | <tr style="margin-top: 5px;" id="videoslist"> |
| 228 | 228 | <!-- |
| 229 | - <?php if($inbox['readed'] == "n") { ?> |
|
| 229 | + <?php if ($inbox['readed'] == "n") { ?> |
|
| 230 | 230 | <a style="position:relative;top:7px;color: white;text-decoration: none;background-color: #d54343;padding: 7px;padding-left: 10px;margin-right: 12px;display: inline;" href="/inbox/"> |
| 231 | 231 | NEW |
| 232 | 232 | </a> |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | <p style="width:475px;"> |
| 258 | 258 | <?php echo $__video_h->shorten_description($inbox['message'], 300, true); ?> |
| 259 | 259 | </p> |
| 260 | - <?php if($inbox['video_attr_exists']) { ?> |
|
| 260 | + <?php if ($inbox['video_attr_exists']) { ?> |
|
| 261 | 261 | <hr> |
| 262 | 262 | <ul> |
| 263 | 263 | <li class="video-list-item "><a href="/watch?v=<?php echo $inbox['video']['rid']; ?>" class="video-list-item-link yt-uix-sessionlink" data-sessionlink="ei=CNLr3rbS3rICFSwSIQodSW397Q%3D%3D&feature=g-sptl%26cid%3Dinp-hs-ytg"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo $inbox['video']['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $inbox['video']['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $inbox['video']['duration']; ?></span> |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | </div> |
| 285 | 285 | </center><br> |
| 286 | 286 | |
| 287 | - <?php for($page = 1; $page<= $number_of_page; $page++) { ?> |
|
| 287 | + <?php for ($page = 1; $page <= $number_of_page; $page++) { ?> |
|
| 288 | 288 | <button class="yt-uix-button yt-uix-button-default" onclick="ajax_fetch(<?php echo $page; ?>)"><?php echo $page; ?></button> |
| 289 | 289 | <?php } ?> |
| 290 | 290 | |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | </script> |
| 309 | 309 | |
| 310 | 310 | <?php |
| 311 | - if($stmt6->rowCount() == 0) { echo " |
|
| 311 | + if ($stmt6->rowCount() == 0) { echo " |
|
| 312 | 312 | You currently have no personal messages in your inbox. |
| 313 | 313 | "; |
| 314 | 314 | } ?> |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | $__server->page_embeds->page_image = "/yt/imgbin/full-size-logo.png"; |
| 15 | 15 | $__server->page_embeds->page_url = "https://subrock.rocks/"; |
| 16 | 16 | ?> |
| 17 | -<?php if(!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?> |
|
| 17 | +<?php if (!isset($_SESSION['siteusername'])) { header("Location: /sign_in"); } ?> |
|
| 18 | 18 | <!DOCTYPE html> |
| 19 | 19 | <html dir="ltr"> |
| 20 | 20 | <head> |
@@ -178,15 +178,15 @@ discard block |
||
| 178 | 178 | $stmt->execute(); |
| 179 | 179 | |
| 180 | 180 | $number_of_result = $stmt->rowCount(); |
| 181 | - $number_of_page = ceil ($number_of_result / $results_per_page); |
|
| 181 | + $number_of_page = ceil($number_of_result/$results_per_page); |
|
| 182 | 182 | |
| 183 | - if (!isset ($_GET['page']) ) { |
|
| 183 | + if (!isset ($_GET['page'])) { |
|
| 184 | 184 | $page = 1; |
| 185 | 185 | } else { |
| 186 | - $page = (int)$_GET['page']; |
|
| 186 | + $page = (int) $_GET['page']; |
|
| 187 | 187 | } |
| 188 | 188 | |
| 189 | - $page_first_result = ($page - 1) * $results_per_page; |
|
| 189 | + $page_first_result = ($page - 1)*$results_per_page; |
|
| 190 | 190 | |
| 191 | 191 | $stmt6 = $__db->prepare("SELECT * FROM pms WHERE touser = :search AND type = 'nt' AND readed = 'y' ORDER BY id DESC LIMIT :pfirst, :pper"); |
| 192 | 192 | $stmt6->bindParam(":search", $search); |
@@ -211,8 +211,8 @@ discard block |
||
| 211 | 211 | </tr> |
| 212 | 212 | |
| 213 | 213 | <?php |
| 214 | - while($inbox = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 215 | - if($__video_h->video_exists($inbox['video_attribute'])) { |
|
| 214 | + while ($inbox = $stmt->fetch(PDO::FETCH_ASSOC)) { |
|
| 215 | + if ($__video_h->video_exists($inbox['video_attribute'])) { |
|
| 216 | 216 | $inbox['video'] = $__video_h->fetch_video_rid($inbox['video_attribute']); |
| 217 | 217 | $inbox['video_attr_exists'] = true; |
| 218 | 218 | |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | ?> |
| 227 | 227 | <tr style="margin-top: 5px;" id="videoslist"> |
| 228 | 228 | <!-- |
| 229 | - <?php if($inbox['readed'] == "n") { ?> |
|
| 229 | + <?php if ($inbox['readed'] == "n") { ?> |
|
| 230 | 230 | <a style="position:relative;top:7px;color: white;text-decoration: none;background-color: #d54343;padding: 7px;padding-left: 10px;margin-right: 12px;display: inline;" href="/inbox/"> |
| 231 | 231 | NEW |
| 232 | 232 | </a> |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | <p style="width:475px;"> |
| 258 | 258 | <?php echo $__video_h->shorten_description($inbox['message'], 300, true); ?> |
| 259 | 259 | </p> |
| 260 | - <?php if($inbox['video_attr_exists']) { ?> |
|
| 260 | + <?php if ($inbox['video_attr_exists']) { ?> |
|
| 261 | 261 | <hr> |
| 262 | 262 | <ul> |
| 263 | 263 | <li class="video-list-item "><a href="/watch?v=<?php echo $inbox['video']['rid']; ?>" class="video-list-item-link yt-uix-sessionlink" data-sessionlink="ei=CNLr3rbS3rICFSwSIQodSW397Q%3D%3D&feature=g-sptl%26cid%3Dinp-hs-ytg"><span class="ux-thumb-wrap contains-addto "><span class="video-thumb ux-thumb yt-thumb-default-120 "><span class="yt-thumb-clip"><span class="yt-thumb-clip-inner"><img src="http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif" alt="<?php echo $inbox['video']['title']; ?>" data-thumb="/dynamic/thumbs/<?php echo $inbox['video']['thumbnail']; ?>" width="120"><span class="vertical-align"></span></span></span></span><span class="video-time"><?php echo $inbox['video']['duration']; ?></span> |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | </div> |
| 285 | 285 | </center><br> |
| 286 | 286 | |
| 287 | - <?php for($page = 1; $page<= $number_of_page; $page++) { ?> |
|
| 287 | + <?php for ($page = 1; $page <= $number_of_page; $page++) { ?> |
|
| 288 | 288 | <button class="yt-uix-button yt-uix-button-default" onclick="ajax_fetch(<?php echo $page; ?>)"><?php echo $page; ?></button> |
| 289 | 289 | <?php } ?> |
| 290 | 290 | |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | </script> |
| 309 | 309 | |
| 310 | 310 | <?php |
| 311 | - if($stmt6->rowCount() == 0) { echo " |
|
| 311 | + if ($stmt6->rowCount() == 0) { echo " |
|
| 312 | 312 | You currently have no notifications in your inbox. |
| 313 | 313 | "; |
| 314 | 314 | } ?> |