$url = $_GET['url']; $name = $_GET['name']; $cat = $_GET["cat"]; $nowcat = $_GET["nowcat"]; $author = $_GET["author"]; $perm = $_GET["perm"]; function installcheck($appkey, $appname) { $res = $GLOBALS['db']->select('app', array('app_key' => $appkey)); if ($res[0]["name"] == $appname) { return true; } else { return false; } } if (installcheck($appid, $name)) { $statue = "installed"; } else { $GLOBALS['db']->delete('app', array('app_key' => $appid)); $GLOBALS['db']->insert(array("app_key" => $appid, "canvas_url" => $url, "logo" => $icon, "name" => $name, "perms" => $perm), "app"); $statue = "success"; } ?> <!DOCTYPE html> <html> <head> <title>安裝 <?php echo $name; ?> - Ltayer Store</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
?> </span></li> <li><i class="ion-ios7-pricetag"></i> 類別: <span class="boxw"><?php echo $c->category; ?> </span></li> <li><i class="ion-android-social-user"></i> 作者: <span class="boxw"><a href="?au=<?php echo $c->author; ?> "><?php echo $c->author; ?> </span></li> </ul> <?php if (installcheck($c->app_id, $c->name)) { ?> <a href="delete.php?appid=<?php echo $c->app_id; ?> &icon=<?php echo $c->icon; ?> &url=<?php echo $c->url; ?> &name=<?php echo $c->name; ?> &author=<?php echo $c->author;
$icon = $_GET['icon']; $url = $_GET['url']; $name = $_GET['name']; $cat = $_GET["cat"]; $nowcat = $_GET["nowcat"]; $author = $_GET["author"]; function installcheck($appkey, $appname) { $res = $GLOBALS['db']->select('app', array('app_key' => $appkey)); if ($res[0]["name"] == $appname) { return true; } else { return false; } } $check = installcheck($appid, $name); if (!$check) { $statue = "uninstalled"; } else { $db->delete('app', array('app_key' => $appid)); $statue = "success"; } ?> <!DOCTYPE html> <html> <head> <title>移除<?php echo $name; ?> - Ltayer Store</title> <meta name="viewport" content="width=device-width, initial-scale=1.0" />