Example #1
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/board.php');

$user->init();
$user->setup();

$board = new board();
$board->run();

page_layout('FORUM_INDEX', 'board');
Example #2
0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');

$user->init();
$user->setup();

$sql = 'SELECT *
	FROM _partners
	ORDER BY partner_order';
$partners = sql_rowset($sql);

foreach ($partners as $i => $row) {
	if (!$i) _style('partners');

	_style('partners.row', array(
		'NAME' => $row['partner_name'],
		'IMAGE' => $row['partner_image'],
		'URL' => $config['assets_url'] . '/style/sites/' . $row['partner_url'])
	);
}

page_layout('PARTNERS', 'partners', false, false);
Example #3
0
	private function conversations_delete() {
		global $comments, $user;

		$mark	= request_var('mark', array(0));

		if (_button('delete') && $mark) {
			if (_button('confirm')) {
				$comments->dc_delete($mark);
			} else {
				$s_hidden = array('delete' => true);

				$i = 0;
				foreach ($mark as $item) {
					$s_hidden += array('mark[' . $i++ . ']' => $item);
				}

				// Output to template
				//
				$layout_vars = array(
					'MESSAGE_TEXT' => (sizeof($mark) == 1) ? lang('confirm_delete_pm') : lang('confirm_delete_pms'),

					'S_CONFIRM_ACTION' => s_link('my dc'),
					'S_HIDDEN_FIELDS' => s_hidden($s_hidden)
				);
				page_layout('DCONVS', 'confirm', $layout_vars);
			}

			redirect(s_link('my dc'));
		}

		return;
	}
Example #4
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/topic.php');

$user->init();
$user->setup();

$topic = new topic();
$topic->run();

page_layout($topic->get_title(), $topic->get_template());
Example #5
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');

$user->init();
$user->setup();

page_layout('PRIVACY_POLICY', 'tos');
Example #6
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/community.php');

$user->init();
$user->setup();

$community = new community();
$community->run();

page_layout('COMMUNITY', 'community', false, false);
Example #7
0
}

$today = new today();

$element = request_var('element', 0);
$object = request_var('object', 0);

$select = request_var('select', array(0 => 0));
$select_all = request_var('select_all', 0);

if ($select_all) {
	$today->clear_all();
}

if (count($select)) {
	$delete = request_var('delete', array(0 => 0));

	foreach ($select as $select_element => $void) {
		if (isset($delete[$select_element])) {
			$user->delete_unread($element, $select[$select_element]);
			break;
		}
	}
}

if (!$today->run()) {
	_style('objects_empty');
}

page_layout('UNREAD_ITEMS', 'unread');
Example #8
0
		'IMAGE' => $row,
		'URL' => s_link('broadcast', $row))
	);
}

$sql = 'SELECT *
	FROM _posts p
	INNER JOIN _term_relationships tr ON tr.object_id = p.ID
	INNER JOIN _term_taxonomy tx ON tr.term_taxonomy_id = tx.term_taxonomy_id
	INNER JOIN _terms t ON tx.term_id = t.term_id
	WHERE post_status = ?
	ORDER BY post_date DESC
	LIMIT ??, ??';
$podcast = sql_rowset(sql_filter($sql, 'publish', $offset, 10));

foreach ($podcast as $i => $row) {
	if (!$i) _style('podcast');
	
	$title = htmlentities(utf8_encode($row['post_title']), ENT_COMPAT, 'utf-8');
	
	_style('podcast.row', array(
		'POST_DATE' => $row['post_date'],
		'POST_URL' => s_link('broadcast', $row['slug']),
		'POST_CONTENT' => $row['post_content'],
		'POST_TITLE' => $title)
	);
}

page_layout('BROADCAST', 'broadcast');

?>
Example #9
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/events.php');

$user->init();
$user->setup();

$events = new _events();
$events->run();

page_layout($events->get_title('UE'), $events->get_template('events'));
Example #10
0
	$row['show_end'] = date('G', $row['show_end']);
	
	if ((int) $row['show_end'] === 0) {
		$row['show_end'] = 24;
	}
	
	$radio[$row['show_day']][] = $row;
}

$days = array(1 => 'Monday', 2 => 'Tuesday', 3 => 'Wednesday', 4 => 'Thursday', 5 => 'Friday', 6 => 'Saturday', 7 => 'Sunday');
$hours = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24);

