Changeset 1129320
- Timestamp:
- 04/07/2015 07:46:54 AM (11 years ago)
- Location:
- contus-video-gallery
- Files:
-
- 2 edited
-
tags/2.8/hdflvvideoshare.php (modified) (3 diffs)
-
trunk/hdflvvideoshare.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contus-video-gallery/tags/2.8/hdflvvideoshare.php
r1096837 r1129320 337 337 function videohitcount_function() { 338 338 global $wpdb; 339 $vid = $_GET['vid'];339 $vid = intval($_GET['vid']); 340 340 $hitList = $wpdb->get_row( 'SELECT * FROM ' . $wpdb->prefix . 'hdflvvideoshare WHERE vid="' . intval( $vid ) . '"' ); 341 341 $hitCount = $hitList->hitcount; … … 353 353 function ratecount_function() { 354 354 global $wpdb; 355 $vid = $_GET['vid'];356 $get_rate = $_GET['rate'];355 $vid = intval($_GET['vid']); 356 $get_rate = intval($_GET['rate']); 357 357 if ( ! empty( $get_rate ) ) { 358 358 … … 378 378 function google_adsense(){ 379 379 global $wpdb; 380 $vid = $_GET['vid'];380 $vid = intval($_GET['vid']); 381 381 $google_adsense_id = $wpdb->get_var('SELECT google_adsense_value FROM '.$wpdb->prefix.'hdflvvideoshare WHERE vid ='.$vid); 382 382 $query = $wpdb->get_var('SELECT googleadsense_details FROM '.$wpdb->prefix.'hdflvvideoshare_vgoogleadsense WHERE id='.$google_adsense_id); -
contus-video-gallery/trunk/hdflvvideoshare.php
r1096837 r1129320 337 337 function videohitcount_function() { 338 338 global $wpdb; 339 $vid = $_GET['vid'];339 $vid = intval($_GET['vid']); 340 340 $hitList = $wpdb->get_row( 'SELECT * FROM ' . $wpdb->prefix . 'hdflvvideoshare WHERE vid="' . intval( $vid ) . '"' ); 341 341 $hitCount = $hitList->hitcount; … … 353 353 function ratecount_function() { 354 354 global $wpdb; 355 $vid = $_GET['vid'];356 $get_rate = $_GET['rate'];355 $vid = intval($_GET['vid']); 356 $get_rate = intval($_GET['rate']); 357 357 if ( ! empty( $get_rate ) ) { 358 358 … … 378 378 function google_adsense(){ 379 379 global $wpdb; 380 $vid = $_GET['vid'];380 $vid = intval($_GET['vid']); 381 381 $google_adsense_id = $wpdb->get_var('SELECT google_adsense_value FROM '.$wpdb->prefix.'hdflvvideoshare WHERE vid ='.$vid); 382 382 $query = $wpdb->get_var('SELECT googleadsense_details FROM '.$wpdb->prefix.'hdflvvideoshare_vgoogleadsense WHERE id='.$google_adsense_id);
Note: See TracChangeset
for help on using the changeset viewer.