summaryrefslogtreecommitdiffstats
path: root/index-dev.php
blob: dbf672dbcdbac83f371cc46c0c8369f15dab2ed2 (plain)
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
<?php
/*
  This file is part of Badaap Comic Reader.
  
  Copyright (c) 2012 Jeroen Walter
  
  Badaap Comic Reader is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  Badaap Comic Reader is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with Badaap Comic Reader.  If not, see <http://www.gnu.org/licenses/>.
*/
  
define("BCR_BUILD", 1);

session_start();
require_once(dirname(__FILE__)."/users.php");

$SimpleUsers = new SimpleUsers();

/*
  In order to make a BCR build via the Sencha Tools, the Sencha dependency checker opens the website.
  We must make sure that this always occurs via a logged in user, otherwise the check fails.
  Therefore login via the admin account.
*/
$SimpleUsers->loginUser('admin', 'admin');

if( !$SimpleUsers->logged_in )
{
  header("Location: login.php");
  exit;
}

require_once("comics.php"); 
?>
<!DOCTYPE HTML>
<html manifest="" lang="en-US">
<html>
<head>
<!--
<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js">
{
    overrideConsole: true,
    startInNewWindow: false,
    startOpened: true,
    enableTrace: true
}
</script>
-->
    <title>Badaap Comic Reader</title>
    <!--
    <meta charset="utf-8">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="-1">    
    -->
    
<script type="text/javascript">
  // Create global variable
  // If set to true, a call to the global function ShowError(message) will show the message in a separate
  // screen and stop all javascript processing.
  // This is mainly meant to debug the Ext.Direct communication between the browser and the webserver.
  DebugActive = true;
</script>

    <!-- The line below must be kept intact for Sencha Command to build your application -->
    <script id="microloader" type="text/javascript" src="sdk/microloader/development.js"></script>        

    
</head>
<body>
  <div id="appLoadingIndicator">
    <div></div>
    <div></div>
    <div></div>
  </div>
</body>
</html>