Ejemplo n.º 1
0
                <tr height="32">
                  <td align="center">&nbsp;&nbsp;账号:
                    <input type="text" name="app_username" value="" style="width:35%"/></td>
                </tr>
                <tr height="32">
                  <td align="center">&nbsp;&nbsp;密码:
                    <input type="password" name="app_password" value="" style="width:35%" /></td>
                </tr>
                <tr height="32" align="center">
                  <td align="center"><input type="submit" value="登录" class="button" /></td>
                </tr>
              </table>
            </form>
<?php }else{ 

//已登录
Server_Open('shoplist');

      }?>



	<script type="text/javascript">ActiveLeftMenu("aAppCentre");</script>
	<script type="text/javascript">AddHeaderIcon("<?php echo $bloghost . 'zb_users/plugin/AppCentre/logo.png';?>");</script>	
  </div>
</div>

<?php
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();
?>
Ejemplo n.º 2
0
if(GetVars('act')=='save'){

	$zbp->Config('AppCentre')->enabledcheck=(int)GetVars("app_enabledcheck");
	$zbp->Config('AppCentre')->checkbeta=(int)GetVars("app_checkbeta");
	$zbp->Config('AppCentre')->enabledevelop=(int)GetVars("app_enabledevelop");
	$zbp->Config('AppCentre')->enablegzipapp=(int)GetVars("app_enablegzipapp");
	$zbp->SaveConfig('AppCentre');

	$zbp->SetHint('good');
	Redirect('./setting.php');

}

if(GetVars('act')=='login'){

	$s=Server_Open('vaild');
	if($s){

		$zbp->Config('AppCentre')->username=GetVars("app_username");
		$zbp->Config('AppCentre')->password=$s;
		$zbp->SaveConfig('AppCentre');

		$zbp->SetHint('good','您已成功登录APP应用中心.');
		Redirect('./main.php');
		die;
	}else{
		$zbp->SetHint('bad','用户名或密码错误.');
		Redirect('./setting.php');
		die;
	}
}
Ejemplo n.º 3
0
  <div class="divHeader"><?php 
echo $blogtitle;
?>
</div>
<div class="SubMenu"><?php 
AppCentre_SubMenus(GetVars('method', 'GET') == 'check' ? 2 : 1);
?>
</div>
  <div id="divMain2">

<?php 
$method = GetVars('method', 'GET');
if (!$method) {
    $method = 'view';
}
Server_Open($method);
?>
	<script type="text/javascript">
		window.plug_list = "<?php 
echo AddNameInString($option['ZC_USING_PLUGIN_LIST'], $option['ZC_BLOG_THEME']);
?>
";
		window.signkey = '<?php 
echo $zbp->GetToken();
?>
';
	</script>
	<script type="text/javascript">ActiveLeftMenu("aAppCentre");</script>
	<script type="text/javascript">AddHeaderIcon("<?php 
echo $bloghost . 'zb_users/plugin/AppCentre/logo.png';
?>
Ejemplo n.º 4
0
    die;
}
$blogtitle = '应用中心-提交应用';
$s = '';
$t = '';
$app = new App();
$app->LoadInfoByXml($_GET['type'], $_GET['id']);
$t['id'] = $app->id;
$t['author'] = $app->author_name;
$t['modified'] = $app->modified;
$t = json_encode($t);
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    $s = Server_Open('submitpre');
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $url = Server_Open('submit');
    if (substr($url, 0, 4) == 'http') {
        Redirect($url);
    } else {
        echo '<script type="text/javascript">alert(\'' . $url . '\')</script>';
    }
}
if (!$s) {
    $s = '{"id":"未提交","author":"未提交","modified":"未提交"}';
}
require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';
?>
<div id="divMain">

  <div class="divHeader"><?php