Guest User

phpVibe_mobile_config

a guest
Mar 1st, 2012
571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.37 KB | None | 0 0
  1. <?php /* -- Config settings (Edit as needed)-- */
  2.  
  3. // Please keep ending slash on site url
  4. $site_url = "http://phpvibe.mobi/";
  5. //used in breadcumps menu
  6. $small_title ="phpVibe.Mobi";
  7. //First page and global added to seo titles
  8. $seo_title ="phpVibe.Mobi";
  9. $seo_desc = "A Youtube mobile browser powered by phpVibe";
  10. //Facebook page/profile link
  11. $fb = "http://www.facebook.com/videosoft";
  12. $fb_txt = "Fan Us";
  13.  
  14. //Twitter link
  15. $tw = "https://twitter.com/phpRevolution";
  16. $tw_txt = "Follow";
  17.  
  18. //Twitter link
  19. // could be $rss = "http://feedburner.com/your_id/";
  20. $rss = $site_url."rss.php";
  21. $rss_txt = "Feed";
  22. //Up button
  23. $up_txt = "Up";
  24.  
  25. //global number of videos per page
  26. $nb_display = 10;
  27. //global number of videos returned from Youtube (used in pagination. your choice!)
  28. $nb_total = 420;
  29.  
  30.  
  31. //Enable albums? true/false
  32. $enable_albums = true;
  33. //Pic a featured album on homepage! true/false
  34. $show_featured = true;
  35. //Folder name for the album
  36. $featuredalbum = "Celebrities";
  37.  
  38. /* -- Language Settings (Translate as needed)-- */
  39.  
  40.  
  41.     $lang['welcome']          = 'Hi! Browse videos via mobile';
  42.     $lang['browsechannels']          = 'Browse Channels';
  43.     $lang['new']          = 'New';
  44.     $lang['hot']          = 'Hot!';
  45.     $lang['today']          = 'today';
  46.     $lang['this_week']          = 'this week';
  47.     $lang['this_month']          = 'this month';
  48.     $lang['all_time']          = 'all time';
  49.     $lang['video']           = 'Video';
  50.     $lang['channels']          = 'Channels';
  51.     $lang['channel']          = 'Channel';
  52.     $lang['showmore']          = 'Show more';
  53.     $lang['relatedvideos']          = 'Related Videos';
  54.     $lang['most_recent']          = 'New Videos';
  55.     $lang['top_rated']          = 'Top rated videos';
  56.     $lang['most_viewed']          = 'Most viewed videos';
  57.     $lang['top_favorites']          = 'Most voted videos';
  58.     $lang['most_popular']          = 'Trending videos';
  59.     $lang['most_discussed']          = 'Most viral videos';
  60.    
  61.     //Images lang (if images are enabled)
  62.     $lang['pictures']          = 'Images';
  63.     $lang['allalbums']          = 'All albums';
  64.    
  65.    
  66. /* -- Global functions and variables --
  67. This are php FUNCTIONS (Please edit only of you know what you are doing)  */
  68. //variables
  69. //please leave blank this values
  70. $q = "";
  71. $username = "";
  72. $feed = "";
  73. $time = "";
  74. //functions
  75.  
  76. function sec2hms($sec, $padHours = false) {
  77.  
  78.     $hms = "";
  79.    
  80.     // there are 3600 seconds in an hour, so if we
  81.     // divide total seconds by 3600 and throw away
  82.     // the remainder, we've got the number of hours
  83.     $hours = intval(intval($sec) / 3600);
  84.  if ($hours > 0):
  85.     // add to $hms, with a leading 0 if asked for
  86.     $hms .= ($padHours)
  87.           ? str_pad($hours, 2, "0", STR_PAD_LEFT). ':'
  88.           : $hours. ':';
  89.      endif;
  90.     // dividing the total seconds by 60 will give us
  91.     // the number of minutes, but we're interested in
  92.     // minutes past the hour: to get that, we need to
  93.     // divide by 60 again and keep the remainder
  94.     $minutes = intval(($sec / 60) % 60);
  95.  
  96.     // then add to $hms (with a leading 0 if needed)
  97.     $hms .= str_pad($minutes, 2, "0", STR_PAD_LEFT). ':';
  98.  
  99.     // seconds are simple - just divide the total
  100.     // seconds by 60 and keep the remainder
  101.     $seconds = intval($sec % 60);
  102.  
  103.     // add to $hms, again with a leading 0 if needed
  104.     $hms .= str_pad($seconds, 2, "0", STR_PAD_LEFT);
  105.  
  106.     return $hms;
  107. }
  108.  
  109. ?>
Advertisement
Add Comment
Please, Sign In to add comment