-
Notifications
You must be signed in to change notification settings - Fork 44
/
index.php
125 lines (112 loc) · 5.23 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
/**
* This file is part of amfPHP
*
* LICENSE
*
* This source file is subject to the license that is bundled
* with this package in the file license.txt.
* @package Amfphp_BackOffice
*/
/**
* entry point for back office
* @author Ariel Sommeria-klein
*
*/
/**
* includes
*/
require_once(dirname(__FILE__) . '/ClassLoader.php');
$accessManager = new Amfphp_BackOffice_AccessManager();
$isAccessGranted = $accessManager->isAccessGranted();
$config = new Amfphp_BackOffice_Config();
?>
<html>
<title>AmfPHP Back Office</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/amfphp_updates.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript">
<?php
echo 'var amfphpVersion = "' . AMFPHP_VERSION . "\";\n";
echo 'var amfphpEntryPointUrl = "' . $config->resolveAmfphpEntryPointUrl() . "\";\n";
if ($config->fetchAmfphpUpdates) {
echo "var shouldFetchUpdates = true;\n";
} else {
echo "var shouldFetchUpdates = false;\n";
}
?>
</script>
</head>
<body>
<div class="page-wrap">
<?php require_once(dirname(__FILE__) . '/Header.inc.php'); ?>
<div id='main' >
<?php
$accessManager = new Amfphp_BackOffice_AccessManager();
if (!$isAccessGranted) {
?>
<script>
window.location = './SignIn.php';
</script>
<?php
return;
}
?>
<div id="tabsExplanation">
<h2>Welcome to the <span class="titleSpan">Amfphp <span class="backoffice">Back Office</span></span></h2>
<span id="keyMessage">Here you can access the 3 parts of the Back Office. </span>
<br/><br/>
<h3>The Service Browser</h3>
The service browser allows you to test your services. It lists all services and methods. Click a service method, and a dialog will appear allowing you to call it and optionally set some parameters.
Once you call the method, you have a choice of ways to display the return data. Depending on what kind of return data you are expecting you will find one view or another more useful.
<br/><a target="_blank" href="http://silexlabs.org/amfphp/documentation/using-the-back-office/service-browser/">Service Browser Documentation</a>
<div class="imgWrapper">
<a href="ServiceBrowser.php">
<img src="img/ServiceBrowser.jpg"></img>
</a>
</div>
<br/><br/>
<h3>The Client Generator</h3>
The client generator allows you to generate fully functional client projects including:
<ul>
<li>service classes that expose your service methods so that you can call them easily.</li>
<li>a GUI class to access each service. These are great to make back offices.</li>
<li>project files to wrap them all and hit the ground running.</li>
</ul>
<a target="_blank" href="http://silexlabs.org/amfphp/documentation/using-the-back-office/client-generator/">Client Generator Documentation</a>
<div class="imgWrapper">
<a href="ClientGenerator.php">
<img src="img/ClientGenerator.jpg"></img>
</a>
</div>
<br/><br/>
<h3>The Profiler</h3>
The Profiler allows you to observe the time spent by each service call in the different stages of processing.
The idea is to help you better understand how your server shall perform live,
and to give you easy access to the information you need to eliminate bottlenecks and fine-tune performance.
<br/><a target="_blank" href="http://silexlabs.org/amfphp/documentation/using-the-back-office/profiler/">Profiler Documentation</a>
<div class="imgWrapper">
<a href="Profiler.php">
<img src="img/Profiler.jpg"></img>
</a>
</div>
</div>
</div>
</div>
<?php require_once(dirname(__FILE__) . '/Footer.inc.php'); ?>
<script>
$(function () {
if (shouldFetchUpdates) {
amfphpUpdates.init("#newsPopup", "#newsLink", "#textNewsLink", "#latestVersionInfo");
amfphpUpdates.loadAndInitUi();
}
$("#tabName").text("Home");
$("#homeLink").addClass("chosen");
});
</script>
</body>
</html>