PHP Classes

File: api/ProtectJS.php

Recommend this page to a friend!
  Classes of Ki Shing Yeung   WRASA Security Alarm   api/ProtectJS.php   Download  
File: api/ProtectJS.php
Role: Example script
Content type: text/plain
Description: Example script
Class: WRASA Security Alarm
Detect and prevent robots that crawl sites
Author: By
Last change: Update ProtectJS.php
Date: 6 years ago
Size: 884 bytes
 

Contents

Class file image Download
<?php
/**
 * Protect JavaScript
 *
 * This will be used when you want to protect JavaScript or activate some
 * functions like "Disable Hot Keys Function".
 *
 * @package WRASA
 * @author WRASA Dev Team
 * @copyright Copyright (c) 2016 - 2017, Cloud Design Limited (http://www.cloud-design.hk/)
 * @license http://opensource.org/licenses/MIT MIT License
 * @link http://wrasa.codage.tech
 * @version 1.0.1
 * @filesource
 */

/* Include Files */
require_once dirname(__DIR__).'/core/language/en_lang.php'; // For exit message.
require_once dirname(__DIR__).'/core/Config.php';
require_once
dirname(__DIR__).'/core/libraries/BrowserDetection.php';
require_once
dirname(__DIR__).'/core/libraries/WrasaFunc.php';
require_once
dirname(__DIR__).'/core/libraries/WrasaCore.php';

/* New Wrasa Object */
$wscsa = new WrasaCore;
$wscsa->protect_js($config, $lang);