foreach ($radio as $d => $row_day) {
	_style('day', array(
		'V_NAME' => $user->lang['datetime'][$days[$d]])
	);
	
	foreach ($hours as $h) {
		
	}
	
	foreach ($row_day as $d2 => $row_show) {
		_style('day.row', array(
			'V_NAME' => $row_show['show_name'])
		);
	}
}

page_layout('RADIO_INDEX', 'radio_body');

?>
Example #11
0
	private function remove() {
		global $config, $user;

		$auth_url = s_link('acp', array('artist_auth', 'a' => $this->object['subdomain']));

		if (_button('cancel')) {
			redirect($auth_url);
		}

		$submit = _button('remove');
		$confirm = _button('confirm');

		if ($submit || $confirm) {
			$result = request_var('s_members', array(0));

			if (sizeof($result)) {
				$sql = 'SELECT m.user_id, m.username, m.user_rank
					FROM _artists_auth a, _members m
					WHERE a.ub = ?
						AND m.user_id IN (??)
						AND m.user_id <> ?
						AND m.user_type <> ??
						AND a.user_id = m.user_id
					ORDER BY m.user_id';
				$result = sql_rowset(sql_filter($sql, $this->object['ub'], implode(',', $result), $user->data['user_id'], USER_INACTIVE), 'user_id');
			}

			if (!$result) {
				redirect($auth_url);
			}

			/*
			If Confirm button is pressed.
			*/
			if ($confirm) {
				foreach ($result as $row) {
					$update = w();
					$user_type = USER_ARTIST;

					$sql = 'SELECT COUNT(ub) AS total
						FROM _artists_auth
						WHERE user_id = ?';
					$total = sql_field(sql_filter($sql, $row['user_id']), 'total', 0);

					if ($total == 1) {
						$update['user_auth_control'] = 0;

						$user_type = USER_NORMAL;
						if ($item['user_rank'] == $config['default_a_rank']) {
							$update['user_rank'] = 0;
						}

						$sql = 'SELECT *
							FROM _artists_fav
							WHERE user_id = ?';
						if (sql_fieldrow(sql_filter($sql, $row['user_id']))) {
							$user_type = USER_FAN;
						}

						$update['user_type'] = $user_type;

						$sql = 'UPDATE _members SET ??
							WHERE user_id = ?';
						sql_query(sql_filter($sql, sql_build('UPDATE', $update), $row['user_id']));
					}

					$sql = 'DELETE FROM _artists_auth
						WHERE ub = ?
							AND user_id = ?';
					sql_query(sql_filter($sql, $this->object['ub'], $row['user_id']));
				}

				return redirect($auth_url);
			}

			/*
			Display confirm dialog
			*/
			$result_list = '';

			foreach ($result as $row) {
				$result_list .= (($result_list != '') ? ', ' : '') . $row['username'];
				$result_hidden .= s_hidden(array('s_members[]' => $row['user_id']));
			}

			$message = count($result) == 1 ? '2' : '';

			$layout_vars = array(
				'MESSAGE_TEXT' => sprintf(lang('acp_artist_auth_delete' . $message), $this->object['name'], $result_list),
				'S_CONFIRM_ACTION' => s_link('acp', array('artist_auth', 'a' => $this->object['subdomain'])),
				'S_HIDDEN_FIELDS' => $result_hidden
			);

			page_layout('ACP_ARTIST_AUTH', 'confirm', $layout_vars);
		}

		redirect($auth_url);

		return;
	}
Example #12
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/acp.php');

$user->init();
$user->setup();

$acp = new _acp();
$acp->run();

page_layout($acp->get_title('ACP'), $acp->get_template('acp'));
Example #13
0
				'POLL_TITLE' => $vote_info[0]['vote_text'])
			);
			
			if ($user_voted) {
				_style('poll.results', array());
			} else {
				_style('poll.options', array(
					'S_VOTE_ACTION' => $topic_url)
				);
	
				for ($i = 0; $i < $vote_options; $i++) {
					$subdomain = 'http://' . get_username_base($vote_info[$i]['vote_option_text']) . '.rockrepublik.net/';
					
					_style('poll.options.item', array(
						'POLL_OPTION_ID' => $vote_info[$i]['vote_option_id'],
						'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'],
						'POLL_OPTION_LINK' => $subdomain)
					);
				}
			}
		}
	}
}

