-
Notifications
You must be signed in to change notification settings - Fork 1
/
controller.php
49 lines (40 loc) · 1.48 KB
/
controller.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/*
* Copyright (c) Codiad & Olivier Auverlot, distributed
* as-is and without warranty under the MIT License. See
* [root]/license.txt for more. This information must remain intact.
*/
require_once('../../common.php');
require_once('class.chrome.php');
//////////////////////////////////////////////////////////////////
// Verify Session or Key
//////////////////////////////////////////////////////////////////
checkSession();
$chrome = new Chrome();
//////////////////////////////////////////////////////////////////
// Create new project
//////////////////////////////////////////////////////////////////
switch($_GET['action']) {
case 'newProject':
$chrome->projectName = trim($_GET['projectName']);
$chrome->projectType = $_GET['projectType'];
$chrome->CreateNewProject();
break;
case 'addChromeManifest':
$chrome->projectName = trim($_GET['projectName']);
$chrome->addChromeManifest();
break;
case 'buildSelfSignedCRX':
$chrome->projectName = trim($_GET['projectName']);
$chrome->buildSelfSignedCRX();
break;
case 'buildUserSignedSignedCRX':
$chrome->projectName = trim($_GET['projectName']);
$chrome->buildUserSignedSignedCRX($_GET['pkey']);
break;
case 'deployToMobile':
$chrome->projectName = $_GET['projectName'];
$chrome->deployToMobile();
break;
}
?>