function cloudaddons_upgradecheck($addonids) { $post = array(); foreach ($addonids as $addonid) { $array = cloudaddons_getmd5($addonid); $post[] = 'rid[' . $addonid . ']=' . $array['RevisionID'] . '&sn[' . $addonid . ']=' . $array['SN'] . '&rd[' . $addonid . ']=' . $array['RevisionDateline']; } return cloudaddons_open('&mod=app&ac=validator', implode('&', $post)); }
} elseif ($step == 1) { $packnum = isset($_GET['num']) ? $_GET['num'] : 0; $tmpdir = 'saekv://data/download/' . $_GET['rid']; $end = ''; $md5tmp = 'saekv://data/download/' . $_GET['rid'] . '.md5'; if ($packnum) { list($md5total, $md5s) = unserialize(implode('', @file($md5tmp))); dmkdir($tmpdir, 0777, false); } else { dir_clear($tmpdir); @unlink($md5tmp); dmkdir($tmpdir, 0777, false); $md5total = ''; $md5s = array(); } $data = cloudaddons_open('&mod=app&ac=download&rid=' . $_GET['rid'] . '&packnum=' . $packnum); $_GET['importtxt'] = $data; $array = getimportdata('Discuz! File Pack'); if (!$array['Status']) { list($_cur, $_max) = explode('/', $array['part']); $percent = intval($_cur / $_max * 100); if ($array['type'] != $_GET['type'] || $array['key'] != $_GET['key'] || !$array['files']) { dir_clear($tmpdir); @unlink($md5tmp); cloudaddons_faillog($_GET['rid'], 100); cpmsg('cloudaddons_download_error', '', 'error', array('ErrorCode' => 100)); } foreach ($array['files'] as $file => $data) { $filename = $tmpdir . '/' . $file . '._addons_'; $dirname = dirname($filename); dmkdir($dirname, 0777, false);
function house($addonid = 'house.plugin') { $array = cloudaddons_getmd5($addonid); if (cloudaddons_open('&mod=app&ac=validator&ver=2&addonid=' . $addonid . ($array !== false ? '&rid=' . $array['RevisionID'] . '&sn=' . $array['SN'] . '&rd=' . $array['RevisionDateline'] : '')) === '0') { cpmsg('cloudaddons_genuine_message', '', 'error', array('addonid' => $addonid)); } }
<?php /* * Install Uninstall Upgrade AutoStat System Code 2016020222g11xc1LgxH * This is NOT a freeware, use is subject to license terms * From www.1314study.com */ if (!defined('IN_ADMINCP')) { exit('Access Denied'); } $addonid = $pluginarray['plugin']['identifier'] . '.plugin'; $array = cloudaddons_getmd5($addonid); if (cloudaddons_open('&mod=app&ac=validator&addonid=' . $addonid . ($array !== false ? '&rid=' . $array['RevisionID'] . '&sn=' . $array['SN'] . '&rd=' . $array['RevisionDateline'] : '')) === '0') { cpmsg('cloudaddons_genuine_message', '', 'error', array('addonid' => $addonid)); }