$template_vars = array(
	'S_TOPIC_ACTION' => $topic_url . (($start) ? 's' . $start . '/' : ''),
	'U_VIEW_FORUM' => s_link('forum', $forum_id)
);
page_layout('Rock Republik Awards', 'awards_voting', $template_vars);

?>
Example #14
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/awards.php');

$user->init();
$user->setup();

$awards = new _awards();
$awards->run();

page_layout('AWARDS', 'awards');
Example #15
0
			}
			
			_style('select_type', array(
				'CHAT_SELECT_TYPE' => $type_list)
			);
		}
		
		$select_auth = '';
		$auth_ary = w('CHAT_CH_ALL FRIENDS');
		foreach ($auth_ary as $i => $langkey) {
			$select_auth .= '<option value="' . $i . '"' . (($i == $ch_auth) ? ' selected' : '') . '>' . lang($langkey) . '</option>';
		}
		
		$template_vars += array(
			'CHAT_SELECT_AUTH' => $select_auth,
			'S_ACTION' => s_link('chat-create')
		);
		
		if (sizeof($error)) {
			_style('error', array(
				'MESSAGE' => parse_error($error))
			);
		}
		
		page_layout('CHAT_CREATE', 'chat_create', $template_vars);
		break;
}

redirect(s_link('chat'));

?>
Example #16
0
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/home.php');
require_once(ROOT . 'objects/artists.php');
require_once(ROOT . 'objects/events.php');

$user->init();
$user->setup();

srand((double)microtime()*1000000);

$home = new _home();
$artists = new _artists();
$events = new _events(true);

$home->news();
$home->board_general();
$home->board_events();
$home->poll();

$artists->get_data();
$artists->thumbnails();

$events->_nextevent();

page_layout('HOME', 'home', false, false);
Example #17
0
	$chat->window();
	
	$keepalive = false;
	$htmlpage = 'chat_channel';
	$page_title = lang('chat') . ' | ' . $chat->data['ch_name'];
} else {
	$cat = $chat->get_cats();
	
	if (!sizeof($cat)) {
		trigger_error('NO_CHAT_CATS');
	}
	
	$user->setup('chat');
	
	$chat->sys_clean();
	$chatters = $chat->get_ch_listing($cat);
	
	v_style(array(
		'CHATTERS' => $chatters,
		'CREATE_CHAT' => s_link('chat-create'))
	);
	
	//
	// SET TEMPLATE
	$page_title = 'CHAT';
	$htmlpage = 'chat_body';
}

page_layout($page_title, $htmlpage, false, $keepalive);

?>
Example #18
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/artists.php');

$user->init();
$user->setup();

$artists = new _artists();
$artists->run();

page_layout($artists->get_title('UB'), $artists->get_template('artists'), false, $artists->ajax());
Example #19
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/userpage.php');

$user->init();
$user->setup();

$userpage = new userpage();
$userpage->run();

page_layout($userpage->get_title(), $userpage->get_template());
Example #20
0
	} else {
		preg_match("/up\s+(\d+)\s+(days,|days|day,|day)\s+(\d{1,2}):(\d{1,2}),/", $uptime, $times);
		$days = $times[1];
		$hours = $times[3];
		$mins = $times[4];
	}
} else {
	if (strstr($uptime, 'min')) {
		preg_match("/up\s+(\d{1,2})\s+min/", $uptime, $times);
		$days = 0;
		$hours = 0;
		$mins = $times[1];
	} else {
		preg_match("/up\s+(\d+):(\d+),/", $uptime, $times);
		$days = 0;
		$hours = $times[1];
		$mins = $times[2];
	}
}
preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/", $uptime, $avgs);
$load = $avgs[1].", ".$avgs[2].", ".$avgs[3]."";

$layout_vars = array(
	'SERVER_UPTIME' => sprintf($lang['SERVER_UPTIME'], $days, $hours, $mins),
	'SERVER_LOAD' => sprintf($lang['SERVER_LOAD'], $load),

	'CLIENT_IP' => $user->ip
);

page_layout('HOME', 'ssv', $layout_vars, false);
Example #21
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/news.php');

$user->init();
$user->setup();

$news = new _news();
$news->run();

page_layout($news->get_title('NEWS'), $news->get_template('news'));
Example #22
0
			'S_USERGROUP_ACTION' => "groupcp.php", 
			'S_HIDDEN_FIELDS' => $s_hidden_fields, 

			'GROUP_LIST_SELECT' => $s_group_list,
			'GROUP_PENDING_SELECT' => $s_pending_groups,
			'GROUP_MEMBER_SELECT' => $s_member_groups)
		);
	}
	else
	{
		trigger_error('No_groups_exist');
	}

}

