<commit_before><?php
/*
 * Xibo - Digitial Signage - http://www.xibo.org.uk
 * Copyright (C) 2006,2007,2008 <NAME> and <NAME>
 *
 * This file is part of Xibo.
 *
 * Xibo is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version. 
 *
 * Xibo 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 Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser."); 
?>
<div id="form_container">
	<div id="form_header">
		<div id="form_header_left">
		</div>
		<div id="form_header_right">
		</div>
	</div>

	<div id="form_body">
			<div id="dashbuttons">
				<?php
					// Put a menu here
					if (!$menu = new MenuManager($db, $user, 'Dashboard')) trigger_error($menu->message, E_USER_ERROR);
					
					while ($menuItem = $menu->GetNextMenuItem())
					{
						$uri 	= Kit::ValidateParam($menuItem['name'], _WORD);
						$args 	= Kit::ValidateParam($menuItem['Args'], _STRING);
						$class 	= Kit::ValidateParam($menuItem['Class'], _WORD);
						$title 	= Kit::ValidateParam($menuItem['Text'], _STRING);
						$img 	= Kit::ValidateParam($menuItem['Img'], _STRING);
						
						
						$href = 'index.php?p=' . $uri . '&' . $args;
						
						$out = <<<END
							<div class="dashicons">
								<a id="$class" alt="$title" href="$href">
								<img class="dash_button" src="$img"/>
								<span class="dash_text">$title</span></a>
							</div>
END;
						echo $out;
					}
				?>
				<div class="dashicons">
					<a id="help_button" target="_blank" alt="The Manual" href="http://wiki.xibo.org.uk/wiki/Manual:TOC">
					<img class="dash_button" src="img/dashboard/help.png"/>
					<span class="dash_text">Manual</span></a>
				</div>
			</div>	
	</div>
	
	<div id="form_footer">
		<div id="form_footer_left">
		</div>
		<div id="form_footer_right">
		</div>
	</div>
</div><commit_msg>[server] Also translated the dashboard.<commit_after><?php
/*
 * Xibo - Digitial Signage - http://www.xibo.org.uk
 * Copyright (C) 2006,2007,2008 <NAME> and <NAME>
 *
 * This file is part of Xibo.
 *
 * Xibo is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version. 
 *
 * Xibo 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 Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser."); 
?>
<div id="form_container">
	<div id="form_header">
		<div id="form_header_left">
		</div>
		<div id="form_header_right">
		</div>
	</div>

	<div id="form_body">
			<div id="dashbuttons">
				<?php
					// Put a menu here
					if (!$menu = new MenuManager($db, $user, 'Dashboard')) trigger_error($menu->message, E_USER_ERROR);
					
					while ($menuItem = $menu->GetNextMenuItem())
					{
						$uri 	= Kit::ValidateParam($menuItem['name'], _WORD);
						$args 	= Kit::ValidateParam($menuItem['Args'], _STRING);
						$class 	= Kit::ValidateParam($menuItem['Class'], _WORD);
						$title 	= Kit::ValidateParam($menuItem['Text'], _STRING);
						$title 	= __($title);
						$img 	= Kit::ValidateParam($menuItem['Img'], _STRING);
						
						$href = 'index.php?p=' . $uri . '&' . $args;
						
						$out = <<<END
							<div class="dashicons">
								<a id="$class" alt="$title" href="$href">
								<img class="dash_button" src="$img"/>
								<span class="dash_text">$title</span></a>
							</div>
END;
						echo $out;
					}
				?>
				<div class="dashicons">
					<a id="help_button" target="_blank" alt="The Manual" href="http://wiki.xibo.org.uk/wiki/Manual:TOC">
                                            <img class="dash_button" src="img/dashboard/help.png" alt="Manual"/>
					<span class="dash_text">Manual</span></a>
				</div>
			</div>	
	</div>
	
	<div id="form_footer">
		<div id="form_footer_left">
		</div>
		<div id="form_footer_right">
		</div>
	</div>
</div>
{'fraction_non_alphanumeric': 0.15935094653630122, 'fraction_numerical': 0.005408778864156439, 'mean_word_length': 3.1627705627705627, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 83, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2630341', 'n_tokens_mistral': 1880, 'n_tokens_neox': 1548, 'n_words': 458}