Merge lp:~dangarner/xibo/translate-xibo into lp:~xibo-maintainers/xibo/encke

Proposed by Dan Garner
Status: Merged
Merged at revision: not available
Proposed branch: lp:~dangarner/xibo/translate-xibo
Merge into: lp:~xibo-maintainers/xibo/encke
Diff against target: None lines
To merge this branch: bzr merge lp:~dangarner/xibo/translate-xibo
Reviewer Review Type Date Requested Status
Dan Garner Approve
Review via email: mp+6686@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Dan Garner (dangarner) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2009-03-07 23:21:15 +0000
3+++ .bzrignore 2009-05-14 19:20:44 +0000
4@@ -1,3 +1,4 @@
5 server/settings.php
6 .project
7 server/.project
8+Thumbs.db
9
10=== modified file 'default.mo'
11Binary files default.mo 2009-05-13 18:27:42 +0000 and default.mo 2009-05-17 17:32:16 +0000 differ
12=== modified file 'default.pot'
13--- default.pot 2009-05-13 18:27:42 +0000
14+++ default.pot 2009-05-17 17:32:16 +0000
15@@ -2,7 +2,7 @@
16 msgstr ""
17 "Project-Id-Version: Xibo Digital Signage\n"
18 "Report-Msgid-Bugs-To: \n"
19-"POT-Creation-Date: 2009-05-13 19:27-0000\n"
20+"POT-Creation-Date: 2009-05-17 18:31-0000\n"
21 "PO-Revision-Date: \n"
22 "Last-Translator: Dan Garner <mail@dangarner.co.uk>\n"
23 "Language-Team: <info@xibo.org.uk>\n"
24@@ -17,314 +17,314 @@
25 "X-Poedit-SearchPath-1: server/lib/pages\n"
26 "X-Poedit-SearchPath-2: server/lib/app\n"
27
28-#: server/install.php:44
29+#: server/install.php:45
30 msgid "Welcome to the Xibo Installer!"
31 msgstr ""
32
33-#: server/install.php:45
34+#: server/install.php:46
35 msgid "The installer will take you through setting up Xibo one step at a time."
36 msgstr ""
37
38-#: server/install.php:46
39+#: server/install.php:47
40 #: server/upgrade.php:92
41 msgid "Lets get started!"
42 msgstr ""
43
44-#: server/install.php:49
45-#: server/install.php:78
46-#: server/install.php:86
47-#: server/install.php:318
48-#: server/install.php:334
49-#: server/install.php:373
50-#: server/install.php:402
51-#: server/install.php:505
52+#: server/install.php:50
53+#: server/install.php:79
54+#: server/install.php:87
55+#: server/install.php:319
56+#: server/install.php:335
57+#: server/install.php:374
58+#: server/install.php:403
59+#: server/install.php:506
60 #: server/upgrade.php:98
61-#: server/upgrade.php:152
62-#: server/upgrade.php:159
63-#: server/upgrade.php:220
64+#: server/upgrade.php:158
65+#: server/upgrade.php:168
66+#: server/upgrade.php:229
67 msgid "Next"
68 msgstr ""
69
70-#: server/install.php:58
71+#: server/install.php:59
72 #: server/upgrade.php:131
73 msgid "First we need to check if your server meets Xibo's requirements."
74 msgstr ""
75
76-#: server/install.php:66
77-#: server/install.php:74
78+#: server/install.php:67
79+#: server/install.php:75
80 #: server/upgrade.php:141
81-#: server/upgrade.php:149
82+#: server/upgrade.php:150
83 msgid "Retest"
84 msgstr ""
85
86-#: server/install.php:97
87+#: server/install.php:98
88 msgid "Xibo needs to setup a new database."
89 msgstr ""
90
91-#: server/install.php:98
92+#: server/install.php:99
93 msgid "If you have not yet created an empty database and database user for Xibo to use, and know the username/password of a MySQL administrator, click the \"Create New\" button, otherwise click \"Use Existing\"."
94 msgstr ""
95
96-#: server/install.php:99
97+#: server/install.php:100
98 msgid "Note that any existing database must be empty"
99 msgstr ""
100
101-#: server/install.php:103
102+#: server/install.php:104
103 msgid "Create New"
104 msgstr ""
105
106-#: server/install.php:107
107+#: server/install.php:108
108 msgid "Use Existing"
109 msgstr ""
110
111-#: server/install.php:115
112+#: server/install.php:116
113 msgid "Since no empty database has been created for Xibo to use, we need the username and password of a MySQL administrator to create a new database, and database user for Xibo."
114 msgstr ""
115
116-#: server/install.php:116
117+#: server/install.php:117
118 msgid "Additionally, please give us a new username and password to create in MySQL for Xibo to use. Xibo will create this automatically for you."
119 msgstr ""
120
121-#: server/install.php:121
122-#: server/install.php:142
123+#: server/install.php:122
124+#: server/install.php:143
125 msgid "Host:"
126 msgstr ""
127
128-#: server/install.php:122
129+#: server/install.php:123
130 msgid "Admin Username:"
131 msgstr ""
132
133-#: server/install.php:123
134+#: server/install.php:124
135 msgid "Admin Password:"
136 msgstr ""
137
138-#: server/install.php:124
139-#: server/install.php:143
140-msgid "Xibo Database Name:"
141-msgstr ""
142-
143 #: server/install.php:125
144 #: server/install.php:144
145-msgid "Xibo Database Username:"
146+msgid "Xibo Database Name:"
147 msgstr ""
148
149 #: server/install.php:126
150 #: server/install.php:145
151+msgid "Xibo Database Username:"
152+msgstr ""
153+
154+#: server/install.php:127
155+#: server/install.php:146
156 msgid "Xibo Database Password:"
157 msgstr ""
158
159-#: server/install.php:129
160-#: server/install.php:148
161+#: server/install.php:130
162+#: server/install.php:149
163 msgid "Create"
164 msgstr ""
165
166-#: server/install.php:137
167+#: server/install.php:138
168 msgid "Please enter the details of the database and user you have created for Xibo."
169 msgstr ""
170
171-#: server/install.php:157
172+#: server/install.php:158
173 msgid "Something went wrong"
174 msgstr ""
175
176-#: server/install.php:174
177-#: server/install.php:232
178+#: server/install.php:175
179+#: server/install.php:233
180 msgid "A field was blank. Please fill in all fields."
181 msgstr ""
182
183-#: server/install.php:180
184+#: server/install.php:181
185 msgid "Could not connect to MySQL with the administrator details. Please check and try again."
186 msgstr ""
187
188-#: server/install.php:180
189-#: server/install.php:220
190-#: server/install.php:240
191-#: server/install.php:284
192-#: server/install.php:354
193-#: server/install.php:362
194-#: server/install.php:464
195-#: server/install.php:472
196-#: server/install.php:478
197-#: server/install.php:484
198-#: server/install.php:490
199-#: server/install.php:494
200+#: server/install.php:181
201+#: server/install.php:221
202+#: server/install.php:241
203+#: server/install.php:285
204+#: server/install.php:355
205+#: server/install.php:363
206+#: server/install.php:465
207+#: server/install.php:473
208+#: server/install.php:479
209+#: server/install.php:485
210+#: server/install.php:491
211+#: server/install.php:495
212 #: server/upgrade.php:68
213 #: server/upgrade.php:69
214 #: server/upgrade.php:115
215-#: server/upgrade.php:276
216+#: server/upgrade.php:287
217 msgid "MySQL Error:"
218 msgstr ""
219
220-#: server/install.php:184
221+#: server/install.php:185
222 msgid "Creating new database."
223 msgstr ""
224
225-#: server/install.php:192
226+#: server/install.php:193
227 msgid "Could not create a new database with the administrator details. Please check and try again."
228 msgstr ""
229
230-#: server/install.php:202
231+#: server/install.php:203
232 msgid "Creating new user"
233 msgstr ""
234
235-#: server/install.php:220
236+#: server/install.php:221
237 msgid "Could not create a new user with the administrator details. Please check and try again."
238 msgstr ""
239
240-#: server/install.php:240
241+#: server/install.php:241
242 msgid "Could not connect to MySQL with the Xibo User account details. Please check and try again."
243 msgstr ""
244
245-#: server/install.php:284
246-#: server/upgrade.php:276
247+#: server/install.php:285
248+#: server/upgrade.php:287
249 msgid "An error occured populating the database."
250 msgstr ""
251
252-#: server/install.php:295
253-#: server/install.php:307
254+#: server/install.php:296
255+#: server/install.php:308
256 msgid "Unable to write to settings.php. We already checked this was possible earlier, so something changed."
257 msgstr ""
258
259-#: server/install.php:326
260+#: server/install.php:327
261 msgid "Xibo needs to set the \"xibo_admin\" user password. Please enter a password for this account below."
262 msgstr ""
263
264-#: server/install.php:331
265+#: server/install.php:332
266 msgid "Password:"
267 msgstr ""
268
269-#: server/install.php:332
270+#: server/install.php:333
271 msgid "Retype Password:"
272 msgstr ""
273
274-#: server/install.php:344
275+#: server/install.php:345
276 msgid "Please input a new password. Ensure both password fields are identical."
277 msgstr ""
278
279-#: server/install.php:354
280-#: server/install.php:464
281+#: server/install.php:355
282+#: server/install.php:465
283 msgid "Could not connect to MySQL with the Xibo User account details saved in settings.php. Please check and try again."
284 msgstr ""
285
286-#: server/install.php:362
287+#: server/install.php:363
288 msgid "An error occured changing the xibo_admin password."
289 msgstr ""
290
291-#: server/install.php:369
292+#: server/install.php:370
293 msgid "Successfully changed the xibo_admin password. We're nearly there now. Just a couple more steps!"
294 msgstr ""
295
296-#: server/install.php:384
297+#: server/install.php:385
298 msgid "Library Location"
299 msgstr ""
300
301-#: server/install.php:385
302+#: server/install.php:386
303 msgid "Xibo needs somewhere to store the things you upload to be shown. Ideally, this should be somewhere outside the root of your webserver - that is such that is not accessible by a web browser. Please input the full path to this folder. If the folder does not already exist, Xibo will attempt to create it for you."
304 msgstr ""
305
306-#: server/install.php:388
307+#: server/install.php:389
308 msgid "Library Location:"
309 msgstr ""
310
311-#: server/install.php:390
312+#: server/install.php:391
313 msgid "Server Key"
314 msgstr ""
315
316-#: server/install.php:391
317+#: server/install.php:392
318 msgid "Xibo needs you to choose a \"key\". This will be required each time you setup a new client. It should be complicated, and hard to remember. It is visible in the admin interface, so it need not be written down separately."
319 msgstr ""
320
321-#: server/install.php:393
322+#: server/install.php:394
323 msgid "Server Key:"
324 msgstr ""
325
326-#: server/install.php:395
327+#: server/install.php:396
328 msgid "Statistics"
329 msgstr ""
330
331-#: server/install.php:396
332+#: server/install.php:397
333 msgid "We'd love to know you're running Xibo. If you're happy for us to collect anonymous statistics (version number, number of displays) then please leave the box ticked. Please untick the box if your server does not have direct access to the internet."
334 msgstr ""
335
336-#: server/install.php:398
337+#: server/install.php:399
338 msgid "Anonymous Statistics:"
339 msgstr ""
340
341-#: server/install.php:417
342+#: server/install.php:418
343 msgid "A field was blank. Please make sure you complete all fields"
344 msgstr ""
345
346-#: server/install.php:430
347+#: server/install.php:431
348 msgid "A file exists with the name you gave for the Library Location. Please choose another location"
349 msgstr ""
350
351-#: server/install.php:437
352+#: server/install.php:438
353 msgid "Could not create the Library Location directory for you. Please ensure the webserver has permission to create a folder in this location, or create the folder manually and grant permission for the webserver to write to the folder."
354 msgstr ""
355
356-#: server/install.php:445
357+#: server/install.php:446
358 msgid "The Library Location you gave is not writable by the webserver. Please fix the permissions and try again."
359 msgstr ""
360
361-#: server/install.php:450
362+#: server/install.php:451
363 msgid "The Library Location you gave is not empty. Please give the location of an empty folder"
364 msgstr ""
365
366-#: server/install.php:472
367+#: server/install.php:473
368 msgid "An error occured changing the library location."
369 msgstr ""
370
371-#: server/install.php:478
372+#: server/install.php:479
373 msgid "An error occured changing the server key."
374 msgstr ""
375
376-#: server/install.php:484
377+#: server/install.php:485
378 msgid "An error occured setting the default timezone."
379 msgstr ""
380
381-#: server/install.php:490
382-#: server/install.php:494
383+#: server/install.php:491
384+#: server/install.php:495
385 msgid "An error occured setting anonymous statistics."
386 msgstr ""
387
388-#: server/install.php:501
389+#: server/install.php:502
390 msgid "Successfully set library location and server key."
391 msgstr ""
392
393-#: server/install.php:513
394+#: server/install.php:514
395 msgid "Unable to delete install.php. Please ensure the webserver has permission to unlink this file and retry"
396 msgstr ""
397
398-#: server/install.php:513
399-#: server/install.php:516
400+#: server/install.php:514
401+#: server/install.php:517
402 msgid "Retry"
403 msgstr ""
404
405-#: server/install.php:516
406+#: server/install.php:517
407 msgid "Unable to delete upgrade.php. Please ensure the webserver has permission to unlink this file and retry"
408 msgstr ""
409
410-#: server/install.php:520
411+#: server/install.php:521
412 msgid "Xibo was successfully installed."
413 msgstr ""
414
415-#: server/install.php:521
416+#: server/install.php:522
417 msgid "Please click"
418 msgstr ""
419
420-#: server/install.php:521
421+#: server/install.php:522
422 msgid "here"
423 msgstr ""
424
425-#: server/install.php:521
426+#: server/install.php:522
427 msgid "to logon to Xibo as \"xibo_admin\" with the password you chose earlier."
428 msgstr ""
429
430-#: server/install.php:526
431-#: server/upgrade.php:312
432+#: server/install.php:527
433+#: server/upgrade.php:323
434 msgid "A required parameter was missing. Please go through the installer sequentially!"
435 msgstr ""
436
437-#: server/install.php:526
438+#: server/install.php:527
439 msgid "Start Again"
440 msgstr ""
441
442@@ -356,131 +356,131 @@
443 msgid "Password incorrect. Please try again."
444 msgstr ""
445
446-#: server/upgrade.php:190
447+#: server/upgrade.php:199
448 msgid "Unable to calculate the upgradeTo value. Check for non-numeric SQL and PHP files in the 'install/database' directory."
449 msgstr ""
450
451-#: server/upgrade.php:213
452+#: server/upgrade.php:222
453 msgid "Warning: We included "
454 msgstr ""
455
456-#: server/upgrade.php:213
457+#: server/upgrade.php:222
458 msgid "but it did not include a class of appropriate name."
459 msgstr ""
460
461-#: server/upgrade.php:252
462+#: server/upgrade.php:261
463 msgid "FAIL:"
464 msgstr ""
465
466-#: server/upgrade.php:257
467+#: server/upgrade.php:267
468 msgid "Backing up your database"
469 msgstr ""
470
471-#: server/upgrade.php:282
472+#: server/upgrade.php:293
473 msgid "Step"
474 msgstr ""
475
476-#: server/upgrade.php:294
477+#: server/upgrade.php:305
478 msgid "Unable to delete install.php. Please remove this file manually."
479 msgstr ""
480
481-#: server/upgrade.php:297
482+#: server/upgrade.php:308
483 msgid "Unable to delete upgrade.php. Please remove this file manually."
484 msgstr ""
485
486-#: server/upgrade.php:300
487+#: server/upgrade.php:311
488 msgid "Upgrade is complete!"
489 msgstr ""
490
491-#: server/upgrade.php:302
492+#: server/upgrade.php:313
493 msgid "Login"
494 msgstr ""
495
496-#: server/upgrade.php:306
497+#: server/upgrade.php:317
498 msgid "There was an error during the upgrade. Please take a screenshot of this page and seek help!"
499 msgstr ""
500
501-#: server/upgrade.php:365
502+#: server/upgrade.php:370
503 msgid "You must authenticate to run the upgrade."
504 msgstr ""
505
506 #: server/config/config.class.php:128
507-msgid "PHP Version 5.0.2 or later"
508-msgstr ""
509-
510-#: server/config/config.class.php:139
511-msgid "Xibo requires PHP version 5.0.2 or later."
512-msgstr ""
513-
514-#: server/config/config.class.php:143
515+msgid "PHP Version 5.2.4 or later"
516+msgstr ""
517+
518+#: server/config/config.class.php:149
519+msgid "Xibo requires PHP version 5.2.4 or later."
520+msgstr ""
521+
522+#: server/config/config.class.php:153
523 msgid "Filesystem Permissions"
524 msgstr ""
525
526-#: server/config/config.class.php:154
527+#: server/config/config.class.php:164
528 msgid "Xibo needs to be able to write to the following:"
529 msgstr ""
530
531-#: server/config/config.class.php:162
532+#: server/config/config.class.php:172
533 msgid "Please fix this, and retest."
534 msgstr ""
535
536-#: server/config/config.class.php:166
537+#: server/config/config.class.php:176
538 msgid "MySQL Extension"
539 msgstr ""
540
541-#: server/config/config.class.php:177
542+#: server/config/config.class.php:187
543 msgid "Xibo requires a MySQL database. Ensure PHP MySQL client extension is installed"
544 msgstr ""
545
546-#: server/config/config.class.php:181
547+#: server/config/config.class.php:191
548 msgid "JSON Extension"
549 msgstr ""
550
551-#: server/config/config.class.php:192
552+#: server/config/config.class.php:202
553 msgid "Xibo needs the PHP JSON extension to function."
554 msgstr ""
555
556-#: server/config/config.class.php:196
557+#: server/config/config.class.php:206
558 msgid "GD Extension"
559 msgstr ""
560
561-#: server/config/config.class.php:207
562+#: server/config/config.class.php:217
563 msgid "Xibo needs the PHP GD extension to function."
564 msgstr ""
565
566-#: server/config/config.class.php:212
567+#: server/config/config.class.php:222
568 msgid "Calendar Extension"
569 msgstr ""
570
571-#: server/config/config.class.php:223
572+#: server/config/config.class.php:233
573 msgid "Xibo needs the PHP Calendar extension to function."
574 msgstr ""
575
576-#: server/config/config.class.php:227
577+#: server/config/config.class.php:237
578 msgid "DOM Extension"
579 msgstr ""
580
581-#: server/config/config.class.php:238
582+#: server/config/config.class.php:248
583 msgid "Xibo needs the PHP DOM core functionality enabled."
584 msgstr ""
585
586-#: server/config/config.class.php:242
587+#: server/config/config.class.php:252
588 msgid "DOM XML Extension"
589 msgstr ""
590
591-#: server/config/config.class.php:253
592+#: server/config/config.class.php:263
593 msgid "Xibo needs the PHP DOM XML extension to function."
594 msgstr ""
595
596-#: server/config/config.class.php:257
597+#: server/config/config.class.php:267
598 msgid "Allow PHP to open external URLs"
599 msgstr ""
600
601-#: server/config/config.class.php:268
602+#: server/config/config.class.php:278
603 msgid "You must have allow_url_fopen = On in your PHP.ini file for anonymous statistics gathering to function."
604 msgstr ""
605
606-#: server/config/config.class.php:269
607+#: server/config/config.class.php:279
608 msgid "If you do not intend to enable anonymous statistics gathering you need not worry about this problem."
609 msgstr ""
610
611@@ -492,6 +492,10 @@
612 msgid "No selections available"
613 msgstr ""
614
615+#: server/lib/app/helpmanager.class.php:54
616+msgid "Help"
617+msgstr ""
618+
619 #: server/lib/app/menumanager.class.php:49
620 msgid "No menu provided"
621 msgstr ""
622@@ -508,65 +512,65 @@
623 msgid "Update of settings failed"
624 msgstr ""
625
626-#: server/lib/modules/module.class.php:96
627+#: server/lib/modules/module.class.php:98
628 msgid "Unable to create Module [No type given] - please refer to the Module Documentation."
629 msgstr ""
630
631-#: server/lib/modules/module.class.php:104
632+#: server/lib/modules/module.class.php:106
633 msgid "Unable to create Module [Cannot find type in the database] - please refer to the Module Documentation."
634 msgstr ""
635
636-#: server/lib/modules/module.class.php:110
637+#: server/lib/modules/module.class.php:112
638 msgid "Unable to create Module [No registered modules of this type] - please refer to the Module Documentation."
639 msgstr ""
640
641-#: server/lib/modules/module.class.php:161
642+#: server/lib/modules/module.class.php:163
643 msgid "Cannot find this media item. Please refresh the region options."
644 msgstr ""
645
646-#: server/lib/modules/module.class.php:381
647+#: server/lib/modules/module.class.php:384
648 msgid "Unable to Remove this media from the Layout"
649 msgstr ""
650
651-#: server/lib/modules/module.class.php:392
652+#: server/lib/modules/module.class.php:395
653 msgid "Unable to assign to the Region"
654 msgstr ""
655
656-#: server/lib/modules/module.class.php:401
657+#: server/lib/modules/module.class.php:404
658 msgid "Error adding this media to the library"
659 msgstr ""
660
661-#: server/lib/modules/module.class.php:424
662+#: server/lib/modules/module.class.php:427
663 msgid "Return to the Region Options"
664 msgstr ""
665
666-#: server/lib/modules/module.class.php:425
667+#: server/lib/modules/module.class.php:428
668 msgid "Are you sure you want to remove this item from Xibo?"
669 msgstr ""
670
671-#: server/lib/modules/module.class.php:426
672+#: server/lib/modules/module.class.php:429
673 msgid "It will be lost"
674 msgstr ""
675
676-#: server/lib/modules/module.class.php:441
677+#: server/lib/modules/module.class.php:444
678 msgid "Delete Item"
679 msgstr ""
680
681-#: server/lib/modules/module.class.php:478
682-#: server/lib/modules/module.class.php:496
683+#: server/lib/modules/module.class.php:481
684+#: server/lib/modules/module.class.php:499
685 msgid "Not yet implemented by this module."
686 msgstr ""
687
688-#: server/lib/modules/module.class.php:482
689-#: server/lib/modules/module.class.php:499
690+#: server/lib/modules/module.class.php:485
691+#: server/lib/modules/module.class.php:502
692 msgid "Add Item"
693 msgstr ""
694
695-#: server/lib/modules/module.class.php:514
696+#: server/lib/modules/module.class.php:517
697 msgid "Add Media has not been implemented for this module."
698 msgstr ""
699
700-#: server/lib/modules/module.class.php:526
701+#: server/lib/modules/module.class.php:529
702 msgid "Edit Media has not been implemented for this module."
703 msgstr ""
704
705@@ -585,6 +589,7 @@
706 msgstr ""
707
708 #: server/lib/pages/admin.class.php:112
709+#: server/lib/pages/content.class.php:638
710 msgid "The Library Location you have picked is not writable to the Xibo Server."
711 msgstr ""
712
713@@ -601,6 +606,10 @@
714 msgstr ""
715
716 #: server/lib/pages/admin.class.php:172
717+#: server/lib/pages/display.class.php:262
718+#: server/lib/pages/display.class.php:365
719+#: server/lib/pages/layout.class.php:771
720+#: server/lib/pages/layout.class.php:887
721 msgid "Save"
722 msgstr ""
723
724@@ -615,8 +624,32 @@
725 msgid "Test Email"
726 msgstr ""
727
728+#: server/lib/pages/clock.class.php:60
729+msgid "System Information"
730+msgstr ""
731+
732+#: server/lib/pages/clock.class.php:62
733+msgid "Local Time"
734+msgstr ""
735+
736+#: server/lib/pages/clock.class.php:63
737+msgid "System Time"
738+msgstr ""
739+
740+#: server/lib/pages/clock.class.php:64
741+msgid "Local Date"
742+msgstr ""
743+
744+#: server/lib/pages/clock.class.php:65
745+msgid "System Date"
746+msgstr ""
747+
748+#: server/lib/pages/clock.class.php:68
749+msgid "Date / Time Information"
750+msgstr ""
751+
752 #: server/lib/pages/content.class.php:68
753-#: server/lib/pages/layout.class.php:1500
754+#: server/lib/pages/layout.class.php:1511
755 msgid "Library"
756 msgstr ""
757
758@@ -630,7 +663,7 @@
759 #: server/lib/pages/group.class.php:314
760 #: server/lib/pages/layout.class.php:161
761 #: server/lib/pages/layout.class.php:762
762-#: server/lib/pages/layout.class.php:1429
763+#: server/lib/pages/layout.class.php:1435
764 msgid "Name"
765 msgstr ""
766
767@@ -638,8 +671,8 @@
768 #: server/lib/pages/content.class.php:237
769 #: server/lib/pages/content.class.php:440
770 #: server/lib/pages/content.class.php:532
771-#: server/lib/pages/layout.class.php:1428
772-#: server/lib/pages/layout.class.php:1689
773+#: server/lib/pages/layout.class.php:1434
774+#: server/lib/pages/layout.class.php:1700
775 #: server/lib/pages/report.class.php:88
776 msgid "Type"
777 msgstr ""
778@@ -691,7 +724,7 @@
779 #: server/lib/pages/display.class.php:371
780 #: server/lib/pages/group.class.php:171
781 #: server/lib/pages/layout.class.php:1246
782-#: server/lib/pages/layout.class.php:1427
783+#: server/lib/pages/layout.class.php:1433
784 msgid "Delete"
785 msgstr ""
786
787@@ -718,8 +751,8 @@
788 msgstr ""
789
790 #: server/lib/pages/content.class.php:533
791-#: server/lib/pages/layout.class.php:1430
792-#: server/lib/pages/layout.class.php:1690
793+#: server/lib/pages/layout.class.php:1436
794+#: server/lib/pages/layout.class.php:1701
795 msgid "Duration"
796 msgstr ""
797
798@@ -919,83 +952,91 @@
799 msgid "Report a Fault"
800 msgstr ""
801
802-#: server/lib/pages/fault.class.php:63
803+#: server/lib/pages/fault.class.php:61
804+msgid "Report a fault with Xibo"
805+msgstr ""
806+
807+#: server/lib/pages/fault.class.php:62
808+msgid "Before reporting a fault it would be appreciated if you follow the below steps."
809+msgstr ""
810+
811+#: server/lib/pages/fault.class.php:66
812 msgid "Check that the Environment passes all the Xibo Environment checks."
813 msgstr ""
814
815-#: server/lib/pages/fault.class.php:67
816+#: server/lib/pages/fault.class.php:70
817 msgid "Turn ON full auditing and debugging."
818 msgstr ""
819
820-#: server/lib/pages/fault.class.php:70
821+#: server/lib/pages/fault.class.php:73
822 msgid "Turn ON Debugging"
823 msgstr ""
824
825-#: server/lib/pages/fault.class.php:74
826+#: server/lib/pages/fault.class.php:77
827 msgid "Recreate the Problem in a new window."
828 msgstr ""
829
830-#: server/lib/pages/fault.class.php:77
831+#: server/lib/pages/fault.class.php:80
832 msgid "Automatically collect and export relevant information into a text file."
833 msgstr ""
834
835-#: server/lib/pages/fault.class.php:77
836+#: server/lib/pages/fault.class.php:80
837 msgid "Please save this file to your PC."
838 msgstr ""
839
840-#: server/lib/pages/fault.class.php:78
841+#: server/lib/pages/fault.class.php:81
842 msgid "Collect and Save Data"
843 msgstr ""
844
845-#: server/lib/pages/fault.class.php:81
846+#: server/lib/pages/fault.class.php:84
847 msgid "Turn full auditing and debugging OFF."
848 msgstr ""
849
850-#: server/lib/pages/fault.class.php:84
851+#: server/lib/pages/fault.class.php:87
852 msgid "Turn OFF Debugging"
853 msgstr ""
854
855-#: server/lib/pages/fault.class.php:88
856+#: server/lib/pages/fault.class.php:91
857 msgid "Click on the below link to open the bug report page for this Xibo release."
858 msgstr ""
859
860-#: server/lib/pages/fault.class.php:88
861+#: server/lib/pages/fault.class.php:91
862 msgid "Describe the problem and upload the file you obtained earlier."
863 msgstr ""
864
865-#: server/lib/pages/fault.class.php:89
866+#: server/lib/pages/fault.class.php:92
867 msgid "File a bug report in Launchpad"
868 msgstr ""
869
870-#: server/lib/pages/fault.class.php:97
871+#: server/lib/pages/fault.class.php:100
872 msgid "We will do our best to use the information collected above to solve your issue."
873 msgstr ""
874
875-#: server/lib/pages/fault.class.php:98
876+#: server/lib/pages/fault.class.php:101
877 msgid "However sometimes this will not be enough and you will be asked to put your Xibo installation into \"Test\" mode."
878 msgstr ""
879
880-#: server/lib/pages/fault.class.php:102
881+#: server/lib/pages/fault.class.php:105
882 msgid "Switch to Test Mode."
883 msgstr ""
884
885-#: server/lib/pages/fault.class.php:105
886+#: server/lib/pages/fault.class.php:108
887 msgid "Switch to Test Mode"
888 msgstr ""
889
890-#: server/lib/pages/fault.class.php:109
891+#: server/lib/pages/fault.class.php:112
892 msgid "Recreate the Problem in a new window and Capture a screenshot."
893 msgstr ""
894
895-#: server/lib/pages/fault.class.php:109
896+#: server/lib/pages/fault.class.php:112
897 msgid "You should send your screenshot to info@xibo.org.uk with a reference to the Launchpad Question/Bug you have created previously."
898 msgstr ""
899
900-#: server/lib/pages/fault.class.php:112
901+#: server/lib/pages/fault.class.php:115
902 msgid "Switch to Production Mode."
903 msgstr ""
904
905-#: server/lib/pages/fault.class.php:115
906+#: server/lib/pages/fault.class.php:118
907 msgid "Switch to Production Mode"
908 msgstr ""
909
910@@ -1129,6 +1170,18 @@
911 msgid "Edited the MenuItem Group Security"
912 msgstr ""
913
914+#: server/lib/pages/help.class.php:50
915+msgid "Error getting Help Link"
916+msgstr ""
917+
918+#: server/lib/pages/help.class.php:63
919+msgid "No such help file found"
920+msgstr ""
921+
922+#: server/lib/pages/help.class.php:68
923+msgid "You must specify a help page."
924+msgstr ""
925+
926 #: server/lib/pages/index.class.php:80
927 msgid "Incorrect Login Information."
928 msgstr ""
929@@ -1398,23 +1451,23 @@
930 msgid "Save Template"
931 msgstr ""
932
933-#: server/lib/pages/layout.class.php:1390
934+#: server/lib/pages/layout.class.php:1396
935 msgid "Media Controlled"
936 msgstr ""
937
938-#: server/lib/pages/layout.class.php:1525
939+#: server/lib/pages/layout.class.php:1536
940 msgid "Region Options"
941 msgstr ""
942
943-#: server/lib/pages/layout.class.php:1576
944+#: server/lib/pages/layout.class.php:1587
945 msgid "Error getting type from a media item."
946 msgstr ""
947
948-#: server/lib/pages/layout.class.php:1595
949+#: server/lib/pages/layout.class.php:1606
950 msgid "Cannot set region information."
951 msgstr ""
952
953-#: server/lib/pages/layout.class.php:1674
954+#: server/lib/pages/layout.class.php:1685
955 msgid "Empty Region"
956 msgstr ""
957
958@@ -1518,3 +1571,39 @@
959 msgid "Message"
960 msgstr ""
961
962+#: server/template/header.php:99
963+msgid "Click to show more time information"
964+msgstr ""
965+
966+#: server/template/pages/content_view.php:23
967+msgid "Add Media"
968+msgstr ""
969+
970+#: server/template/pages/content_view.php:24
971+msgid "Add media to the Library"
972+msgstr ""
973+
974+#: server/template/pages/content_view.php:25
975+msgid "Filter"
976+msgstr ""
977+
978+#: server/template/pages/content_view.php:26
979+msgid "Show Filter"
980+msgstr ""
981+
982+#: server/template/pages/group_view.php:23
983+msgid "Add Group"
984+msgstr ""
985+
986+#: server/template/pages/layout_view.php:23
987+msgid "Add Layout"
988+msgstr ""
989+
990+#: server/template/pages/log_view.php:23
991+msgid "Refresh"
992+msgstr ""
993+
994+#: server/template/pages/user_view.php:23
995+msgid "Add User"
996+msgstr ""
997+
998
999=== modified file 'server/img/Thumbs.db'
1000Binary files server/img/Thumbs.db 2008-12-14 14:42:52 +0000 and server/img/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1001=== modified file 'server/img/bodys/Thumbs.db'
1002Binary files server/img/bodys/Thumbs.db 2008-12-10 23:48:58 +0000 and server/img/bodys/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1003=== modified file 'server/img/dashboard/Thumbs.db'
1004Binary files server/img/dashboard/Thumbs.db 2008-12-10 23:48:58 +0000 and server/img/dashboard/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1005=== modified file 'server/img/dialogs/Thumbs.db'
1006Binary files server/img/dialogs/Thumbs.db 2008-12-10 23:48:58 +0000 and server/img/dialogs/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1007=== modified file 'server/img/fades/Thumbs.db'
1008Binary files server/img/fades/Thumbs.db 2008-12-10 23:48:58 +0000 and server/img/fades/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1009=== modified file 'server/img/filterform/Thumbs.db'
1010Binary files server/img/filterform/Thumbs.db 2008-12-14 14:42:52 +0000 and server/img/filterform/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1011=== modified file 'server/img/forms/Thumbs.db'
1012Binary files server/img/forms/Thumbs.db 2008-12-10 23:48:58 +0000 and server/img/forms/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1013=== added file 'server/img/help.png'
1014Binary files server/img/help.png 1970-01-01 00:00:00 +0000 and server/img/help.png 2009-05-14 19:20:44 +0000 differ
1015=== modified file 'server/img/login/Thumbs.db'
1016Binary files server/img/login/Thumbs.db 2008-12-10 23:48:58 +0000 and server/img/login/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1017=== modified file 'server/img/logos/Thumbs.db'
1018Binary files server/img/logos/Thumbs.db 2008-12-10 23:48:58 +0000 and server/img/logos/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1019=== added file 'server/img/logout.gif'
1020Binary files server/img/logout.gif 1970-01-01 00:00:00 +0000 and server/img/logout.gif 2009-05-14 19:20:44 +0000 differ
1021=== modified file 'server/img/tables/Thumbs.db'
1022Binary files server/img/tables/Thumbs.db 2008-12-10 23:48:58 +0000 and server/img/tables/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1023=== modified file 'server/img/tabs/Thumbs.db'
1024Binary files server/img/tabs/Thumbs.db 2008-12-10 23:48:58 +0000 and server/img/tabs/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1025=== modified file 'server/img/titles/Thumbs.db'
1026Binary files server/img/titles/Thumbs.db 2008-12-10 23:48:58 +0000 and server/img/titles/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1027=== modified file 'server/img/weather_rss/Thumbs.db'
1028Binary files server/img/weather_rss/Thumbs.db 2008-12-10 23:48:58 +0000 and server/img/weather_rss/Thumbs.db 2009-05-14 19:20:44 +0000 differ
1029=== modified file 'server/install.php'
1030--- server/install.php 2009-05-13 18:57:27 +0000
1031+++ server/install.php 2009-05-18 21:29:47 +0000
1032@@ -29,10 +29,30 @@
1033 include('install/header.inc');
1034 include('config/config.class.php');
1035 include('config/db_config.php');
1036-
1037-// Setup the translations for gettext
1038-require_once("lib/app/translationengine.class.php");
1039-TranslationEngine::InitLocale($db);
1040+
1041+// Setup for the Translations using Gettext.
1042+// There is normally a class that will do this for us - but it requires a DB object (which we do not have at install time)
1043+// Would be nice to include a method on the TranslationEngine that did this for us - but without the debugging
1044+// The actual translation function __() is included later in this file.
1045+$langs = Kit::GetParam('HTTP_ACCEPT_LANGUAGE', $_SERVER, _STRING);
1046+$lang = 'en-gb'; // Default language
1047+$encoding = ''; // We do not seem to need an encoding, but I read somewhere that we might - left as a reminder of this.
1048+
1049+if ($langs != '')
1050+{
1051+ $langs = explode(',', $langs);
1052+ $lang = $langs[0];
1053+}
1054+
1055+// For windows
1056+putenv('LANG='.$lang.'.'.$encoding);
1057+putenv('LANGUAGE='.$lang.'.'.$encoding);
1058+putenv('LC_ALL='.$lang.'.'.$encoding);
1059+
1060+// Set local
1061+setlocale(LC_ALL, $lang.'.'.$encoding);
1062+
1063+// Translations have been setup.
1064
1065 $fault = false;
1066
1067@@ -535,11 +555,6 @@
1068 return ((is_writable("install.php") && (is_writable("settings.php")) && (is_writable("upgrade.php")) || is_writable(".")));
1069 }
1070
1071-function checkPHP() {
1072- # Check PHP version > 5
1073- return (version_compare("5",phpversion(), "<="));
1074-}
1075-
1076 function checkMySQL() {
1077 # Check PHP has MySQL module installed
1078 return extension_loaded("mysql");
1079@@ -686,6 +701,29 @@
1080 return $key;
1081 }
1082
1083+function checkPHP()
1084+{
1085+ return (version_compare("5.2.4",phpversion(), "<="));
1086+}
1087+
1088+function CheckGettext()
1089+{
1090+ return extension_loaded("gettext");
1091+}
1092+
1093+// Setup the translations for gettext
1094+function __($string)
1095+{
1096+ if (CheckGettext())
1097+ {
1098+ return _($string);
1099+ }
1100+ else
1101+ {
1102+ return $string;
1103+ }
1104+}
1105+
1106 function settings_strings() {
1107 global $settings_header;
1108 global $settings_footer;
1109@@ -717,8 +755,4 @@
1110
1111 return;
1112 }
1113-
1114-function checkPHP() {
1115- return (version_compare("5.2.4",phpversion(), "<="));
1116-}
1117-?>
1118+?>
1119\ No newline at end of file
1120
1121=== added file 'server/install/database/100.sql'
1122--- server/install/database/100.sql 1970-01-01 00:00:00 +0000
1123+++ server/install/database/100.sql 2009-05-14 19:20:44 +0000
1124@@ -0,0 +1,15 @@
1125+INSERT INTO `pages` (
1126+`pageID` ,
1127+`name` ,
1128+`pagegroupID`
1129+)
1130+VALUES (
1131+NULL , 'help', '2'
1132+);
1133+
1134+CREATE TABLE `help` (
1135+`HelpID` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
1136+`Topic` VARCHAR( 254 ) NOT NULL ,
1137+`Category` VARCHAR( 254 ) NOT NULL DEFAULT 'General',
1138+`Link` VARCHAR( 254 ) NOT NULL
1139+) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci
1140\ No newline at end of file
1141
1142=== modified file 'server/lib/app/app_functions.php'
1143--- server/lib/app/app_functions.php 2009-02-21 17:52:52 +0000
1144+++ server/lib/app/app_functions.php 2009-05-17 17:05:42 +0000
1145@@ -37,7 +37,7 @@
1146 */
1147 function setMessage($message) {
1148 if (!isset($_SESSION['message'])) $_SESSION['message'] = "";
1149- $_SESSION['message'] .= "$message<br />";
1150+ $_SESSION['message'] .= $message . ' | ';
1151 }
1152
1153 function displayMessage($mode = MSG_MODE_AUTO, $msg="", $show_back = true, $template = "template/pages/message_page.php")
1154@@ -48,7 +48,7 @@
1155 case MSG_MODE_AUTO:
1156 if (isset($_SESSION['message']))
1157 {
1158- echo "<div class=\"highlight\">" . $_SESSION['message'] . "</div>";
1159+ echo $_SESSION['message'];
1160 unset($_SESSION['message']);
1161 }
1162 break;
1163@@ -259,39 +259,6 @@
1164 return true;
1165 }
1166
1167-/**
1168- * Depricate
1169- * @return
1170- * @param $var Object
1171- * @param $purpose Object
1172- * @param $db Object[optional]
1173- */
1174-function clean_input($var, $purpose, $db = false)
1175-{
1176- /*Cleans the $var depending on the $purpose*/
1177-
1178- switch ($purpose)
1179- {
1180-
1181- case VAR_FOR_SQL:
1182- if (!$db)
1183- {
1184- trigger_error("Trying to clean a var for SQL, but no DB passed", E_USER_ERROR);
1185- }
1186-
1187- if (!get_magic_quotes_gpc())
1188- {
1189- $var = $db->escape_string($var);
1190- }
1191-
1192- break;
1193-
1194- }
1195-
1196- return $var;
1197-}
1198-
1199-
1200 function sec2hms($sec, $padHours = false)
1201 {
1202 // holds formatted string
1203@@ -606,66 +573,6 @@
1204 }
1205
1206 /**
1207- * Cleans a file name
1208- * @return
1209- * @param $filename String
1210- */
1211-function cleanFilename($name)
1212-{
1213- $name = strtolower($name);
1214- $code_entities_match = array( '&quot;' ,'!' ,'@' ,'#' ,'$' ,'%' ,'^' ,'&' ,'*' ,'(' ,')' ,'+' ,'{' ,'}' ,'|' ,':' ,'"' ,'<' ,'>' ,'?' ,'[' ,']' ,'' ,';' ,"'" ,',' ,'_' ,'/' ,'*' ,'+' ,'~' ,'`' ,'=' ,' ' ,'---' ,'--','--');
1215- $code_entities_replace = array('' ,'-' ,'-' ,'' ,'' ,'' ,'-' ,'-' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'-' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'-' ,'-' ,'-' ,'' ,'' ,'' ,'' ,'' ,'-' ,'-' ,'-','-');
1216-
1217- $name = str_replace($code_entities_match, $code_entities_replace, $name);
1218- return $name;
1219-}
1220-
1221-/**
1222- * Depricate
1223- * @return
1224- * @param $number Object
1225- */
1226-function CleanNumber($number)
1227-{
1228- if (!is_numeric($number))
1229- {
1230- header("HTTP/1.1 404 Not Found");
1231- // How do I send the default apache 404 message
1232- // instead of the message below?
1233- print("<html><body>HTTP 404 - Possible Hack.</body></html>");
1234- exit;
1235- }
1236- return $number;
1237-}
1238-
1239-/**
1240- * Depricate
1241- * @return
1242- * @param $var Object
1243- */
1244-function validate($var)
1245-{
1246- $valid = true;
1247-
1248- // Validate against XSS
1249- if (strstr($var, "http")) $valid = false;
1250- if (strstr($var, "www")) $valid = false;
1251-
1252- if (eregi('[^A-Za-z0-9_]', $var)) $valid = false;
1253-
1254- if (!$valid)
1255- {
1256- header("HTTP/1.1 404 Not Found");
1257- // How do I send the default apache 404 message
1258- // instead of the message below?
1259- print("<html><body>HTTP 404 - Possible Hack.</body></html>");
1260- exit;
1261- }
1262-
1263- return $var;
1264-}
1265-
1266-/**
1267 * Creates a form token
1268 * @return
1269 */
1270
1271=== added file 'server/lib/app/datemanager.class.php'
1272--- server/lib/app/datemanager.class.php 1970-01-01 00:00:00 +0000
1273+++ server/lib/app/datemanager.class.php 2009-05-16 18:40:19 +0000
1274@@ -0,0 +1,70 @@
1275+<?php
1276+/*
1277+ * Xibo - Digitial Signage - http://www.xibo.org.uk
1278+ * Copyright (C) 2009 Daniel Garner
1279+ *
1280+ * This file is part of Xibo.
1281+ *
1282+ * Xibo is free software: you can redistribute it and/or modify
1283+ * it under the terms of the GNU Affero General Public License as published by
1284+ * the Free Software Foundation, either version 3 of the License, or
1285+ * any later version.
1286+ *
1287+ * Xibo is distributed in the hope that it will be useful,
1288+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
1289+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1290+ * GNU Affero General Public License for more details.
1291+ *
1292+ * You should have received a copy of the GNU Affero General Public License
1293+ * along with Xibo. If not, see <http://www.gnu.org/licenses/>.
1294+ */
1295+defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
1296+
1297+class DateManager
1298+{
1299+ private $db;
1300+
1301+ public function __construct(database $db)
1302+ {
1303+ $this->db =& $db;
1304+ }
1305+
1306+ public function GetClock()
1307+ {
1308+ return date("H:i T");
1309+ }
1310+
1311+ public function GetSystemClock()
1312+ {
1313+ return gmdate("H:i T");
1314+ }
1315+
1316+ public function GetLocalDate($format = 'Y-m-d H:i:s', $timestamp = '')
1317+ {
1318+ $db =& $this->db;
1319+
1320+ if ($timestamp == '')
1321+ {
1322+ $timestamp = time();
1323+ }
1324+
1325+ Debug::LogEntry($db, 'audit', 'Converting ' . $timestamp . ' to a Local Date');
1326+
1327+ return date($format, $timestamp);
1328+ }
1329+
1330+ public function GetSystemDate($format = 'Y-m-d H:i:s', $timestamp = '')
1331+ {
1332+ $db =& $this->db;
1333+
1334+ if ($timestamp == '')
1335+ {
1336+ $timestamp = time();
1337+ }
1338+
1339+ Debug::LogEntry($db, 'audit', 'Converting ' . $timestamp . ' to a System Date');
1340+
1341+ return gmdate($format, $timestamp);
1342+ }
1343+}
1344+?>
1345\ No newline at end of file
1346
1347=== modified file 'server/lib/app/debug.class.php'
1348--- server/lib/app/debug.class.php 2009-02-21 17:52:52 +0000
1349+++ server/lib/app/debug.class.php 2009-05-18 21:37:32 +0000
1350@@ -22,7 +22,6 @@
1351
1352 class Debug
1353 {
1354-
1355 public function __construct()
1356 {
1357 global $db;
1358
1359=== modified file 'server/lib/app/helpmanager.class.php'
1360--- server/lib/app/helpmanager.class.php 2009-03-07 23:21:15 +0000
1361+++ server/lib/app/helpmanager.class.php 2009-05-14 19:43:42 +0000
1362@@ -45,15 +45,15 @@
1363 */
1364 public function HelpButton($location, $return = false)
1365 {
1366- $db =& $this->db;
1367-
1368- $helpBase = Config::GetSetting($db, 'HELP_BASE');
1369-
1370- $link = $helpBase . "?p=$location";
1371-
1372- $button = <<<END
1373- <input type="button" onclick="window.open('$link')" value="Help" />
1374-END;
1375+ $db =& $this->db;
1376+
1377+ $location = split('/', $location);
1378+ $topic = ucfirst($location[0]);
1379+ $category = ucfirst($location[1]);
1380+
1381+ $msgHelp = __('Help');
1382+
1383+ $button = '<input type="button" class="XiboHelpButton" href="' . 'index.php?p=help&q=Display&Topic=' . $topic . '&Category=' . $category . '" value="'. $msgHelp .'" />';
1384
1385 if ($return)
1386 {
1387@@ -90,5 +90,25 @@
1388 return true;
1389 }
1390 }
1391+
1392+ /**
1393+ * Outputs a help link
1394+ * @return
1395+ * @param $topic Object[optional]
1396+ * @param $category Object[optional]
1397+ */
1398+ public function Link($topic = "", $category = "General")
1399+ {
1400+ $db =& $this->db;
1401+ $user =& $this->user;
1402+
1403+ // if topic is empty use the page name
1404+ $topic = Kit::GetParam('p', _REQUEST, _WORD, $topic);
1405+ $topic = ucfirst($topic);
1406+
1407+ $link = 'index.php?p=help&q=Display&Topic=' . $topic . '&Category=' . $category . '';
1408+
1409+ return $link;
1410+ }
1411 }
1412 ?>
1413
1414=== modified file 'server/lib/app/translationengine.class.php'
1415--- server/lib/app/translationengine.class.php 2009-04-25 12:05:59 +0000
1416+++ server/lib/app/translationengine.class.php 2009-05-18 21:29:47 +0000
1417@@ -29,7 +29,7 @@
1418 public static function InitLocale(database $db)
1419 {
1420 $domain = 'default';
1421- $encoding = 'UTF8';
1422+ $encoding = ''; // We dont seem to need an encoding
1423 $config = new Config($db);
1424
1425 Debug::LogEntry($db, 'audit', 'IN', 'TranslationEngine', 'InitLocal');
1426@@ -69,8 +69,6 @@
1427 }
1428 }
1429
1430- //$lang = 'fr';
1431-
1432 // For windows
1433 putenv('LANG='.$lang.'.'.$encoding);
1434 putenv('LANGUAGE='.$lang.'.'.$encoding);
1435
1436=== modified file 'server/lib/include.php'
1437--- server/lib/include.php 2009-04-05 13:22:21 +0000
1438+++ server/lib/include.php 2009-05-16 18:40:19 +0000
1439@@ -35,6 +35,7 @@
1440 require_once("lib/app/formmanager.class.php");
1441 require_once("lib/app/helpmanager.class.php");
1442 require_once("lib/app/responsemanager.class.php");
1443+require_once("lib/app/datemanager.class.php");
1444 require_once("lib/app/app_functions.php");
1445 require_once("lib/modules/module.interface.php");
1446 require_once("lib/modules/module.class.php");
1447
1448=== modified file 'server/lib/js/core.js'
1449--- server/lib/js/core.js 2009-02-23 19:48:15 +0000
1450+++ server/lib/js/core.js 2009-05-14 19:43:42 +0000
1451@@ -30,6 +30,17 @@
1452 bgiframe: true,
1453 autoOpen: false
1454 }).parent().parent().css("z-index", "300");
1455+
1456+ // Setup the dialogs
1457+ $('#help_dialog').dialog({
1458+ title: "Xibo Help",
1459+ width: "500px",
1460+ height: "240px",
1461+ draggable: true,
1462+ resizable: false,
1463+ bgiframe: true,
1464+ autoOpen: false
1465+ }).parent().parent().css("z-index", "300");
1466
1467 $('#system_message').dialog({
1468 title: "Application Message",
1469@@ -117,6 +128,16 @@
1470
1471 return false;
1472 });
1473+
1474+ // Search for any help enabled elements
1475+ $(scope + " .XiboHelpButton").click(function(){
1476+
1477+ var formUrl = $(this).attr("href");
1478+
1479+ XiboHelpRender(formUrl);
1480+
1481+ return false;
1482+ });
1483 }
1484
1485 /**
1486@@ -343,6 +364,80 @@
1487 }
1488
1489 /**
1490+ * Renders the formid provided
1491+ * @param {String} formId
1492+ */
1493+function XiboHelpRender(formUrl) {
1494+
1495+ // Prepare the Dialog
1496+ $('#help_dialog').dialog("close");
1497+ $('#help_dialog').html("");
1498+
1499+ // Call with AJAX
1500+ $.ajax({
1501+ type: "get",
1502+ url: formUrl + "&ajax=true",
1503+ cache: false,
1504+ dataType: "json",
1505+ success: function(response){
1506+
1507+ // Was the Call successful
1508+ if (response.success) {
1509+ // Set the dialog HTML to be the response HTML
1510+ $('#help_dialog').html(response.html);
1511+
1512+ // Is there a title for the dialog?
1513+ if (response.dialogTitle != undefined && response.dialogTitle != "") {
1514+ // Set the dialog title
1515+ $('#help_dialog').parent().children().each(function(){
1516+ $(".ui-dialog-title", this).html(response.dialogTitle);
1517+ });
1518+ }
1519+
1520+ // Do we need to alter the dialog size?
1521+ if (response.dialogSize) {
1522+ $('#help_dialog').parent().parent().width(response.dialogWidth).height(response.dialogHeight);
1523+ }
1524+
1525+ // Do we have to call any functions due to this success?
1526+ if (response.callBack != "" && response.callBack != undefined) {
1527+ eval(response.callBack)(name);
1528+ }
1529+
1530+ $('#help_dialog').dialog("open");
1531+
1532+ // Focus in the first form element
1533+ $('input[@type=text]', '#help_dialog').eq(0).focus();
1534+
1535+ // Call Xibo Init for this form
1536+ XiboInitialise("#help_dialog");
1537+ }
1538+ else {
1539+ // Login Form needed?
1540+ if (response.login) {
1541+ LoginBox(response.message);
1542+ return false;
1543+ }
1544+ else {
1545+ // Just an error we dont know about
1546+ if (response.message == undefined) {
1547+ SystemMessage(response);
1548+ }
1549+ else {
1550+ SystemMessage(response.message);
1551+ }
1552+ }
1553+ }
1554+
1555+ return false;
1556+ }
1557+ });
1558+
1559+ // Dont then submit the link/button
1560+ return false;
1561+}
1562+
1563+/**
1564 * Display a login box
1565 * @param {String} message
1566 */
1567
1568=== added file 'server/lib/pages/clock.class.php'
1569--- server/lib/pages/clock.class.php 1970-01-01 00:00:00 +0000
1570+++ server/lib/pages/clock.class.php 2009-05-17 17:05:42 +0000
1571@@ -0,0 +1,72 @@
1572+<?php
1573+/*
1574+ * Xibo - Digitial Signage - http://www.xibo.org.uk
1575+ * Copyright (C) 2009 Daniel Garner
1576+ *
1577+ * This file is part of Xibo.
1578+ *
1579+ * Xibo is free software: you can redistribute it and/or modify
1580+ * it under the terms of the GNU Affero General Public License as published by
1581+ * the Free Software Foundation, either version 3 of the License, or
1582+ * any later version.
1583+ *
1584+ * Xibo is distributed in the hope that it will be useful,
1585+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
1586+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1587+ * GNU Affero General Public License for more details.
1588+ *
1589+ * You should have received a copy of the GNU Affero General Public License
1590+ * along with Xibo. If not, see <http://www.gnu.org/licenses/>.
1591+ */
1592+defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
1593+
1594+class clockDAO
1595+{
1596+ private $db;
1597+ private $user;
1598+
1599+ function __construct(database $db, user $user)
1600+ {
1601+ $this->db =& $db;
1602+ $this->user =& $user;
1603+
1604+ }
1605+
1606+ function displayPage()
1607+ {
1608+ return false;
1609+ }
1610+
1611+ function on_page_load()
1612+ {
1613+ return '';
1614+ }
1615+
1616+ function echo_page_heading()
1617+ {
1618+ return true;
1619+ }
1620+
1621+ /**
1622+ * Shows the Time Information
1623+ * @return
1624+ */
1625+ function ShowTimeInfo()
1626+ {
1627+ $db =& $this->db;
1628+ $response = new ResponseManager();
1629+ $datemanager = new DateManager($db);
1630+
1631+ $output = '<h3>' . __('System Information') . '</h3>';
1632+ $output .= '<ul>';
1633+ $output .= '<li>' . __('Local Time') . ': ' . $datemanager->GetClock() . '</li>';
1634+ $output .= '<li>' . __('System Time') . ': ' . $datemanager->GetSystemClock() . '</li>';
1635+ $output .= '<li>' . __('Local Date') . ': ' . $datemanager->GetLocalDate('Y-m-d H:i:s') . '</li>';
1636+ $output .= '<li>' . __('System Date') . ': ' . $datemanager->GetSystemDate('Y-m-d H:i:s') . '</li>';
1637+ $output .= '</ul>';
1638+
1639+ $response->SetFormRequestResponse($output, __('Date / Time Information'), '480px', '240px');
1640+ $response->Respond();
1641+ }
1642+}
1643+?>
1644\ No newline at end of file
1645
1646=== modified file 'server/lib/pages/fault.class.php'
1647--- server/lib/pages/fault.class.php 2009-04-29 19:31:19 +0000
1648+++ server/lib/pages/fault.class.php 2009-05-17 17:05:42 +0000
1649@@ -57,6 +57,9 @@
1650 $output = '';
1651
1652 $config = new Config($db);
1653+
1654+ $output .= '<h2>' . __('Report a fault with Xibo') . '</h2>';
1655+ $output .= '<p>' . __('Before reporting a fault it would be appreciated if you follow the below steps.') . '</p>';
1656
1657 $output .= '<div class="ReportFault">';
1658 $output .= '<ol>';
1659
1660=== added file 'server/lib/pages/help.class.php'
1661--- server/lib/pages/help.class.php 1970-01-01 00:00:00 +0000
1662+++ server/lib/pages/help.class.php 2009-05-14 19:20:44 +0000
1663@@ -0,0 +1,118 @@
1664+<?php
1665+/*
1666+ * Xibo - Digitial Signage - http://www.xibo.org.uk
1667+ * Copyright (C) 2009 Daniel Garner
1668+ *
1669+ * This file is part of Xibo.
1670+ *
1671+ * Xibo is free software: you can redistribute it and/or modify
1672+ * it under the terms of the GNU Affero General Public License as published by
1673+ * the Free Software Foundation, either version 3 of the License, or
1674+ * any later version.
1675+ *
1676+ * Xibo is distributed in the hope that it will be useful,
1677+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
1678+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1679+ * GNU Affero General Public License for more details.
1680+ *
1681+ * You should have received a copy of the GNU Affero General Public License
1682+ * along with Xibo. If not, see <http://www.gnu.org/licenses/>.
1683+ */
1684+defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
1685+
1686+class helpDAO
1687+{
1688+ private $db;
1689+ private $user;
1690+ private $helpLink;
1691+
1692+ function __construct(database $db, user $user)
1693+ {
1694+ $this->db =& $db;
1695+ $this->user =& $user;
1696+
1697+ $topic = Kit::GetParam('Topic', _REQUEST, _WORD);
1698+ $category = Kit::GetParam('Category', _REQUEST, _WORD, 'General');
1699+
1700+ if ($topic != '')
1701+ {
1702+ Debug::LogEntry($db, 'audit', 'Help requested for Topic = ' . $topic);
1703+
1704+ // Look up this help topic / category in the db
1705+ $SQL = "SELECT Link FROM help WHERE Topic = '%s' and Category = '%s'";
1706+ $SQL = sprintf($SQL, $db->escape_string($topic), $db->escape_string($category));
1707+
1708+ Debug::LogEntry($db, 'audit', $SQL);
1709+
1710+ if(!$results = $db->query($SQL))
1711+ {
1712+ trigger_error($db->error());
1713+ trigger_error(__('Error getting Help Link'), E_USER_ERROR);
1714+ }
1715+
1716+ if ($db->num_rows($results) != 0)
1717+ {
1718+ $row = $db->get_row($results);
1719+ $link = $row[0];
1720+
1721+ // Store the link for the requested help page
1722+ $this->helpLink = $link;
1723+ }
1724+ else
1725+ {
1726+ trigger_error(__('No such help file found'), E_USER_ERROR);
1727+ }
1728+ }
1729+ else
1730+ {
1731+ trigger_error(__('You must specify a help page.'), E_USER_ERROR);
1732+ }
1733+
1734+ return true;
1735+ }
1736+
1737+ /**
1738+ * Displays the particular help subject / page
1739+ * @return
1740+ */
1741+ function Display()
1742+ {
1743+ $response = new ResponseManager();
1744+ $helpLink = $this->helpLink;
1745+
1746+ $out = '<iframe src="' . $helpLink . '" width="770" height="600"></iframe>';
1747+
1748+ $response->SetFormRequestResponse($out, __('Help'), '800px', '650px');
1749+ $response->Respond();
1750+
1751+ return true;
1752+ }
1753+
1754+ /**
1755+ * No display page functionaility
1756+ * @return
1757+ */
1758+ function displayPage()
1759+ {
1760+ return false;
1761+ }
1762+
1763+ /**
1764+ * No onload
1765+ * @return
1766+ */
1767+ function on_page_load()
1768+ {
1769+ return '';
1770+ }
1771+
1772+ /**
1773+ * No page heading
1774+ * @return
1775+ */
1776+ function echo_page_heading()
1777+ {
1778+ return true;
1779+ }
1780+}
1781+?>
1782\ No newline at end of file
1783
1784=== modified file 'server/lib/pages/module.class.php'
1785--- server/lib/pages/module.class.php 2009-04-26 17:28:25 +0000
1786+++ server/lib/pages/module.class.php 2009-05-14 19:20:44 +0000
1787@@ -113,7 +113,7 @@
1788 */
1789 function GetImage()
1790 {
1791- $db =& $this->db;
1792+ $db =& $this->db;
1793
1794 $file = Kit::GetParam('file', _REQUEST, _STRING);
1795 $dynamic = isset($_REQUEST['dynamic']);
1796
1797=== modified file 'server/template/css/presentation.css'
1798--- server/template/css/presentation.css 2009-01-04 12:59:11 +0000
1799+++ server/template/css/presentation.css 2009-05-14 19:20:44 +0000
1800@@ -287,7 +287,7 @@
1801 }
1802
1803 #headerback {
1804- float: left;
1805+ float: right;
1806 }
1807
1808 #contentwrap {
1809
1810=== modified file 'server/template/css/xibo.css'
1811--- server/template/css/xibo.css 2009-03-22 17:58:21 +0000
1812+++ server/template/css/xibo.css 2009-05-17 17:05:42 +0000
1813@@ -34,6 +34,10 @@
1814 padding-right: 15px;
1815 }
1816
1817+#headerback, #headerback a {
1818+ color: #003399;
1819+}
1820+
1821 .FilterDiv {
1822 display: none;
1823 }
1824@@ -41,3 +45,12 @@
1825 .ReportFault ol li {
1826 display: list-item;
1827 }
1828+
1829+.HelpLink {
1830+ float:right;
1831+}
1832+
1833+.HelpLink a {
1834+ padding-left: 10px;
1835+ padding-right: 10px;
1836+}
1837
1838=== modified file 'server/template/footer.php'
1839--- server/template/footer.php 2009-01-24 18:54:42 +0000
1840+++ server/template/footer.php 2009-05-14 19:43:42 +0000
1841@@ -32,6 +32,7 @@
1842 </div>
1843
1844 <div id="div_dialog"></div>
1845+<div id="help_dialog"></div>
1846
1847 </div> <!-- Ends the content div -->
1848 </div> <!-- Ends contentwrap div -->
1849
1850=== modified file 'server/template/header.php'
1851--- server/template/header.php 2009-02-22 19:13:38 +0000
1852+++ server/template/header.php 2009-05-17 17:05:42 +0000
1853@@ -36,6 +36,11 @@
1854 {
1855 $homepageName = substr($homepage, 0, strpos($homepage, '&'));
1856 }
1857+
1858+$help = new HelpManager($db, $user);
1859+$helpLink = $help->Link();
1860+
1861+$datemanager = new DateManager($db);
1862
1863 ?>
1864 <!DOCTYPE html PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1865@@ -87,10 +92,15 @@
1866 <div id="container">
1867 <div id="headercontainer">
1868 <div id="header"></div>
1869- <div id="headerback">
1870- <h5>Welcome back <?php echo $username; ?>.</h5>
1871+ <div class="SecondNav" id="headerback">
1872+ <ul>
1873+ <?php displayMessage(); ?>
1874+ <li><?php echo $username; ?></li>
1875+ <li><a class="XiboFormButton" href="index.php?p=clock&q=ShowTimeInfo" title="<?php echo __('Click to show more time information'); ?>"><?php echo $datemanager->GetClock(); ?></a></li>
1876+ <li><a title="Show <?php echo ucfirst($p); ?> Help" class="XiboHelpButton" href="<?php echo $helpLink; ?>">Help</a></li>
1877+ <li><a title="Logout" href="index.php?q=logout">Logout</a></li>
1878+ </ul>
1879 </div>
1880- <?php displayMessage(); ?>
1881 </div>
1882 <div id="navigation">
1883 <ul id="nav">
1884@@ -146,7 +156,6 @@
1885 }
1886 }
1887 ?>
1888- <li><a href="index.php?q=logout">Log out</a></li>
1889 </ul>
1890 </div>
1891 <div id="contentwrap">
1892
1893=== modified file 'server/template/pages/content_view.php'
1894--- server/template/pages/content_view.php 2009-01-25 20:08:32 +0000
1895+++ server/template/pages/content_view.php 2009-05-17 17:05:42 +0000
1896@@ -20,6 +20,11 @@
1897 */
1898 defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
1899
1900+$msgMedia = __('Add Media');
1901+$msgMediaDet = __('Add media to the Library');
1902+$msgFilter = __('Filter');
1903+$msgShowFilter = __('Show Filter');
1904+
1905 ?>
1906 <div id="form_container">
1907 <div id="form_header">
1908@@ -33,61 +38,10 @@
1909 <div class="SecondNav">
1910 <!-- Maybe at a later date we could have these buttons generated from the DB - and therefore passed through the security system ? -->
1911 <ul>
1912- <li><a title="Add media to the Library" class="XiboFormButton" href="index.php?p=content&q=displayForms&sp=add" ><span>Add Media</span></a></li>
1913- <li><a title="Show User Help" href="#" onclick="toggle_div_view('notes')"><span>Help</span></a></li>
1914- <li><a title="Show Filter" href="#" onclick="ToggleFilterView('LibraryFilter')"><span>Filter</span></a></li>
1915+ <li><a title="<?php echo $msgMediaDet; ?>" class="XiboFormButton" href="index.php?p=content&q=displayForms&sp=add" ><span><?php echo $msgMedia; ?></span></a></li>
1916+ <li><a title="<?php echo $msgShowFilter; ?>" href="#" onclick="ToggleFilterView('LibraryFilter')"><span><?php echo $msgFilter; ?></span></a></li>
1917 </ul>
1918 </div>
1919- <div id="notes" style="display:none;">
1920- <h4>Content Help <a href="http://www.xibo.org.uk/manual/index.php?p=content/content/overview" target="_blank" alt="The Manual">(Click for Manual)</a></h4>
1921- <div id="helptabs">
1922- <ul id="help" class="tabs-nav"><!-- the class on this element has to remain the same -->
1923- <li><a href="#add_help_div" class="help_tab"><span>Add/Edit</span></a></li>
1924- <li><a href="#tips_div" class="help_tab"><span>Tips</span></a></li>
1925- <li><a href="#terms_div" class="help_tab"><span>Terms</span></a></li>
1926- </ul>
1927-
1928- <div id="add_help_div">
1929- <h5>What is content?</h5>
1930- <p>Xibo uses content to on layotus. The content library is a store of all the content that
1931- has been used on layouts in the past, and content to be used on new layouts.</p>
1932-
1933- <h5>When should content be added?</h5>
1934- <p>From this content library page, content should be added before it is needed. However
1935- content can also be added when creating layouts using the layout designer.</p>
1936-
1937- <h5>To add content</h5>
1938- <p>Click on the top left hand "Add Content" button. The form presented has 5 content options as
1939- tabs across the top. To select the appropriate type of content click on the tab required. Enter the details
1940- in this form. All required fields are marked with a *.</p>
1941-
1942- <h5>To edit content</h5>
1943- <p>Click on the "Edit" button in the action column.<br />
1944- <strong>Note:</strong> If there is no edit button then you do not
1945- have permission to edit that content.</p>
1946-
1947- </div>
1948- <div id="tips_div">
1949- <p>A content item is piece of media that you wish to display. This can be may different types of media, such as Videos, Flash animations, RSS feeds, Pictures and more.</p>
1950- <p>The table comprises of all the content items that you have uploaded or created. You can also see any other content items that a user has shared within this table</p>
1951- <p>You can use the filter form to search for the content item that you would like to modify.</p>
1952- <p>Xibo does it's best to auto complete items information, but depending on the source this information may not be available.</p>
1953- <p>Xibo's media support will be constantly expanding to cater for more functionality.<p>
1954- </div>
1955- <div id="terms_div">
1956- <p><strong>Content</strong> is used to define the different items that can be added to the database. This can be in the form of media files, websites, RSS files etc..</p>
1957- <p><strong>WMV</strong> stands for Windows Media Video files. These files allow full motion video to be shown on your display</p>
1958- <p><strong>JPG</strong> is the common type of file used for still photos</p>
1959- <p><strong>PPT</strong> Powerpoint files can also be media types. If you wish to set an automated powerpoint presentation to display all your slides you must configure this prior to upload. Powerpoint
1960- support is only available under Internet Explorer and with client machines that have MS Office installed.</p>
1961- <p><strong>SWF</strong> these are flash animation files.</p>
1962- <p><strong>RSS</strong> you can set an RSS news feed to be displayed. You can also add styling so your information has extra visual impact.</p>
1963- <p><strong>URL</strong> this will take a live website and display it on the screen</p>
1964- <p><strong>Text</strong> text can be used to add information or notes to your display. These can have a style associated with them.</p>
1965- </div>
1966- </div>
1967- </div>
1968-
1969 <?php $this->LibraryFilter(); ?>
1970
1971 </div>
1972
1973=== modified file 'server/template/pages/fault_view.php'
1974--- server/template/pages/fault_view.php 2009-03-22 12:06:30 +0000
1975+++ server/template/pages/fault_view.php 2009-05-17 17:05:42 +0000
1976@@ -30,8 +30,6 @@
1977 <div class="SecondNav">
1978
1979 </div>
1980- <h2>Report a fault with Xibo</h2>
1981- <p>Before reporting a fault it would be appreciated if you follow the below steps.</p>
1982 <?php $this->ReportForm(); ?>
1983 </div>
1984
1985
1986=== modified file 'server/template/pages/group_view.php'
1987--- server/template/pages/group_view.php 2009-01-24 19:11:18 +0000
1988+++ server/template/pages/group_view.php 2009-05-17 17:05:42 +0000
1989@@ -19,6 +19,11 @@
1990 * along with Xibo. If not, see <http://www.gnu.org/licenses/>.
1991 */
1992 defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
1993+
1994+$msgGroup = __('Add Group');
1995+$msgFilter = __('Filter');
1996+$msgShowFilter = __('Show Filter');
1997+
1998 ?>
1999
2000 <div id="form_container">
2001@@ -33,46 +38,10 @@
2002 <div class="SecondNav">
2003 <!-- Maybe at a later date we could have these buttons generated from the DB - and therefore passed through the security system ? -->
2004 <ul>
2005- <li><a title="Add a new Group" class="XiboFormButton" href="index.php?p=group&q=GroupForm" ><span>Add Group</span></a></li>
2006- <li><a title="Show Layout Help" href="#" onclick="toggle_div_view('notes')"><span>Help</span></a></li>
2007- <li><a title="Show Filter" href="#" onclick="ToggleFilterView('GroupFilter')"><span>Filter</span></a></li>
2008+ <li><a title="<?php echo $msgGroup; ?>" class="XiboFormButton" href="index.php?p=group&q=GroupForm" ><span><?php echo $msgGroup; ?></span></a></li>
2009+ <li><a title="<?php echo $msgShowFilter; ?>" href="#" onclick="ToggleFilterView('GroupFilter')"><span><?php echo $msgFilter; ?></span></a></li>
2010 </ul>
2011 </div>
2012- <div id="notes" style="display:none;">
2013- <h4>Group Help <a alt="The Manual" target="_blank" href="manual/index.php?p=content/users/groups">(Click for Manual)</a></h4>
2014- <div id="helptabs">
2015- <ul id="help" class="tabs-nav"><!-- the class on this element has to remain the same -->
2016- <li><a href="#add_div" class="help_tab"><span>Adding</span></a></li>
2017- <li><a href="#edit_div" class="help_tab"><span>Edit</span></a></li>
2018- <li><a href="#tips_div" class="help_tab"><span>Tips</span></a></li>
2019- <li><a href="#terms_div" class="help_tab"><span>Terms</span></a></li>
2020- </ul>
2021- <div id="add_div">
2022- <h5>Adding a Group</h5>
2023- <p>To add a group click on the "Add Group" button found at the top left of this page.</p>
2024-
2025- <h5>When should a group be added?</h5>
2026- <p>A group should be added when there is a new set of components required for a particular group of users.
2027- It could be that you want certain users to only have access to certain components or that certain users
2028- shouldnt be able to share their content, playlists and schedules with each other.</p>
2029- </div>
2030- <div id="edit_div">
2031- <h5>Edit a Group</h5>
2032- <p>To edit a group click on the edit button on the row belonging to the group you wish to edit.</p>
2033-
2034- <h5>Group / Component Security</h5>
2035- <p>When editing a group the components that are assigned / unassigned to that group are show. These
2036- determine the permissions of the users belonging to that group.</p>
2037- </div>
2038- <div id="tips_div">
2039- <p>You should always have at least one group.</p>
2040- </div>
2041- <div id="terms_div">
2042- <p><strong>Name</strong> is a unique identifier for a group.</p>
2043- <p><strong>Components</strong> refer to parts of Xibo, e.g. Content, or Playlists.</p>
2044- </div>
2045- </div>
2046- </div>
2047 <?php $this->GroupGrid(); ?>
2048 </div>
2049
2050
2051=== modified file 'server/template/pages/layout_view.php'
2052--- server/template/pages/layout_view.php 2009-01-24 18:54:42 +0000
2053+++ server/template/pages/layout_view.php 2009-05-17 17:05:42 +0000
2054@@ -17,7 +17,13 @@
2055 *
2056 * You should have received a copy of the GNU Affero General Public License
2057 * along with Xibo. If not, see <http://www.gnu.org/licenses/>.
2058- */
2059+ */
2060+defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
2061+
2062+$msgLayout = __('Add Layout');
2063+$msgFilter = __('Filter');
2064+$msgShowFilter = __('Show Filter');
2065+
2066 ?>
2067 <div id="form_container">
2068 <div id="form_header">
2069@@ -29,84 +35,10 @@
2070 <div class="SecondNav">
2071 <!-- Maybe at a later date we could have these buttons generated from the DB - and therefore passed through the security system ? -->
2072 <ul>
2073- <li><a title="Add a new Layout" class="XiboFormButton" href="index.php?p=layout&q=displayForm" ><span>Add Layout</span></a></li>
2074- <li><a title="Show Layout Help" href="#" onclick="toggle_div_view('notes')"><span>Help</span></a></li>
2075- <li><a title="Show Filter" href="#" onclick="ToggleFilterView('LayoutFilter')"><span>Filter</span></a></li>
2076+ <li><a title="<?php echo $msgLayout; ?>" class="XiboFormButton" href="index.php?p=layout&q=displayForm" ><span><?php echo $msgLayout; ?></span></a></li>
2077+ <li><a title="<?php echo $msgShowFilter; ?>" href="#" onclick="ToggleFilterView('LayoutFilter')"><span><?php echo $msgFilter; ?></span></a></li>
2078 </ul>
2079 </div>
2080- <div id="notes" style="display:none;">
2081- <h4>Layout Help <a href="http://www.xibo.org.uk/manual/index.php?p=content/layout/overview" target="_blank" alt="The Manual">(Click for Manual)</a></h4>
2082- <div id="helptabs">
2083- <ul id="help" class="tabs-nav"><!-- the class on this element has to remain the same -->
2084- <li><a href="#add_div" class="help_tab"><span>Add/Edit</span></a></li>
2085- <li><a href="#design_div" class="help_tab"><span>Design</span></a></li>
2086- <li><a href="#tips_div" class="help_tab"><span>Tips</span></a></li>
2087- <li><a href="#terms_div" class="help_tab"><span>Terms</span></a></li>
2088- </ul>
2089-
2090- <div id="add_div">
2091- <h5>When to add a layout, and when to design an existing one?</h5>
2092- <p>A Layout should be added when you have some <strong>new</strong> content you want shown together on a different background
2093- or for a different screen type.<br />
2094- To add to content that is already on a layout and being shown together on the display network you should design the layout.</p>
2095-
2096- <h5>To add a Layout</h5>
2097- <p>To add a layout click on the Add Layout button (green plus sign). A form will appear - enter the details
2098- in this form. All required fields are marked with a *.</p>
2099-
2100- <h5>To edit a Layout</h5>
2101- <p>To edit a layout use the fitler or page navigation buttons to find it in the table list and then click the
2102- edit button found in the action column. <br />
2103- <strong>Note:</strong> If there is no edit button then you do not
2104- have permission to edit that layout.</p>
2105-
2106- <h5>For adding and editing</h5>
2107- <p>The layout name be unique - you cannot have two layouts with the same name. <br />
2108- The description field is for any more information.<br />
2109- The Shared option determines which other Xibo users can use this layout.</p>
2110- </div>
2111- <div id="design_div">
2112- <h5>Designing a Layout</h5>
2113- <p>Designing a layout involves adding regions and content to it. Layouts can have many types of content -
2114- content from the library (media, text, rss, etc) or content specific to the layout (tickers, text, webpages).</p>
2115-
2116- <h5>When should I design a layout?</h5>
2117- <p>Layouts should be designed either just after they have been created, or whenever content needs to
2118- be added or changed.</p>
2119- </div>
2120- <div id="tips_div">
2121- <h5>What is a layout?</h5>
2122- <p>A layout is the concept used to group together content items into a visual style so that they can be
2123- scheduled for a display to show. A layout allows you to create slides which display your content.
2124- A layout can be made up of multiple regions, holding your media items. The table below shows you all the
2125- layouts that you have created along with any others that have been shared by other users on the system.</p>
2126-
2127- <h5>The other buttons</h5>
2128- <p>The action buttons allow you to edit that layout and media.</p>
2129-
2130- <h5>Filter Form and Data table</h5>
2131- <p>You can use the filter form to search for the layout that you would like to work on. Altering values
2132- in the filter form will alter the layouts shown in the data table below.</p>
2133- <p>The table headings can be used to sort the data table. Clicking on a heading will sort the table by that
2134- heading. This can be done in conjunction with a filtered search. Holding down the shift key while
2135- sorting on headings will progressively sort the data table.</p>
2136- <p><strong>E.g.</strong> Select Shared "Public" from the filter form, and then click on the description data
2137- table heading. The data table is now only showing the "Public" playlists sorted by description.</p>
2138- </div>
2139- <div id="terms_div">
2140- <p><strong>Name</strong> is the name of the layout that was assigned when it was created. This can be edited by clicking
2141- on the edit action button in the table</p>
2142- <p><strong>Description</strong> provides information about the layout. This can be edited by clicking on the edit action
2143- button in the table</p>
2144- <p><strong># Slides</strong> indicates the number of slides on the layout.</p>
2145- <p><strong>h:mi:ss</strong> this gives you the runtime of the playlist.</p>
2146- <p><strong>Shared</strong> this states whether a playlist has been made public or private. Public layouts are
2147- accesible for all users to schedule where as private playlists can only be scheduled by yourself or an administrator</p>
2148- <p><strong>Ownership</strong> states the user who has created the layout</p>
2149- <p><strong>Action</strong> provides buttons for the actions that are available to you for each layout you own.</p>
2150- </div>
2151- </div>
2152- </div>
2153 <?php $this->LayoutFilter(); ?>
2154 </div>
2155
2156@@ -116,5 +48,4 @@
2157 <div id="form_footer_right">
2158 </div>
2159 </div>
2160-</div>
2161-
2162\ No newline at end of file
2163+</div>
2164\ No newline at end of file
2165
2166=== modified file 'server/template/pages/log_view.php'
2167--- server/template/pages/log_view.php 2009-02-08 12:49:24 +0000
2168+++ server/template/pages/log_view.php 2009-05-17 17:05:42 +0000
2169@@ -19,6 +19,10 @@
2170 * along with Xibo. If not, see <http://www.gnu.org/licenses/>.
2171 */
2172 defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
2173+
2174+$msgRefresh = __('Refresh');
2175+$msgFilter = __('Filter');
2176+$msgShowFilter = __('Show Filter');
2177 ?>
2178 <div id="form_container">
2179 <div id="form_header">
2180@@ -32,36 +36,10 @@
2181 <div class="SecondNav">
2182 <!-- Maybe at a later date we could have these buttons generated from the DB - and therefore passed through the security system ? -->
2183 <ul>
2184- <li><a title="Show Sessions Help" href="#" onclick="toggle_div_view('notes')"><span>Help</span></a></li>
2185- <li><a title="Show Filter" href="#" onclick="ToggleFilterView('LogFilter')"><span>Filter</span></a></li>
2186- <li><a title="Refresh the Results" href='#' onclick="XiboGridRender('LogGridId')"><span>Refresh</span></a></li>
2187+ <li><a title="<?php echo $msgRefresh; ?>" href='#' onclick="XiboGridRender('LogGridId')"><span><?php echo $msgRefresh; ?></span></a></li>
2188+ <li><a title="<?php echo $msgShowFilter; ?>" href="#" onclick="ToggleFilterView('LogFilter')"><span><?php echo $msgFilter; ?></span></a></li>
2189 </ul>
2190 </div>
2191-
2192- <div id="notes" style="display:none;">
2193- <h4>Error Log Help</h4>
2194- <div id="helptabs">
2195-
2196- <ul id="help" class="tabs-nav">
2197- <li><a href="#tips_div" class="help_tab"><span>Tips</span></a></li>
2198- <li><a href="#terms_div" class="help_tab"><span>Terms</span></a></li>
2199- </ul>
2200-
2201- <div id="tips_div">
2202- <p>The error log is used to help troubleshoot problems with Xibo. When you encounter an error it will be logged
2203- and listed in the system here. These error messages can help the xstreamedia team solve your problem.</p>
2204- <p>Truncating the log helps you to troubleshoot a problem by clearing the current error messages</p>
2205- <p>The page and sub page items helps locate where the error has been generated from.</p>
2206- </div>
2207-
2208- <div id="terms_div">
2209- <p><strong>Log Date</strong> states the date and time the error message was logged.</p>
2210- <p><strong>Page</strong> states the page that the error has been generated from.</p>
2211- <p><strong>Sub Page</strong> states the sub page that the error message has been generated from.</p>
2212- <p><strong>Message</strong> gives details of what error has occurred in the system.</p>
2213- </div>
2214- </div>
2215- </div>
2216 <?php $this->LogFilter(); ?>
2217 </div>
2218
2219
2220=== modified file 'server/template/pages/schedule_month_view.php'
2221--- server/template/pages/schedule_month_view.php 2009-02-15 12:54:04 +0000
2222+++ server/template/pages/schedule_month_view.php 2009-05-14 19:36:36 +0000
2223@@ -32,95 +32,6 @@
2224 <div class="leftbuttons">
2225 <div class="buttons">
2226 <a id="whatson_button" class="XiboFormButton" href="index.php?p=schedule&q=WhatsOn"><div class="button_text">Broadcasting</div></a>
2227- <a id="help_button" href="#" onclick="toggle_div_view('notes')"><div class="button_text">Help</div></a>
2228- </div>
2229-
2230- <div id="notes" style="display:none;">
2231- <h4>Schedule Help <a href="http://www.xibo.org.uk/manual/index.php?p=content/schedule/overview" target="_blank" alt="The Manual">(Click for Manual)</a></h4>
2232- <div id="helptabs">
2233- <ul id="help" class="tabs-nav"><!-- the class on this element has to remain the same -->
2234- <li><a href="#cal_div" class="help_tab"><span>Calendar</span></a></li>
2235- <li><a href="#dayview_div" class="help_tab"><span>Add/Edit</span></a></li>
2236- <li><a href="#tips_div" class="help_tab"><span>Tips</span></a></li>
2237- <li><a href="#terms_div" class="help_tab"><span>Terms</span></a></li>
2238- </ul>
2239-
2240- <div id="cal_div">
2241- <h5>Xibo Calendar</h5>
2242- <p>All scheduling in Xibo can be viewed through the calendar. It shows when playlists are scheduled and on which displays.</p>
2243-
2244- <h5>Navigating</h5>
2245- <p><strong>Dates</strong>: The calendar months can be navigated using the Prev and Next links. They are either side of
2246- the current month/year indicator and the top of the calendar.</p>
2247-
2248- <p><strong>Add</strong>: Events can be added by either <br />
2249- a) Clicking the heading for a particular day <br />
2250- b) Double clicking within the day cell <br />
2251- Either method will open the Add Event form
2252- </p>
2253- <p>
2254- <strong>Edit</strong>: Events can be edited by clicking on the event. This will open up the Edit Event form
2255- </p>
2256-
2257- <h5>Deleting</h5>
2258- <p>To delete an event first click on the event, and then press the delete button on the "Edit Event" form that opened.</p>
2259-
2260- <h5>Changing Displays</h5>
2261- <p>To change displays click on the required display screen above the calendar.</p>
2262-
2263- </div>
2264- <div id="dayview_div">
2265- <h5>Opening the Add/Edit form</h5>
2266- <p>See the "Calendar" section on Navigating for how to open the add/edit form</p>
2267-
2268- <h5>Event Details</h5>
2269- <p>The event details part of this form is found on the upper section. It features start and end dates,
2270- playlist selections and display selections.</p>
2271-
2272- <p>To pick the correct date and time for start and end time click on the calendar icon next to the field and
2273- and calendar selector will open.</p>
2274-
2275- <p>If you selected the hours from the day page these will have been autopoulated for you to adjust.</p>
2276-
2277- <p>You can choose the playlist that you wish to display in this slot from the dropdown menu. This
2278- list provides you with all the playlists that you have created or have permission to add to the schedule.</p>
2279-
2280- <p>The "Save" button will save this event to Xibo with the data entered on the form.</p>
2281-
2282- <p>If editing an event the delete button will also be present, allowing the event to be deleted.</p>
2283-
2284- <h5>Recurrence</h5>
2285- <p>The Xibo scheduler features the ability to create recurring events, for example Playlist 1 shown between 10 and 11
2286- every day for the next two weeks.</p>
2287-
2288- <p>To set recurrence for events select the required "Repeats" value from the list and the appropriate additional fields
2289- will be revealed. Select as appropriate.</p>
2290-
2291- <h5>Day View</h5>
2292- <p>The day view allows you to see everything that is happening on a display for that day. It gives a far
2293- greater degree of information than the calendar month view. This visualisation makes it easy to see when
2294- events will overlap and share time on the screen.</p>
2295-
2296- <p>There are a number of additional features for the day view.<br />
2297- Firstly events shown on the day view can be loaded into the form for editing by clicking on the blocked out time.<br />
2298- Secondly new events can be added by clicking on start and end times in the last row - and then add new. The start and end
2299- times will be preloaded in the form that appears.</p>
2300- </div>
2301- <div id="tips_div">
2302- <p>The month view allows you to see all the playlists that have been scheduled on the screen that is highlighted.</p>
2303- <p>Double clicking in day items section allows you to schedule an event for the whole day quickly.</p>
2304- <p>You can change which display you are looking at by clicking the relevent display at the top of the page.</p>
2305- <p>You can edit a specific event directly by clicking on it.</p>
2306- </div>
2307- <div id="terms_div">
2308- <p><strong>Day View</strong> provides a table of the hours within that day for the display specified.</p>
2309- <p><strong>Start time</strong> states the time at which the content has been scheduled</p>
2310- <p><strong>End time</strong> states the time at whcih the content will cease being shown</p>
2311- <p><strong>Day Tab</strong> refers to the blue section of each day on the view.</p>
2312- <p><strong>Day Items</strong> refers to the area of the day that lists what's being shown</p>
2313- <p><strong>What's On</strong> provides full details of the playlists being displayed on each display on the system.</p>
2314- </div>
2315- </div>
2316 </div>
2317 </div>
2318 <div id="displaybuttons">
2319
2320=== modified file 'server/template/pages/sessions_view.php'
2321--- server/template/pages/sessions_view.php 2009-02-08 12:49:24 +0000
2322+++ server/template/pages/sessions_view.php 2009-05-17 17:05:42 +0000
2323@@ -20,6 +20,8 @@
2324 */
2325 defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
2326
2327+$msgFilter = __('Filter');
2328+$msgShowFilter = __('Show Filter');
2329 ?>
2330 <div id="form_container">
2331 <div id="form_header">
2332@@ -33,23 +35,9 @@
2333 <div class="SecondNav">
2334 <!-- Maybe at a later date we could have these buttons generated from the DB - and therefore passed through the security system ? -->
2335 <ul>
2336- <li><a title="Show Sessions Help" href="#" onclick="toggle_div_view('notes')"><span>Help</span></a></li>
2337- <li><a title="Show Filter" href="#" onclick="ToggleFilterView('SessionFilter')"><span>Filter</span></a></li>
2338+ <li><a title="<?php echo $msgShowFilter; ?>" href="#" onclick="ToggleFilterView('SessionFilter')"><span><?php echo $msgFilter; ?></span></a></li>
2339 </ul>
2340 </div>
2341- <div id="notes" style="display:none;">
2342- <h4>Sessions Help</h4>
2343- <div id="helptabs">
2344- <ul id="help" class="tabs-nav">
2345- <li><a href="#tips_div" class="help_tab"><span>Tips</span></a></li>
2346- <li><a href="#terms_div" class="help_tab"><span>Terms</span></a></li>
2347- </ul>
2348- <div id="tips_div">
2349- <p>Reports provide details of users that are currently on the system.</p>
2350- </div>
2351- <div id="terms_div"></div>
2352- </div>
2353- </div>
2354 <?php $this->SessionFilter(); ?>
2355 </div>
2356
2357
2358=== modified file 'server/template/pages/settings_view.php'
2359--- server/template/pages/settings_view.php 2008-12-13 13:44:03 +0000
2360+++ server/template/pages/settings_view.php 2009-05-14 19:36:36 +0000
2361@@ -29,44 +29,7 @@
2362 </div>
2363
2364 <div id="form_body">
2365- <div class="leftbuttons">
2366- <div class="buttons">
2367- <a id="help_button" href="#" onclick="toggle_div_view('notes')"><div class="button_text">Help</div></a>
2368- </div>
2369-
2370- <div id="notes" style="display:none;">
2371- <h4>Settings Help <a href="http://www.xibo.org.uk/manual/index.php?p=content/config/settings" target="_blank" alt="The Manual">(Click for Manual)</a></h4>
2372- <div id="helptabs">
2373- <ul id="help" class="tabs-nav"><!-- the class on this element has to remain the same -->
2374- <li><a href="#tips_div" class="help_tab"><span>Tips</span></a></li>
2375- <li><a href="#terms_div" class="help_tab"><span>Tabs</span></a></li>
2376- </ul>
2377-
2378- <div id="tips_div">
2379- <p>This page provides you with all the settings options to configure Xibo to your environment. Each tab provides a set of forms
2380- where you can alter default settings and paths.</p>
2381- <p>The items in the boxes provide you with details of your PHP settings on the server with Xibo installed.</p>
2382- <p>Settings should only be modified by the administrator of the system, as incorrect settings could cause system
2383- stablility issues.</p>
2384- </div>
2385- <div id="terms_div">
2386- <p><strong>Content</strong> this tab allows you to set default content item settings, such as a default lenght and ratio. This
2387- helps Xibo if the file does not contain duration information.</p>
2388- <p><strong>Default</strong> settings sets the default options on some forms to always appear and be applied unless altered. You can also change
2389- your time zone in this section.</p>
2390- <p><strong>Error</strong> tab allows you to alter how Xibo handles errors. You can assign a mailbox to send errors and turn the error and audit
2391- lgos on and off.</p>
2392- <p><strong>General</strong> settings provides details of your current settings in your PHP.ini file on your server. It also allows you to setup
2393- whether you are collecting statics off your Xibo displays.</p>
2394- <p><strong>Path</strong> settings allows you to specify particular directory locations for where Xibo will store and look for items. It also allows
2395- you to specify where you have downloaded additional plugins like openflash charts.</p>
2396- <p><strong>User</strong> this section is important if you intent to use a different authentication module to allow your users to log in to the system
2397- you will only need this section if you are familiar with an Ldap authentication module.</p>
2398- <p><strong>Install Issues</strong> highlights some settings issues that stop some Xibo functions from functioning correctly on your network.</p>
2399- </div>
2400- </div>
2401- </div>
2402- </div>
2403+ <div class="leftbuttons"></div>
2404 <div id="settings">
2405 <?php $this->display_settings(); ?>
2406 </div>
2407
2408=== removed file 'server/template/pages/template_edit.php'
2409--- server/template/pages/template_edit.php 2008-12-10 23:48:34 +0000
2410+++ server/template/pages/template_edit.php 1970-01-01 00:00:00 +0000
2411@@ -1,74 +0,0 @@
2412-<?php
2413-/*
2414- * Xibo - Digitial Signage - http://www.xibo.org.uk
2415- * Copyright (C) 2006,2007,2008 Daniel Garner and James Packer
2416- *
2417- * This file is part of Xibo.
2418- *
2419- * Xibo is free software: you can redistribute it and/or modify
2420- * it under the terms of the GNU Affero General Public License as published by
2421- * the Free Software Foundation, either version 3 of the License, or
2422- * any later version.
2423- *
2424- * Xibo is distributed in the hope that it will be useful,
2425- * but WITHOUT ANY WARRANTY; without even the implied warranty of
2426- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2427- * GNU Affero General Public License for more details.
2428- *
2429- * You should have received a copy of the GNU Affero General Public License
2430- * along with Xibo. If not, see <http://www.gnu.org/licenses/>.
2431- */
2432-?>
2433-<div id="form_container">
2434- <div id="form_header">
2435- <div id="form_header_left">
2436- </div>
2437- <div id="form_header_right">
2438- </div>
2439- </div>
2440-
2441- <div id="form_body">
2442-
2443- <div class="filter_form_container">
2444- <div class="leftbuttons">
2445- <div class="buttons">
2446- <a id="help_button" onclick="toggle_div_view('notes')"><div class="button_text">Help</div></a>
2447- </div>
2448- <div id="notes" style="display:none;">
2449- <h4>Layout Help</h4>
2450- <div id="helptabs">
2451- <ul id="help" class="tabs-nav"><!-- the class on this element has to remain the same -->
2452- <li><a href="#tips_div" class="help_tab"><span>Tips</span></a></li>
2453- <li><a href="#terms_div" class="help_tab"><span>Tags</span></a></li>
2454- </ul>
2455-
2456- <div id="tips_div">
2457- <p>Editing a Layout gives you complete control over the code used to generate it on screen. </p>
2458- <p>You can use a combination of HTML and CSS to generate your display layout. These follow all the stand rules used for building a website.</p>
2459- <p>It is recommended that you use a text editor to construct your code and then copy and paste it into the tables on the page.</p>
2460- <p>The preview player allows you to navigate the presentations available to you and the slides available in each presentation. The preview window autosizes to your screen resolution. For true representation
2461- of how a presentation will appear on a screen, it is wise to set the resolution as close to the Display resolution as possible.</p>
2462- </div>
2463- <div id="terms_div">
2464- <p>Layouts use some designated tags that Xibo uses to identify certain custom elements. These are specified below</p>
2465- <p><strong>Name</strong> identifies the layout so that people can add it to a presentation.</p>
2466- <p><strong>Number of Positions</strong> identifies how many pieces of content can be added to this layout.</p>
2467- <p><strong>&lt;position name="1"&gt;</strong> is the tag that is used to define a position on the layout, where the number corresponds to
2468- one of the layout positions. So if you have 4 positions, you can have 4 of these tags, each with it's own position number 1,2,3 or 4.</p>
2469-
2470- </div>
2471- </div>
2472- </div>
2473- </div>
2474- <?php $this->layout_form("index.php?p=layout&q=edit", "index.php?p=layout&sp=view", "index.php?p=layout&sp=edit", ""); ?>
2475- </div>
2476-
2477- </div>
2478-
2479- <div id="form_footer">
2480- <div id="form_footer_left">
2481- </div>
2482- <div id="form_footer_right">
2483- </div>
2484- </div>
2485-</div>
2486\ No newline at end of file
2487
2488=== modified file 'server/template/pages/template_view.php'
2489--- server/template/pages/template_view.php 2009-02-08 12:19:45 +0000
2490+++ server/template/pages/template_view.php 2009-05-17 17:05:42 +0000
2491@@ -20,6 +20,8 @@
2492 */
2493 defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
2494
2495+$msgFilter = __('Filter');
2496+$msgShowFilter = __('Show Filter');
2497 ?>
2498 <div id="form_container">
2499 <div id="form_header">
2500@@ -33,24 +35,9 @@
2501 <div class="SecondNav">
2502 <!-- Maybe at a later date we could have these buttons generated from the DB - and therefore passed through the security system ? -->
2503 <ul>
2504- <li><a title="Show Template Help" href="#" onclick="toggle_div_view('notes')"><span>Help</span></a></li>
2505- <li><a title="Show Filter" href="#" onclick="ToggleFilterView('TemplateFilter')"><span>Filter</span></a></li>
2506+ <li><a title="<?php echo $msgShowFilter; ?>" href="#" onclick="ToggleFilterView('TemplateFilter')"><span><?php echo $msgFilter; ?></span></a></li>
2507 </ul>
2508 </div>
2509- <div id="notes" style="display:none;">
2510- <h4>Template Help <a href="manual/index.html" target="_blank" alt="The Manual">(Click for Manual)</a></h4>
2511- <div id="helptabs">
2512- <ul id="help" class="tabs-nav"><!-- the class on this element has to remain the same -->
2513- <li><a href="#tips_div" class="help_tab"><span>Tips</span></a></li>
2514- </ul>
2515-
2516- <div id="tips_div">
2517- <p>A template is a stored layout without any media assigned to it. It is used when creating a new layout.</p>
2518- <p>Templates can be created from the Layout Designer.</p>
2519- <p>Templates are for a particular screen resolution.</p>
2520- </div>
2521- </div>
2522- </div>
2523 <?php $this->TemplateFilter(); ?>
2524 </div>
2525
2526
2527=== modified file 'server/template/pages/user_view.php'
2528--- server/template/pages/user_view.php 2009-01-25 20:08:32 +0000
2529+++ server/template/pages/user_view.php 2009-05-17 17:05:42 +0000
2530@@ -19,7 +19,10 @@
2531 * along with Xibo. If not, see <http://www.gnu.org/licenses/>.
2532 */
2533 defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
2534-
2535+
2536+$msgUser = __('Add User');
2537+$msgFilter = __('Filter');
2538+$msgShowFilter = __('Show Filter');
2539 ?>
2540 <div id="form_container">
2541 <div id="form_header">
2542@@ -36,33 +39,12 @@
2543 <?php
2544 if ($_SESSION['usertype']==1)
2545 {
2546- echo '<li><a title="Add User" class="XiboFormButton" href="index.php?p=user&q=DisplayForm"><span>Add User</span></a></li>';
2547+ echo '<li><a title="' . $msgUser . '" class="XiboFormButton" href="index.php?p=user&q=DisplayForm"><span>' . $msgUser . '</span></a></li>';
2548 }
2549 ?>
2550- <li><a title="Show User Help" href="#" onclick="toggle_div_view('notes')"><span>Help</span></a></li>
2551- <li><a title="Show Filter" href="#" onclick="ToggleFilterView('UserFilter')"><span>Filter</span></a></li>
2552+ <li><a title="<?php echo $msgShowFilter; ?>" href="#" onclick="ToggleFilterView('UserFilter')"><span><?php echo $msgFilter; ?></span></a></li>
2553 </ul>
2554 </div>
2555- <div id="notes" style="display:none;">
2556- <h4>User Help <a href="http://www.xibo.org.uk/manual/index.php?p=content/users/overview" target="_blank" alt="The Manual">(Click for Manual)</a></h4>
2557- <div id="helptabs">
2558- <ul id="help" class="tabs-nav"><!-- the class on this element has to remain the same -->
2559- <li><a href="#tips_div" class="help_tab"><span>Tips</span></a></li>
2560- <li><a href="#terms_div" class="help_tab"><span>Terms</span></a></li>
2561- </ul>
2562-
2563- <div id="tips_div">
2564- <p>Xibo has it's own User module that you can use to allow access to the system. Xibo allows you to manage indvidual
2565- users priveleges and basic registered details.</p>
2566- <p>The action buttons allow you to edit to edit a persons login details and override their password.</p>
2567- <p>Users is only available to administrators of the system.</p>
2568- </div>
2569- <div id="terms_div">
2570- <p><strong>Name</strong> is the username of the profile/</p>
2571- <p><strong>Email</strong> provides a contact point for forgotten passwords, and any Xibo notifications.</p>
2572- </div>
2573- </div>
2574- </div>
2575 <?php $this->UserFilter(); ?>
2576 </div>
2577
2578
2579=== modified file 'server/upgrade.php'
2580--- server/upgrade.php 2009-05-13 18:57:27 +0000
2581+++ server/upgrade.php 2009-05-18 21:37:32 +0000
2582@@ -18,21 +18,20 @@
2583 * You should have received a copy of the GNU Affero General Public License
2584 * along with Xibo. If not, see <http://www.gnu.org/licenses/>.
2585 */
2586-DEFINE('XIBO', true);
2587+DEFINE('XIBO', true);
2588
2589+
2590 if (! checkPHP()) {
2591 die("Xibo requires PHP 5.0.2 or later");
2592-}
2593-
2594+}
2595+
2596 include('lib/app/kit.class.php');
2597+include('lib/app/debug.class.php');
2598 include('config/db_config.php');
2599 include('config/config.class.php');
2600-require('settings.php');
2601
2602-// Setup the translations for gettext
2603+// Setup the translations for gettext
2604 require_once("lib/app/translationengine.class.php");
2605-TranslationEngine::InitLocale($db);
2606-
2607
2608 // Once we've calculated the upgrade in step 2 below, we need
2609 // to have included the appropriate upgrade php files
2610@@ -62,12 +61,19 @@
2611 define('_INPUTBOX', "inputbox");
2612 define('_PASSWORDBOX', "password");
2613
2614+Config::Load();
2615+
2616 // create a database class instance
2617 $db = new database();
2618
2619 if (!$db->connect_db($dbhost, $dbuser, $dbpass)) reportError(0, __("Unable to connect to the MySQL database using the settings stored in settings.php.") . "<br /><br />" . __("MySQL Error:") . "<br />" . $db->error());
2620 if (!$db->select_db($dbname)) reportError(0, __("Unable to select the MySQL database using the settings stored in settings.php.") . "<br /><br />" . __("MySQL Error:") . "<br />" . $db->error());
2621
2622+// Initialise the Translations
2623+set_error_handler(array(new Debug(), "ErrorHandler"));
2624+
2625+TranslationEngine::InitLocale($db);
2626+
2627 include('install/header_upgrade.inc');
2628
2629 if (! $_SESSION['step']) {

Subscribers

People subscribed via source and target branches