Submit
Path:
~
/
home
/
getwphos
/
www
/
shellfish
/
wp-content
/
plugins
/
templaza-framework
/
framework
/
libraries
/
helper
/
File Content:
info.php
<?php namespace TemPlazaFramework\Helpers; defined( 'ABSPATH' ) || exit; if(!class_exists('TemPlazaFramework\Helpers\Info')){ class Info{ protected $info = array( 'success' => false, 'message' => '', ); public function set($key, $value) { if($key && $value){ $this -> info[$key] = $value; } } public function get($key) { if(isset($this -> info[$key])){ return $this -> info[$key]; } } public function remove($key){ if(isset($this -> info[$key])){ unset($this -> info[$key]); } } public function set_message($message = '', $error = true) { if($message){ $this -> set('success', !$error); $this -> set('message', $message); } } public function reset(){ $this -> info = array( 'success' => false, 'message' => '', ); } public function output($reset = false){ if(!count($this -> info)){ return wp_json_encode(array()); } $info = wp_json_encode($this -> info); if($reset) { $this->reset(); } return $info; } } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
scssphp
---
0755
fieldhelper.php
9709 bytes
0644
files.php
3517 bytes
0644
helperlicense.php
4057 bytes
0644
http.php
657 bytes
0644
info.php
1424 bytes
0644
N4ST4R_ID | Naxtarrr