Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 122 lines (113 sloc) 4.345 kB
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored
1 <?php
2 /**
3 *
4 * @package Icy Phoenix
5 * @version $Id$
6 * @copyright (c) 2008 Icy Phoenix
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 *
9 */
10
06ce0f8 @MightyGorgon Brand new version...
authored
11 define('IN_ICYPHOENIX', true);
12 if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
13 if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
14 include(IP_ROOT_PATH . 'common.' . PHP_EXT);
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored
15
16 // Start session management
09f38bc @MightyGorgon Another milestone almost achieved for new Icy Phoenix version: user/s…
authored
17 $user->session_begin();
d164727 @MightyGorgon First implementation of the new permissions system in CMS.
authored
18 $auth->acl($user->data);
09f38bc @MightyGorgon Another milestone almost achieved for new Icy Phoenix version: user/s…
authored
19 $user->setup();
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored
20 // End session management
21
e3f2a29 @MightyGorgon Another milestone added... AJAX CMS should now work fine, still some …
authored
22 setup_extra_lang(array('lang_bbcb_mg'));
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored
23
a4ea299 @MightyGorgon First commit with UTF-8 modifications, almost all files have been edi…
authored
24 $mode = request_var('mode', '');
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored
25
26 if($mode == 'text2shield')
27 {
28 $anz_smilie = -1;
29 $hdl = opendir('images/smiles/smiley_creator/');
30 while($res = readdir($hdl))
31 {
32 if(strtolower(substr($res, (strlen($res) - 3), 3)) == 'png')
33 {
34 $anz_smilie++;
35 }
36 }
37 closedir($hdl);
38
39 $i = 1;
40 $ii = 1;
41 $smilies_wahl = '';
42 $smilies_js = '';
43 while($i <= $anz_smilie)
44 {
45 $smilies_wahl .= '<td><input type="radio" name="smiley" value="' . $i . '"><img src="images/smiles/smiley_creator/smilie' . $i . '.png" alt="" /></td>';
46 $smilies_js .= 'if(document.shielderstellung.smiley[' . ($i - 1) . '].checked) var sm_id = document.shielderstellung.smiley[' . ($i - 1) . '].value;' . "\n";
47 if($ii >= 5)
48 {
49 $smilies_wahl .= '</tr><tr>';
50 $ii = 0;
51 }
52 $i++;
53 $ii++;
54 }
55 //$smilies_js .= 'if(document.schilderstellung.smiley[' . ($i - 1) . '].checked) var sm_id = document.schilderstellung.smiley[' . ($i - 1) . '].value;' . "\n";
56 //$smilies_js .= 'if(document.schilderstellung.smiley[' . $i . '].checked) var sm_id = document.schilderstellung.smiley[' . $i . '].value;' . "\n";
57 }
58
59 $template->assign_vars(array(
60 'L_GO' => $lang['Go'],
61 'SMILIES_WAHL' => $smilies_wahl,
62 'SMILIES_JS' => $smilies_js,
63 'L_SMILEY_CREATOR' => $lang['Smiley_creator'],
64 'L_CREATE_SMILIE' => $lang['SC_create_smilie'],
65 'L_STOP_CREATING' => $lang['SC_stop_creating'],
66 'L_SHIELDSHADOW_ON' => $lang['SC_shieldshadow_on'],
67 'L_SHIELDSHADOW_OFF' => $lang['SC_shieldshadow_off'],
68 'L_SHIELDTEXT' => $lang['SC_shieldtext'],
69 'L_SHADOWCOLOR' => $lang['SC_shadowcolor'],
70 'L_SHIELDSHADOW' => $lang['SC_shieldshadow'],
71 'L_SMILIECHOOSER' => $lang['SC_smiliechooser'],
72 'L_RANDOM_SMILIE' => $lang['SC_random_smilie'],
73 'L_DEFAULT_SMILIE' => $lang['SC_default_smilie'],
74 'L_FONTCOLOR' => $lang['SC_fontcolor'],
75 'L_COLOR_DEFAULT' => $lang['color_default'],
76 'L_COLOR_DARK_RED' => $lang['color_dark_red'],
77 'L_COLOR_RED' => $lang['color_red'],
78 'L_COLOR_ORANGE' => $lang['color_orange'],
79 'L_COLOR_BROWN' => $lang['color_brown'],
80 'L_COLOR_YELLOW' => $lang['color_yellow'],
81 'L_COLOR_GREEN' => $lang['color_green'],
82 'L_COLOR_OLIVE' => $lang['color_olive'],
83 'L_COLOR_CYAN' => $lang['color_cyan'],
84 'L_COLOR_BLUE' => $lang['color_blue'],
85 'L_COLOR_DARK_BLUE' => $lang['color_dark_blue'],
86 'L_COLOR_INDIGO' => $lang['color_indigo'],
87 'L_COLOR_VIOLET' => $lang['color_violet'],
88 'L_COLOR_WHITE' => $lang['color_white'],
89 'L_COLOR_BLACK' => $lang['color_black'],
90 'L_COLOR_CADET_BLUE' => $lang['color_cadet_blue'],
91 'L_COLOR_CORAL' => $lang['color_coral'],
92 'L_COLOR_CRIMSON' => $lang['color_crimson'],
93 'L_COLOR_DARK_ORCHID' => $lang['color_dark_orchid'],
94 'L_COLOR_DARK_GREY' => $lang['color_dark_grey'],
95 'L_COLOR_GOLD' => $lang['color_gold'],
96 'L_COLOR_GRAY' => $lang['color_gray'],
97 'L_COLOR_LIGHT_BLUE' => $lang['color_light_blue'],
98 'L_COLOR_LIGHT_CYAN' => $lang['color_light_cyan'],
99 'L_COLOR_LIGHT_GREEN' => $lang['color_light_green'],
100 'L_COLOR_LIGHT_GREY' => $lang['color_light_grey'],
101 'L_COLOR_LIGHT_ORANGE' => $lang['color_light_orange'],
102 'L_COLOR_PEACH' => $lang['color_peach'],
103 'L_COLOR_POWER_ORANGE' => $lang['color_power_orange'],
104 'L_COLOR_SEA_GREEN' => $lang['color_sea_green'],
105 'L_COLOR_SILVER' => $lang['color_silver'],
106 'L_COLOR_TOMATO' => $lang['color_tomato'],
107 'L_COLOR_TURQUOISE' => $lang['color_turquoise'],
108 'L_COLOR_CHOCOLATE' => $lang['color_chocolate'],
109 'L_COLOR_DEEPSKYBLUE' => $lang['color_deepskyblue'],
110 'L_COLOR_MIDNIGHTBLUE' => $lang['color_midnightblue'],
111 'L_COLOR_DARKGREEN' => $lang['color_darkgreen'],
112 'L_JUMP_TO' => $lang['Jump_to'],
113 'L_SELECT_FORUM' => $lang['Select_forum'],
114 'L_ANOTHER_SHIELD' => $lang['SC_another_shield'],
115 'L_NOTEXT_ERROR' => $lang['SC_notext_error'],
116 )
117 );
118
2d81429 @MightyGorgon New Icy Phoenix version based on some new core functions.php
authored
119 $gen_simple_header = true;
120 full_page_generation('smiley_creator.tpl', $lang['Smiley_creator'], '', '');
d07f25e @MightyGorgon git-svn-id: http://svn.assembla.com/svn/icy_phoenix/ip/trunk@29 e0e46…
authored
121
122 ?>
Something went wrong with that request. Please try again.