-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.php
121 lines (117 loc) · 6.1 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
<?php
$inclusion = array('chapter', 'section', 'spoiler', 'topic', 'embed', 'video', 'audio', 'image', 'shopping', 'glossary');
$amazonid = '';
$thomannid = '';
if($_GET['configfile'] != '')
{
if((strpos($_GET['configfile'], '.') !== false)||(strpos($_GET['configfile'], '/') !== false))
{
}
else
{
$configfile = $_GET['configfile'];
@include_once('./config/config.'.$configfile.'.inc.php');
}
}
?><!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8" />
<title>OpenShownoteFormat-Parser</title>
<meta name="viewport" content="width=980" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="shortcut icon" type="image/x-icon" href="http://shownot.es/favicon.ico" />
<link rel="icon" type="image/x-icon" href="http://shownot.es/favicon.ico" />
<link rel="apple-touch-startup-image" href="http://cdn.shownot.es/img/iPhonePortrait.png" />
<link rel="apple-touch-startup-image" sizes="768x1004" href="http://cdn.shownot.es/img/iPadPortait.png" />
<link href="http://selfcss.org/baf/css/baf.css" media="screen" rel="stylesheet" type="text/css"/>
<link href="http://selfcss.org/baf/css/icomoon.css" media="screen" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="./style.css?v=006" type="text/css" />
</head>
<body>
<div class="content">
<div class="header box">
<div class="title">
<a href="http://shownot.es/"><img src="http://cdn.shownot.es/img/logo.png" alt="Shownot.es Logo">Die Shownotes</a>
</div>
</div>
<div class="box" id="main" style="text-align:center;">
<h2><b>OSF-Parser-Suite!</b></h2>
<br/>
<div class="input-prepend baf-input baf-group-x1">
<label class="baf grey w120 add-on" for="search" id="searchlabel">
<span class="baf-icomoon normal" aria-hidden="true" data-icon="">
</span> search
</label>
<input class="input-grey" id="search" name="text-search1" onkeyup="searchPadslist(this);" maxlength="" size="16" type="text"/>
</div>
<div id="padlist">
</div>
<div class="textarea" style="width: 640px; margin:auto;">
<label class="baf add-on w90" for="defaulttextarea" id="defaultt1">Shownotes</label><br/>
<textarea class="" id="defaulttextarea" name="defaulttextarea" onkeyup="" size="26" type="text"><?php echo $_POST['padcontent']; ?></textarea>
</div>
<br/>
<p>JavaScript Preview: <span class="baf bluehover" onclick="previewPopup(document.getElementById('defaulttextarea'), 'html')" value="HTML">HTML</span> <span class="baf bluehover" class="button" onclick="previewPopup(document.getElementById('defaulttextarea'), 'chapter')" value="Chapter">Chapter</span></p>
<br/>
<div class="input-prepend baf-input baf-group-x3">
<label class="baf grey w120 add-on" for="tags" id="label-inc. tags3">
<span class="baf-icomoon normal" aria-hidden="true" data-icon="">
</span> inc. tags
</label>
<input class="input-grey" id="tags" name="text-inc. tags3" maxlength="" size="16" value="" type="text"/>
</div>
<div class="input-prepend baf-input baf-group-x4">
<label class="baf grey w120 add-on" for="amazon" id="label-amazon id4">amazon id</label>
<input class="input-grey" id="amazon" name="text-amazon id4" onkeyup="" maxlength="" size="16" value="<?php echo $amazonid; ?>" type="text"/>
</div>
<div class="input-prepend baf-input baf-group-x5">
<label class="baf grey w120 add-on" for="thomann" id="label-thomann id5">thomann id</label>
<input class="input-grey" id="thomann" name="text-thomann id5" onkeyup="" maxlength="" size="16" value="<?php echo $thomannid; ?>" type="text"/>
</div>
<div class="input-prepend baf-input baf-group-x6">
<label class="baf grey w120 add-on" for="tradedoubler" id="label-tradedoubler id6">tradedoubler id</label>
<input class="input-grey" id="tradedoubler" name="text-tradedoubler id6" onkeyup="" maxlength="" size="16" value="<?php echo $tradedoubler; ?>" type="text"/>
</div>
<div style="">
<form name="outputmode" method="get" action="" onsubmit="return false;" style="width: 225px; text-align: left; margin: 15px auto;">
<!--<label class="baf grey w120 add-on" for="mainmode" id="label-mainmode id7">main mode</label>-->
<select id="mainmode">
<option>shownot.es</option>
<option>block style</option>
<option>button style</option>
<option>list style</option>
<option>clean osf</option>
<option>glossary</option>
<option>shownoter</option>
<option>podcaster</option>
<option>JSON</option>
<option>Chapter</option>
<option>PSC</option>
</select>
</form>
</div>
<a class="baf w175" id="showsource" onclick="expmode = 'source'; parsePad(); return false;">Show Source</a>
<a class="baf w175" id="showpreview" onclick="expmode = 'preview'; parsePad(); return false;">Preview</a>
<a class="baf w175" id="download" onclick="expmode = 'download'; parsePad(); return false;">Download</a>
<hr/>
<div id="outputsource" style="display:none;">
<textarea id="sourcearea" style="height: 620px; width: 96%;"></textarea>
</div>
<div id="outputview" style="display:none;">
<iframe id="viewarea" style="height: 620px; width: 96%;"></iframe>
</div>
<hr/>
<a href="http://flattr.com/thing/1062678/SimonWaldherrOSF-Parser-Suite-on-GitHub" target="_blank">
<img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a>
</div>
<div class="footer box"> <span>© 2013 <a href="http://shownot.es/">shownot.es</a></span></div>
</div>
<script src="http://selfcss.org/baf/js/baf.min.js"></script>
<script src="http://simonwaldherr.github.io/majaX.js/majax.js"></script>
<script src="http://shownotes.github.io/tinyOSF.js/tinyosf.js"></script>
<script src="http://shownotes.github.io/tinyOSF.js/tinyosf_exportmodules.js"></script>
<script src="./wp-osf-shownotes/static/shownotes_admin.js"></script>
<script src="./script.js"></script>
</body>
</html>