$request_id = intval($text_id); } else { httpinfo(405); exit; } } $m_row = DB::fetch_first("SELECT `Package`, `Version`, `Architecture`, `Filename`, `Tag`, `DownloadTimes`, `Level` FROM `" . DCRM_CON_PREFIX . "Packages` WHERE `ID` = '" . (string) $request_id . "'"); if (!$m_row) { httpinfo(404); } else { $download_path = substr($m_row['Filename'], 1); } if (!empty($download_path)) { if (file_exists($download_path)) { $fake_name = $m_row['Package'] . "_" . $m_row['Version'] . "_" . $m_row['Architecture'] . ".deb"; if (check_commercial_tag($m_row['Tag'])) { if (isset($_SERVER['HTTP_X_UNIQUE_ID'])) { $udid_status = DB::fetch_first("SELECT `Packages`, `Level`, `Downloads` FROM `" . DCRM_CON_PREFIX . "UDID` WHERE `UDID` = '" . $_SERVER['HTTP_X_UNIQUE_ID'] . "' LIMIT 1"); if (!empty($udid_status)) { if (!empty($udid_status['Packages'])) { $udid_packages = TrimArray(explode(',', $udid_status['Packages'])); if (!in_array($m_row['Package'], $udid_packages, true)) { httpinfo(4033); } } else { $udid_level = (int) $udid_status['Level']; $package_level = (int) $m_row['Level']; if ($udid_level <= $package_level) { httpinfo(4033); } }
</p> </label> <label class="detail"> <p id="contact"> <?php echo $author_name; ?> </p> </label> </div> </div> </a> </fieldset> <?php } if (DCRM_DIRECT_DOWN == 1 && !$isCydia && !check_commercial_tag($pkg_assoc['Tag'])) { ?> <fieldset> <a href="<?php echo SITE_URL; ?> debs/<?php echo $_GET['pid']; ?> .deb" id="downloadlink" style="display: none;" target="_blank"> <img class="icon" src="<?php echo SITE_URL; ?> icons/default/packages.png" /> <div> <div>
DB::update(DCRM_CON_PREFIX . 'Packages', array('ScreenShots' => maybe_serialize($screenshots)), array('ID' => $request_id)); } elseif (isset($_GET['action']) && $_GET['action'] == "del" && isset($_POST['image']) && is_numeric($_POST['image']) && !empty($screenshots)) { array_splice($screenshots, (int) $_POST['image'], 1); if (empty($screenshots)) { $screenshots = null; } DB::update(DCRM_CON_PREFIX . 'Packages', array('ScreenShots' => maybe_serialize($screenshots)), array('ID' => $request_id)); } unset($package_info['Multi']); unset($package_info['System_Support']); foreach ($package_info as $m_key => $m_value) { if (!empty($m_value)) { $f_Package .= $m_key . ": " . trim(str_replace("\n", "\n ", $m_value)) . "\n"; } } $protection_status = check_commercial_tag($package_info['Tag']); $package = $package_info['Package']; ?> <div class="alert alert-info"> <?php echo nl2br(htmlspecialchars($f_Package)); ?> </div> <?php } if (empty($screenshots)) { ?> <div class="alert" id="tips"> <?php _e('This package no screenshot.'); ?>
</ol> </div> </div> <br /> <?php $m_array = mysql_fetch_assoc($m_query); if (!$m_array) { $alert = __('No specified item.'); } else { unset($m_array['Multi']); foreach ($m_array as $m_key => $m_value) { if (!empty($m_value)) { $f_Package .= $m_key . ": " . trim(str_replace("\n", "\n ", $m_value)) . "\n"; } } $protection_status = check_commercial_tag($m_array['Tag']); $package = $m_array['Package']; ?> <div class="alert alert-info"> <?php echo nl2br(htmlspecialchars($f_Package)); ?> </div> <?php } $m_query = DB::query("SELECT * FROM `" . DCRM_CON_PREFIX . "ScreenShots` WHERE `PID` = '" . $request_id . "'"); if (!$m_query) { httpinfo(500); exit; } if (DB::affected_rows() <= 0) {
$_POST['System_Support'] = serialize(array('Minimum' => $_POST['Minimum_System_Support'], 'Maxmum' => $_POST['Maxmum_System_Support'])); } else { $_POST['System_Support'] = null; } unset($_POST['Minimum_System_Support']); unset($_POST['Maxmum_System_Support']); DB::update(DCRM_CON_PREFIX . 'Packages', $_POST, array('ID' => $new_id)); echo '<h2>' . __('Update Database') . '</h2><br />'; echo '<h3 class="alert">' . __('The package information edited!') . '<br />' . __('After modify the fields with an asterisk, you must write into package then safely rebuild list.'); echo '<br /><a href="output.php?id=' . $new_id . '">' . __('Write Now') . '</a> <a href="javascript:history.go(-1);">' . __('Back') . '</a></h3>'; } elseif (!empty($_GET['action']) and $_GET['action'] == "advance" and !empty($_GET['id'])) { $edit_info = DB::fetch_first("SELECT * FROM `" . DCRM_CON_PREFIX . "Packages` WHERE `ID` = '" . $request_id . "'"); if (!$edit_info) { goto endlabel; } $protection_status = check_commercial_tag($edit_info['Tag']); ?> <h2><?php _e('Advance Editing'); ?> </h2> <br /> <form class="form-horizontal" method="POST" action="edit.php?action=advance_set&id=<?php echo $request_id; ?> "> <fieldset> <div class="group-control"> <label class="control-label">* <?php _ex('Field', 'Advance Editing'); ?>
<!DOCTYPE html SYSTEM "about:legacy-compat"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Activation · Cydia</title> <link rel="stylesheet" type="text/css" href="./css/menes.min.css"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="format-detection" content="telephone=no"> <script type="text/javascript" src="./js/fastclick.js"></script> <script type="text/javascript" src="./js/cytyle.js"></script> <script type="text/javascript" src="./js/menes.js"></script> </head> <body class="pinstripe"> <?php } if (check_commercial_tag($package_info['Tag'])) { $nowip = _ip2long(getIp()); if (isset($_GET['udid'])) { $udid_status = DB::fetch_first(DB::prepare("SELECT `Packages`, `Level`, `IP` FROM `" . DCRM_CON_PREFIX . "UDID` WHERE `UDID` = '%s' LIMIT 1", $_GET['udid'])); } else { $udid_status = DB::fetch_first("SELECT `Packages`, `Level`, `IP` FROM `" . DCRM_CON_PREFIX . "UDID` WHERE `IP` = '" . $nowip . "' LIMIT 1"); } $purchased = false; if (!empty($udid_status)) { if (!empty($udid_status['Packages'])) { $udid_packages = TrimArray(explode(',', $udid_status['Packages'])); if (in_array($package_info['Package'], $udid_packages, true)) { $purchased = true; } } else { $udid_level = (int) $udid_status['Level'];
</p> </label> <label class="detail"> <p id="contact"> <?php echo $author_name; ?> </p> </label> </div> </div> </a> </fieldset> <?php } if (DCRM_DIRECT_DOWN == 1 && !$isCydia && !check_commercial_tag($package_info['Tag'])) { ?> <fieldset> <a href="<?php echo SITE_URL; ?> debs/<?php echo $_GET['pid']; ?> .deb" id="downloadlink" style="display: none;" target="_blank"> <img class="icon" src="<?php echo SITE_URL; ?> icons/default/packages.png" /> <div> <div>