September 20, 2012

Mouse click activity, mousedown, mouseup and click

Mouse click activity

Mouse click activity, mousedown, mouseup and click Javascript related event handlers like onmousedown, onmouseup and onclick are the subdivisions of an event. These events are triggered by mouse click which is subdivided into the following: onmousedown onmouseup onclick To understand this activity we have to guess that when we press mouse button “left click” that […]

September 18, 2012

Balls Collisions Detection

Balls Collisions Detection

September 17, 2012

Cross-site request forgery (CSRF) Updated

Cross-site request forgery (CSRF) Updated public function csrf_verify() { // If no POST data exists we will set the CSRF cookie if (count($_POST) == 0) { return $this->csrf_set_cookie(); } if((isset($_SERVER[‘HTTP_X_REQUESTED_WITH’]) && $_SERVER[‘HTTP_X_REQUESTED_WITH’] == “XMLHttpRequest”) || isset($_SERVER[‘HTTP_REFERER’])) { if(isset($_SERVER[‘HTTP_REFERER’])) { $parse_url = parse_url($_SERVER[‘HTTP_REFERER’]); if($parse_url[‘host’]!=$_SERVER[‘HTTP_HOST’] && !in_array($parse_url[‘host’], array(‘apps.facebook.com’))) { $this->csrf_show_error(); } else { //echo ‘Safe’; //echo ‘Host […]

September 14, 2012

Cross-site request forgery (CSRF) – Ajax Fix

Cross-site request forgery (CSRF) – Ajax Fix CSRF Security Class is great practice which is not really in practice commonly. The reason is workload of the scope of the project. Developers mostly don’t care about the form class of the CI and 20% or less people use form helper to generate 100% forms in their […]

Cross Domain Form Posted – PHP Security Fix

Cross Domain Form Posted – PHP Security Fix We the developers mostly rely on the ready made frameworks now a days and ignoring the common sense security fixes. Everybody knows that when a spammer will attack to your site so he will not do such a hectic activity that he will come to your form […]

September 7, 2012

What does mean by internal server error?

What does mean by internal server error? error due to the reasons which are directly associated to your OS or Hardware constraints it can be some permissions issue memory limit issue version(s) related issue anything which is required to run your script properly but directly to your server on which your website is hosted