page_layout('Group_Control_Panel', 'groupcp_info_body');

//
// FUNCTIONS
//
function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$joined, &$poster_avatar, &$profile_img, &$profile, &$search_img, &$search, &$pm_img, &$pm, &$email_img, &$email, &$www_img, &$www, &$icq_status_img, &$icq_img, &$icq, &$aim_img, &$aim, &$msn_img, &$msn, &$yim_img, &$yim)
{
	global $lang, $images, $config;

	$from = ( !empty($row['user_from']) ) ? $row['user_from'] : '&nbsp;';
	$joined = $user->format_date($row['user_regdate'], $date_format);
	$posts = ( $row['user_posts'] ) ? $row['user_posts'] : 0;

	$poster_avatar = '';
	if ($row['user_avatar_type'] && $row['user_id'] != GUEST)
	{
Example #23
0
		'NAME' => $user->lang[$mark_item],
		'SELECTED' => (($i == $user->data['user_mark_items']) ? ' selected="selected"' : ''))
	);
}

$sql = 'SELECT d.id, d.title, a.subdomain, a.name
	FROM _dl d, _artists a
	WHERE d.ud = 1
		AND d.ub = a.ub
	ORDER BY d.date DESC
	LIMIT 0, 10';
$result = sql_rowset($sql);

foreach ($result as $row) {
	_style('downloads', array(
		'URL' => s_link('a', $row['subdomain'], 9, $row['id']),
		'A' => $row['name'],
		'T' => $row['title'])
	);
}

v_style(array(
	'S_UNREAD_ACTION' => s_link('today'))
);

//
// Load sidebar
//sidebar('artists', 'events');

page_layout('UNREAD_ITEMS', 'unread_body');
Example #24
0
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
define('NO_A_META', true);
require_once('./interfase/common.php');

$user->init();
$user->setup();

if (!$smilies = $cache->get('smilies')) {
	$sql = 'SELECT *
		FROM _smilies
		ORDER BY LENGTH(code) DESC';
	if ($smilies = sql_rowset($sql)) {
		$cache->save('smilies', $smilies);
	}
}

foreach ($smilies as $smile_url => $data) {
	_style('smilies_row', array(
		'CODE' => $data['code'],
		'IMAGE' => $config['assets_url'] . '/emoticon/' . $data['smile_url'],
		'DESC' => $data['emoticon'])
	);
}

page_layout('EMOTICONS', 'emoticons');
Example #25
0
function msg_handler($errno, $msg_text, $errfile, $errline) {
	global $template, $config, $user, $auth, $cache, $starttime;

	switch ($errno) {
		case E_NOTICE:
		case E_WARNING:
			echo '<b>PHP Notice</b>: in file <b>' . $errfile . '</b> on line <b>' . $errline . '</b>: <b>' . $msg_text . '</b><br>';
			break;
		case E_USER_ERROR:
			sql_close();

			fatal_error('mysql', $msg_text);
			break;
		case E_USER_NOTICE:
			if (empty($user->data)) {
				$user->init();
			}
			if (empty($user->lang)) {
				$user->setup();
			}

			if (empty($template->root)) {
				$template->set_template(ROOT . 'template');
			}

			$custom_vars = array(
				'MESSAGE_TITLE' => lang('information'),
				'MESSAGE_TEXT' => lang($msg_text, $msg_text)
			);

			page_layout('INFORMATION', 'message', $custom_vars);
			break;
		default:
			// echo "<b>Another Error</b>: in file <b>" . basename($$errfile) . "</b> on line <b>$errline</b>: <b>$msg_text</b><br>";
			break;
	}
}
Example #26
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/help.php');

$user->init();
$user->setup();

$help = new _help();
$help->run();

page_layout($help->get_title('HELP'), $help->get_template('help'));
Example #27
0
<?php
/*
<Orion, a web development framework for RK.>
Copyright (C) <2011>  <Orion>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
define('IN_APP', true);
require_once('./interfase/common.php');
require_once(ROOT . 'objects/win.php');

$user->init();
$user->setup();

$win = new _win();
$win->run();

page_layout($win->get_title('WIN'), $win->get_template('win'));