Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- /**
- * Run the license routinoe.
- *
- * @param mixed $argv
- * @return integer
- */
- function license($argv)
- {
- global $LICENSE_SYNC;
- license_setopts($argv);
- $status = 0;
- if ($LICENSE_SYNC) {
- $status += license_sync();
- }
- return $status;
- }
- /**
- * Sync the license with our master server.
- *
- * this function writes a new license file.
- *
- * @return integer
- */
- function license_sync()
- {
- global $CHECK_ONLY;
- if (Ini::is_empty(Ini::IWORX_LICENSE, 'key') === true) {
- $msg = '##LG_LICENSE_NOT_IN_INI##';
- IWorxLog::log($msg);
- echo IW::tr($msg);
- License::writeMessageFile([false, $msg]);
- return 1;
- }
- if ($CHECK_ONLY) {
- $action = 'validate';
- }
- else {
- $action = 'cron';
- }
- if (IWorxUtil::haveRootPrivs()) {
- $gpgbase = Ini::get(Ini::IWORX_DIR, 'base') . '/etc/gpg';
- IWorxFileSys::chown('iworx', $gpgbase, 'iworx', true);
- }
- $result = iworx_sync_license(Ini::get(Ini::IWORX_LICENSE, 'key'), $action, $CHECK_ONLY);
- if ($result[0] !== true) {
- if ($CHECK_ONLY) {
- IWorxLog::log('error checking license: ' . $result[1], IWorxLog::ALERT);
- ....................................................................
- .......................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement