-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_debug.php
executable file
·135 lines (110 loc) · 5.53 KB
/
index_debug.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
125
126
127
128
129
130
131
132
133
134
135
<?php
define("TWEXTER_PATH", dirname(__FILE__).'/');
require_once TWEXTER_PATH.'/include/zendbootstrap.php';
require_once TWEXTER_PATH.'/include/zendauth.php';
$url = str_replace("index_debug.php","",$_SERVER["REQUEST_URI"]);
require_once 'include/urltools.php';
$o = isset($_GET['o']) ? $_GET['o'] : false;
if($o){
$docid = docurl_get_id($o);
}
if(!is_numeric($docid)) $docid = 'null';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Twexter</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="/images/twext.ico" />
<link href="css/simple.css" rel="stylesheet" type="text/css">
<link href="css/x_button.css" rel="stylesheet" type="text/css">
<link href="css/output.css" rel="stylesheet" type="text/css">
<link href="css/output_toolbar.css" rel="stylesheet" type="text/css">
<link href="css/editor_toolbar.css" rel="stylesheet" type="text/css">
<link href="css/twext_editor.css" rel="stylesheet" type="text/css">
<link href="css/user_login.css" rel="stylesheet" type="text/css">
<link href="css/finder.css" rel="stylesheet" type="text/css">
<link href="css/save.css" rel="stylesheet" type="text/css">
<link href="css/login_button.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/twext_new.css" type="text/css">
<link href="css/slop.css" rel="stylesheet" type="text/css">
<link href="css/tools_popup.css" rel="stylesheet" type="text/css">
<link href="css/top_tool_bar.css" rel="stylesheet" type="text/css">
<link href="css/comments.css" rel="stylesheet" type="text/css">
<link href="css/url_link.css" rel="stylesheet" type="text/css">
<link href="css/sidebar.css" rel="stylesheet" type="text/css">
<link href="css/translation_selection.css" rel="stylesheet" type="text/css">
<link href="css/user_login_openid.css" rel="stylesheet" type="text/css">
<script src="http://www.google.com/jsapi?key=ABQIAAAAunEcMFDGHr_wmtu2XUug1BSMkLjG2dqjn9SZ4XtNlZnYQgQRQBQjPrVw2B4EL1mto37jy3sxhrl1Ag" type="text/javascript"></script>
<script type="text/javascript">
<?
echo "global_lang = '$lang';";
echo "URL_DIR = '$url';";
echo "LOAD_DOC = $docid;";
?>
</script>
<script type="text/javascript" src="js/lib/ext_2.2.1.js"></script>
<!-- <script type="text/javascript" src="../javascript/ext.js"></script> -->
<script type="text/javascript" src="js/utils/debug.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
<script type="text/javascript" src="js/utils/util.js"></script>
<script type="text/javascript" src="js/lib/libtwexter.js"></script>
<!-- <script type="text/javascript" src="../javascript/persist-all-min.js"></script> -->
<script type="text/javascript" src="js/ui/x_button.js"></script>
<script type="text/javascript" src="js/simple.js"></script>
<script type="text/javascript" src="js/uiviews.js"></script>
<script type="text/javascript" src="js/ui/output.js"></script>
<script type="text/javascript" src="js/data/local_data.js"></script>
<script type="text/javascript" src="js/ui/editor.js"></script>
<script type="text/javascript" src="js/ui/editor_toolbar.js"></script>
<script type="text/javascript" src="js/ui/output_toolbar.js"></script>
<script type="text/javascript" src="js/ui/user_login.js"></script>
<script type="text/javascript" src="js/ui/save.js"></script>
<script type="text/javascript" src="js/ui/finder.js"></script>
<script type="text/javascript" src="js/ui/login_button.js"></script>
<script type="text/javascript" src="js/ui/slop_select.js"></script>
<script type="text/javascript" src="js/ui/slop_popup.js"></script>
<script type="text/javascript" src="js/ui/slop_list.js"></script>
<script type="text/javascript" src="js/ui/tools_popup.js"></script>
<script type="text/javascript" src="js/ui/url_link.js"></script>
<script type="text/javascript" src="js/ui/top_tool_bar.js"></script>
<script type="text/javascript" src="js/translator.js"></script>
<script type="text/javascript" src="js/ui/comments.js"></script>
<script type="text/javascript" src="js/ui/sidebar.js"></script>
<script type="text/javascript" src="js/ui/common/popup.js"></script>
<script type="text/javascript" src="js/ui/common/panel.js"></script>
<script type="text/javascript" src="js/ui/output_contextmenu.js"></script>
<script type="text/javascript" src="js/utils/clipboard.js"></script>
<script type="text/javascript" src="js/utils/tagcloud.js"></script>
<script type="text/javascript" src="js/ui/translation_selection.js"></script>
<script type="text/javascript" src="js/ui/history_list.js"></script>
<script type="text/javascript" src="js/ui/user_login_openid.js"></script>
<script type="text/javascript" language="javascript">
<? if($authSession->login) {
echo "USER_LOGED_IN = true;";
$as = Zend_Registry::get('session_auth');
$data = array('success'=>true, 'message'=>"success", 'userid'=>$as->userID, 'nickname'=>$as->nickname);
echo "USER_DATA = ",json_encode($data);
}else{
echo "USER_LOGED_IN = false;";
}
?>
</script>
</head>
<body id="main_body">
<form id="history-form" style="display:none;top:-1000px;left:-1000px;" action="#">
<div>
<input id="x-history-field" type="hidden" />
<iframe id="x-history-frame"></iframe>
</div>
</form>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-135054-10");
pageTracker._trackPageview();
</script>
</body>
</html>