Showing posts with label YT GRAB. Show all posts
Showing posts with label YT GRAB. Show all posts

Friday, November 6, 2015

Verify Google Webmaster, Alexa dan Ganti Template pada YT GRAB

//verify google web master
$google = array("honocoroko.com"=>"MxDy91MGzFWvfvlxXSS8068OxDNW5U9nJEpBjTwKXZ4");
if (!empty($google[$_SERVER['SERVER_NAME']]))
{
echo '<meta name="google-site-verification" content="'.$google[$_SERVER['SERVER_NAME']].'"/>';
}
//verify alexa
$alexa = array("honocoroko.com"=>"cY-JMbLyBvWsmZ53n1RQaRhiXoE");
if (!empty($alexa[$_SERVER['SERVER_NAME']]))
{
echo '<meta name="alexaVerifyID" content="'.$alexa[$_SERVER['SERVER_NAME']].'"/>';
}
//ganti template, template mulai dari theme1.min.css sampai theme17.min.css
$template = array("honocoroko.com"=>"theme2.min.css");
if (!empty($template[$_SERVER['SERVER_NAME']]))
{
echo '<link href="/css/'.$template[$_SERVER['SERVER_NAME']].'" rel="stylesheet">';
}
else
{
echo '<link href="/css/bootstrap.min.css" rel="stylesheet">';
}

Setting Script YT GRAB

$titleweb = "HONOCOROKO.COM";
$keywordutama = "Funny";
//kw dan menu
$keyword = array("Game","Kids","Movie","News", "Health", "2014", "2015");
$cgenerator = "Antechono";
$cauthor = "An Mb";
$cwebauthor = "Ahmad Nurul Mubarok";
$cemail = "blablabla@gmail.com";
$cgeoplacename = "United States";
$cgeoregion = "usa";
//id gplus
$cidgplus = "112480780451307295663";
//verify bing
$cbing = "197375EAA88DB8C2685DE73383357D63";
//ads atas bawah video
$cadas = '
 <!-- Begin BidVertiser code -->
<SCRIPT SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=636417&bid=1605859" TYPE="text/javascript"></SCRIPT>
<!-- End BidVertiser code -->
';
//ads sidebar
$cadassidebar = '
 <!-- Begin BidVertiser code -->
<SCRIPT SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=636417&bid=1605851" TYPE="text/javascript"></SCRIPT>
<!-- End BidVertiser code -->
';
//api yt wajib di ganti : cara mendapatkan api yt
$key = array('AIzaSyC91gbfEuK2huhcJPR8mOAri-E1WC6sNfM','AIzaSyBtyWfRrKFoMmAqfrUtnNy5Q4i24IytErs','AIzaSyC7s5meyQ75hMPXUS-p8Mm5EbJQOg9kk0s','AIzaSyCy2BHh1feLU8qFki_g8v5fjuyPrtwMehw','AIzaSyDPZxhRCubo4-tVcw43NT7jjIncMLuUcfI','AIzaSyDeqwCaCPwdcTzYpP-l8w-Mq5tOBCQjyiM','AIzaSyA7yBCUbhUFlGsbjPn3U_d7DEbAgm3vgE8','AIzaSyBEcZu2ZJemWVy4XjWoD_MjGq0BL6XM5b8','AIzaSyC2TR-arLlvyJZ32rVR4PXBE4XaOP1WrOg','AIzaSyD1KLaPuA3HbzvM6iaqPp2Dp6iAxF8d4M0','AIzaSyCGXhjXlXHVwQUxRHa9L8AKQwBYe-X37s0','AIzaSyBhbxoZUREzQ2ekvxoCTGVauN5KCVTjuvc','AIzaSyDlJynvw2LRuU82l1aS2rb6fH18jelcILY','AIzaSyBpdhnzOGNI_2wo7O-W2pwK9aAhi2bzRz8','AIzaSyCMXO5LQIZMU0Wmm_2-lDPxJTzALCAtqXA');
// lanjut verify google webmaster, alexa dan ganti template

Saturday, October 31, 2015

Memasang YT GRAB pada server APACHE+PHP [Manual]

  • Arahkan domain ke IP VPS / DS / Hosting kamu. 
  • Buat folder di var/www/html/[foldermu]
  • Letakan semua script YT GRAB di [foldermu]
  • Buka file etc/httpd/conf/httpd.conf dan tambahkan script di bawah ini pada file httpd.conf dan letakkan di paling bawah
<VirtualHost *:80>
    ServerAdmin webmaster@honocoroko.com
    DocumentRoot /var/www/html/[foldermu]/
    ServerName www.honocoroko.com
    ServerAlias honocoroko.com www.honocoroko.com
    ErrorLog logs/honocoroko.com-error_log
    CustomLog logs/honocoroko.com-access_log common
</VirtualHost>
  • Buka Terminal
/sbin/service httpd restart

Memasang YT GRAB pada server NGINX+HHVM [Manual]


  • Arahkan domain ke IP VPS / DS / Hosting kamu.
  • Buat folder di var/www/[foldermu]
  • Letakan semua script YT GRAB di [foldermu]
  • Buka folder etc/nginx/site-available/
  • Buat file dan beri nama dengan nama domainmu. contoh : honocoroko.com
  • Letakan Script berikut pada file honocoroko.com
server {
  listen 80;
      server_name honocoroko.com www.honocoroko.com;
    include hhvm.conf;
 
    access_log   /var/log/nginx/access.log;
    error_log    /var/log/nginx/error.log;
   
    root /var/www/[foldermu];
    index index.php;
rewrite ^/([^/.]+)/$ /index.php?page=$1;
rewrite ^/([^/.]+).html$ /index.php?tgl=$1;
rewrite ^/([^/.]+)/([^/.]+)/$ /index.php?page=$1&src=$2;
rewrite ^/([^/.]+)/([^/.]+).html$ /index.php?page=$1&tgl=$2;
rewrite ^/([^/.]+)/([^/.]+)/([^/.]+)/$ /index.php?page=$1&src=$2&tgl=$3;
rewrite ^/([^/.]+)/([^/.]+)/([^/.]+).html$ /index.php?tgl=$1&judul=$2&id=$3;
   
    location / {
        try_files $uri $uri/ /index.php?$args;
    }
}
  • Buka terminal
ln -s /etc/nginx/sites-available/honocoroko.com /etc/nginx/sites-enabled/
service nginx reload