ב הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותشسdggרות הל555ה התafhgfh
במסgרות ה gh//شی הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותהתנדaghhhhו12ין יעל, המעציfghfghfע
/
www-data
/
sites
/
naresh-newwordpress
/
wp-content
/
plugins
/
horizontal-scrolling-announcements
/
classes
/
Upload FileeE
HOME
<?php // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } class hsas_cls_intermediate { public static function hsas_announcements() { global $wpdb; $current_page = isset($_GET['ac']) ? $_GET['ac'] : ''; switch($current_page) { case 'add': require_once(HSAS_DIR.'content'.DIRECTORY_SEPARATOR.'content-add.php'); break; case 'edit': require_once(HSAS_DIR.'content'.DIRECTORY_SEPARATOR.'content-edit.php'); break; case 'help': require_once(HSAS_DIR.'content'.DIRECTORY_SEPARATOR.'content-help.php'); break; case 'perm': require_once(HSAS_DIR.'content'.DIRECTORY_SEPARATOR.'content-perm.php'); break; default: require_once(HSAS_DIR.'content'.DIRECTORY_SEPARATOR.'content-show.php'); break; } } } class hsas_cls_common { public static function hsas_generate_guid($length = 30) { $guid = rand(); $length = 6; $rand1 = substr(str_shuffle("abcdefghijklmnopqrstuvwxyz"), 0, $length); $rand2 = substr(str_shuffle("abcdefghijklmnopqrstuvwxyz"), 0, $length); $rand3 = substr(str_shuffle("abcdefghijklmnopqrstuvwxyz"), 0, $length); $rand4 = substr(str_shuffle("abcdefghijklmnopqrstuvwxyz"), 0, $length); $rand5 = substr(str_shuffle("abcdefghijklmnopqrstuvwxyz"), 0, $length); $rand6 = substr(str_shuffle("abcdefghijklmnopqrstuvwxyz"), 0, $length); $guid = $rand1."-".$rand2."-".$rand3."-".$rand4."-".$rand5; return $guid; } public static function hsas_special_letters() { $string = "/[\'^$%&*()}{@#~?><>,|=_+\"]/"; return $string; } public static function hsas_convert_time($am) { $string = ""; if ($am == 12) { echo $am . ":00 PM (Noon)"; } elseif ($am == 24) { echo "11:59 PM"; } elseif ($am == 0) { echo "12:01 AM"; } elseif ($am > 12) { echo $am - 12 . ":00 PM"; } else { echo $am . ":00 AM"; } return $string; } } class hsas_cls_security { public static function hsas_check_number($value) { if(!is_numeric($value)) { die('<p>Security check failed. Are you sure you want to do this?</p>'); } } public static function hsas_check_guid($value) { $value_length1 = strlen($value); $value_noslash = str_replace("-", "", $value); $value_length2 = strlen($value_noslash); if( $value_length1 != 34 || $value_length2 != 30) { die('<p>Security check failed. Are you sure you want to do this?</p>'); } if (preg_match('/[^a-z]/', $value_noslash)) { die('<p>Security check failed. Are you sure you want to do this?</p>'); } } }