D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
encodto1
/
bambooinn.in
/
admin
/
Filename :
function.php
back
Copy
<?php function stringModify($action){ $action_title = str_replace("_"," ", $action); return $action_title; } function encryptor($action, $string) { $output = false; $encrypt_method = "AES-256-CBC"; $secret_key = 'Kp Encoders'; $secret_iv = 'kp@123456789'; $key = hash('sha256', $secret_key); $iv = substr(hash('sha256', $secret_iv), 0, 16); if( $action == 'encrypt' ) { $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv); $output = base64_encode($output); } else if( $action == 'decrypt' ) { $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv); } return $output; } function DataCount($table){ global $conn; $table = $table; $query = mysqli_query($conn, "SELECT * FROM $table"); $data=mysqli_num_rows($query); return $data; } ?>