How to Disable copy paste in your web

tambahkan script berikut: <script type=”text/JavaScript”>// <![CDATA[ <br />//courtesy of<br />function killCopy(e){<br />return false<br />}<br />function reEnable(){<br />return true<br />}<br />document.onselectstart=new Function (“return false”)<br />if (window.sidebar){<br />document.onmousedown=killCopy<br />document.onclick=reEnable<br />}<br /> // ]]></script>

Categories PHP

How to hide html source code & disable right click

tambahkan script berikut : <p>&nbsp;</p> <p> <script type=”text/javascript” language=”JavaScript”>// <![CDATA[ var message=”Function Disabled!”; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function(“alert(message);return false”) // ]]></script> </p>

Categories PHP

MySQL is running but PID file could not be found di cpanel

solusi : 1) SSH server as a root user 2) Create directory /var/run/mysql mkdir /var/run/mysql 3) Create  a file with name as touch 4) Change its ownership and group to  mysql:mysql chown mysql:mysql 5) Restart MySQL service and you will see no more errors

solusi “sda must have a gpt disk label”

Problem “sda must have a gpt disk label ” Solusi : 1. pas installasi pencet CTRL+ALT+F2 2. nanti akan di bawa kehalaman root lalu lakukan command berikut : # parted parted > # print /dev/sda => check partition type here , it should be set as something different from ‘gpt’ parted > # mklabel gpt … Read more