image uploading fixes involving database filepaths, with no filename.
[phpns.git] / inc / head_data.php
blob625181c55c5a98bb5b83aa7ac593745ad33ce71b
1 <?php
3 /* Copyright (c) 2007-08 Alec Henriksen
4 * phpns is free software; you can redistribute it and/or modify it under the
5 * terms of the GNU General Public Licence (GPL) as published by the Free
6 * Software Foundation; either version 2 of the Licence, or (at your option) any
7 * later version.
8 * Please see the GPL at http://www.gnu.org/copyleft/gpl.html for a complete
9 * understanding of what this license means and how to abide by it.
12 //This is the 'default' javascript that should be included with every theme/page
14 $head_data['wysiwyg'] = '
15 <link rel="alternate" type="application/rss+xml" title="phpns rss feed" href="etc.php?do=rss"/>
16 <script language="javascript" type="text/javascript" src="inc/js/tinymce/tiny_mce_gzip.js"></script>
17 <script language="javascript" type="text/javascript">
18 tinyMCE_GZ.init({
19 theme : "advanced",
20 mode : "exact",
21 elements : "main, full",
22 apply_source_formatting : true,
23 content_css : "example_advanced.css",
24 extended_valid_elements : "a[href|target|name]",
25 plugins : "table",
26 theme_advanced_toolbar_location : "top",
27 theme_advanced_buttons1 : "forecolor,backcolor,separator,bold,italic,underline,separator,link,unlink,image,separator,bullist,numlist,separator,indent,outdent,separator,justifyleft,justifycenter,justifyright,separator,hr,separator,tablecontrols,separator,charmap,formatselect",
28 theme_advanced_buttons2 : "",
29 theme_advanced_buttons3 : "",
30 //theme_advanced_buttons2_add : "forecolor,backcolor,seperator",
31 //theme_advanced_buttons3_add_before : "tablecontrols,separator",
32 //invalid_elements : "a",
33 theme_advanced_path_location : "bottom",
34 theme_advanced_resizing : true,
35 theme_advanced_resize_horizontal : false,
36 theme_advanced_styles : "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1", // Theme specific setting CSS classes
37 //execcommand_callback : "myCustomExecCommandHandler",
38 fix_list_elements : true,
39 debug : false
40 });
41 </script>
42 <script language="javascript" type="text/javascript">
43 tinyMCE.init({
44 theme : "advanced",
45 mode : "exact",
46 elements : "main",
47 apply_source_formatting : true,
48 content_css : "example_advanced.css",
49 extended_valid_elements : "a[href|target|name]",
50 plugins : "table",
51 theme_advanced_toolbar_location : "top",
52 theme_advanced_buttons1 : "forecolor,backcolor,separator,bold,italic,underline,separator,link,unlink,image,separator,bullist,numlist,separator,indent,outdent,separator,justifyleft,justifycenter,justifyright,separator,hr,separator,tablecontrols,separator,charmap,formatselect",
53 theme_advanced_buttons2 : "",
54 theme_advanced_buttons3 : "",
55 //theme_advanced_buttons1_add_before : "forecolor,backcolor,separator",
56 //theme_advanced_buttons3_add_before : "tablecontrols,separator",
57 //invalid_elements : "a",
58 theme_advanced_path_location : "bottom",
59 fix_list_elements : true,
60 theme_advanced_resizing : true,
61 theme_advanced_resize_horizontal : false,
62 //execcommand_callback : "myCustomExecCommandHandler",
63 debug : false
64 });
65 </script>
68 $head_data['tour'] = '
69 <script type="text/javascript" src="inc/js/tour/amberjack.pack.js"></script>
72 $head_data['tour_text'] = '
73 <!-- Tour created with Amberjack wizard: http://amberjack.org -->
74 <div class="ajTourDef" id="phpns" style="display:none">
75 <div title="index.php">
76 <strong>Index</strong>
77 <p>This is the phpns index, where you can view some statistics and latest articles. This is the page that you will be sent to after a successful login.</p>
78 </div>
80 <div title="article.php">
81 <strong>New Article</strong>
82 <p>In this page, you create an article in a WYSIWYG (What You See Is What You Get) environment. This will result in a very professional and clean news post. To simplify the process, you only need two fields: the title, and the main article.</p>
83 </div>
85 <div title="manage.php">
86 <strong>Article Management</strong>
87 <p>The article management page will let you edit/delete/search articles that have been posted on phpns.</p>
88 <p>To edit an article, simply click on the title (or hover over the row, and click the edit icon). To delete articles, you can "tick" the box on each row, and click "Delete Selected" on the bottom of the page.</p>
89 </div>
91 <div title="user.php">
92 <strong>User Management</strong>
93 <p>The User management lets you create, delete, and edit current users and their settings.</p>
94 <p>To edit a user, click on the username in the row (or hover over the row, and click the edit icon). To delete users, simply "tick" the box on each row, and click "Delete Selected" on the bottom of the page.</p>
95 </div>
97 <div title="preferences.php">
98 <strong>Preferences</strong>
99 <p>The preferences page will give you a list of things you can change on phpns. Configuration options include: RSS and ATOM, clean URLs, templates, categories, and much more.</p>
100 </div>
102 <div title="about.php">
103 <strong>About</strong>
104 <p>The about page is where you can find out information about the developers who created phpns and how to contact them. You can also check if your phpns installation is up to date. Legal information and licensing information is also included.</p>
105 </div>
106 </div>
107 <script type="text/javascript" defer="true">
108 Amberjack.onCloseClickStay = true;
109 Amberjack.BASE_URL = \'inc/js/tour/\';
110 Amberjack.ADD_STYLE = \'inc/js/tour/skin/black_beauty/style.css\';
111 Amberjack.open();
112 </script>
115 $head_data['other_js'] = '
116 <script language="javascript" type="text/javascript">
117 function togglewysiwyg(id) {
118 var elm = document.getElementById(id);
119 if (tinyMCE.getInstanceById(id) == null)
120 tinyMCE.execCommand(\'mceAddControl\', false, id);
121 else
122 tinyMCE.execCommand(\'mceRemoveControl\', false, id);
125 function expandwysiwyg(id) {
126 var expelm = document.getElementById(id);
127 var expstyle = expelm.style.height;
128 document.getElementById(id).style.height = "500px";
129 togglewysiwyg(id);
130 togglewysiwyg(id);
133 function Checkall(form) {
134 for (var i = 1; i < form.elements.length; i++) {
135 eval("form.elements[" + i + "].checked = form.elements[0].checked");
139 function new_window(url) {
140 var newwindow;
141 newwindow=window.open(url,\'name\',\'height=500,width=710,left=100,top=100,resizable=yes,scrollbars=yes,status=yes\');
142 if (window.focus) {
143 newwindow.focus()
147 function expand() {
148 for (var i=0; i<expand.arguments.length; i++) {
149 var element = document.getElementById(expand.arguments[i]);
150 element.style.display = (element.style.display == "none") ? "block" : "none";
154 </script>
155 <script language="javascript" type="text/javascript" src="inc/js/highlight.js"></script>
156 <script src="inc/js/codepress/codepress.js" type="text/javascript"></script>
159 //end head declarations