Ejemplo n.º 1
0
Archivo: index.php Proyecto: suno/boinc
function show_news_items()
{
    require_once "../html/inc/news.inc";
    require_once "../html/inc/forum.inc";
    echo "\n        <table border=0 cellpadding=8>\n        <tr><td class=heading_right>\n        <center>\n        <span class=section_title>" . tra("News") . "</span>\n        </center>\n    ";
    show_news(0, 5);
    echo "\n        </td></tr></table>\n    ";
}
Ejemplo n.º 2
0
function show_news_items()
{
    require_once "../html/inc/news.inc";
    require_once "../html/inc/forum.inc";
    echo "\n        <table border=0 cellpadding=8>\n        <tr><td class=heading_right>\n        <center>\n        <span class=section_title>" . tra("News") . "</span>\n        </center>\n    ";
    if (!file_exists("stop_web")) {
        show_news(0, 5);
    } else {
        echo "<p>Database not available; please try again later.";
    }
    echo "\n        </td></tr></table>\n    ";
}
Ejemplo n.º 3
0
Archivo: index.php Proyecto: happyj/qcn
    </head><body>
    <div class=page_title>".PROJECT."</div>
";
*/
include 'schedulers.txt';
echo "\n    <table cellpadding=\"8\" cellspacing=\"4\" class=bordered>\n    <tr><td rowspan=\"2\" valign=\"top\" width=\"40%\">\n";
if ($stopped) {
    echo "\n        <b>" . PROJECT . " is temporarily shut down for maintenance.\n        Please try again later</b>.\n    ";
} else {
    db_init();
    show_nav();
}
echo "\n    <p>\n    <a href=\"http://boinc.berkeley.edu/\"><img align=\"middle\" border=\"0\" src=\"img/pb_boinc.gif\" alt=\"Powered by BOINC\"></a>\n    </p>\n    </td>\n";
/*
if (!$stopped) {
    $profile = get_current_uotd();
    if ($profile) {
        echo "
            <td class=uotd>
            <h2 class=headline>".tra("User of the day")."</h2>
        ";
        show_uotd($profile);
        echo "</td></tr>\n";
    }
}
*/
echo "\n    <tr><td class=news>\n    <h2 class=headline>News</h2>\n    <p>\n";
include "motd.php";
show_news(0, 10);
echo "\n    </td>\n    </tr></table>\n";
page_tail_main();
Ejemplo n.º 4
0
function route($action)
{
    global $html_main_content, $title;
    show_err();
    switch ($action) {
        case '':
            main();
            break;
        case 'user_show':
            $title = print_lg('Show all users', $_SESSION['lang']);
            user_show();
            break;
        case 'user_info':
            $title = print_lg('User info', $_SESSION['lang']);
            user_info();
            break;
        case 'show_news':
            show_news();
            break;
        case 'logout':
            logout();
            break;
        case 'add_news':
            $title = print_lg('Add news', $_SESSION['lang']);
            add_news();
            break;
        case 'registration':
            $title = print_lg('Registration', $_SESSION['lang']);
            registration();
            break;
        case 'delete_news':
            delete_news();
            break;
        case 'edit_news':
            $title = print_lg('Edit news', $_SESSION['lang']);
            edit_news();
            break;
        case 'pages':
            main();
            break;
        case 'profileview':
            $title = print_lg('You information', $_SESSION['lang']);
            profileview();
            break;
        case 'delete_user':
            delete_user();
            break;
        case 'user_delete':
            user_delete();
            break;
        case 'user_edit':
            $title = print_lg('Edit user', $_SESSION['lang']);
            user_edit();
            break;
        case 'edit_language':
            $title = print_lg('Edit language', $_SESSION['lang']);
            edit_language();
            break;
        case 'delete_comments':
            delete_comments();
            break;
        case 'delete_vote':
            delete_vote();
            break;
        default:
            $html_main_content .= print_lg('Page not found', $_SESSION['lang']);
            break;
    }
}
Ejemplo n.º 5
0
function news($id, $news)
{
    array_key_exists($id, $news) ? show_news($id, $news) : show_all_news($news);
}
Ejemplo n.º 6
0
        echo $value . '<br>';
        //        echo '<a href="dz5_2.php?id='.(key($news)-1).'">'.$value.'</a><br>';
    }
}
// Функция вывода конкретной новости.
function show_news($id = 1)
{
    global $news;
    echo $news[$id];
}
// Точка входа.
// Если новость присутствует - вывести ее на сайте, иначе мы выводим весь список
if (isset($_POST['id']) and strlen($_POST['id'])) {
    $get_id = $_POST['id'];
    if ($get_id >= 0 and $get_id <= count($news) - 1) {
        show_news($get_id);
    } else {
        show_all_news();
    }
} else {
    //        header('HTTP/1.0 404 NOT FOUND');
    //        echo '<h1>404</h1>';
    //        echo '<h2>Страница не найдена</h2>';
}
// Был ли передан id новости в качестве параметра?
// если параметр не был передан - выводить 404 ошибку
// http://php.net/manual/ru/function.header.php
?>

<!DOCTYPE HTML>
<html>
Ejemplo n.º 7
0
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
echo "<html>\n    <head>\n    <title>" . PROJECT . "</title>\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"main.css\" media=\"all\" />\n    <link rel=\"stylesheet\" type=\"text/css\" href=\"" . STYLESHEET . "\">\n    <link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . $rssname . "\" href=\"" . $rsslink . "\">\n";
include 'schedulers.txt';
if (defined("SHORTCUT_ICON")) {
    echo '<link rel="icon" type="image/x-icon", href="' . SHORTCUT_ICON . '"/>';
}
echo "\n    </head><body>\n    <div class=page_title>" . PROJECT . "</div>\n";
if (!$stopped) {
    get_logged_in_user(false);
    show_login_info();
}
echo "\n    <table cellpadding=\"8\" cellspacing=\"4\" class=\"table table-bordered\">\n    <tr><td rowspan=\"2\" valign=\"top\" width=\"40%\">\n";
if ($stopped) {
    echo "\n        <b>" . PROJECT . " is temporarily shut down for maintenance.\n        Please try again later</b>.\n    ";
} else {
    show_nav();
}
echo "\n    <p>\n    <a href=\"http://boinc.berkeley.edu/\"><img align=\"middle\" border=\"0\" src=\"img/pb_boinc.gif\" alt=\"Powered by BOINC\"></a>\n    </p>\n    </td>\n";
if (!$stopped && !DISABLE_PROFILES) {
    $profile = get_current_uotd();
    if ($profile) {
        echo "\n            <td class=uotd>\n            <h2 class=headline>" . tra("User of the day") . "</h2>\n        ";
        show_uotd($profile);
        echo "</td></tr>\n";
    }
}
echo "\n    <tr><td class=news>\n    <h2 class=headline>News</h2>\n    <p>\n";
include "motd.php";
show_news(0, 5);
echo "\n    </td>\n    </tr></table>\n";
page_tail_main();
Ejemplo n.º 8
0
?>
    <!-- end #sidebar1 --></div>
 
  <div id="mainContent">
<h3>News</h3>
<div id="news">
<?php 
if (isset($_GET['post'])) {
    ?>
<p><a href="news.php">Show All News</a></p>
<?php 
}
// Below is the variable that controls the number of news articles to display on our News page.  Pick a number that makes sense (not 50, not 2, etc).
$articles = 10;
$categories = array(1);
show_news($articles, $categories);
?>
</div>
    <br class="clearfloat" />
    </div>
   <div id="footer">
    <?php 
require_once "footer.inc.php";
?>
  <!-- end #footer --></div>
<!-- end #container --></div>
<?php 
require_once "tracking.inc.php";
?>
</body>
</html>
function template_body_above()
{
    global $context, $settings, $options, $scripturl, $txt, $modSettings;
    /*Empezando a escribir lo del body, thx smf*/
    /*Navbar responsive, estilizada al foro*/
    echo '
			<header class="header header-transparent header-waterfall">

				<table>
					<tr>
						<td class="tresrayas">
							<ul class="nav nav-list pull-left">
								<li>
									<a data-toggle="menu" href="#al_menu">
										<span class="icon icon-lg">menu</span>
									</a>
								</li>
							</ul>
						</td>
						<td class="titulo-overflow contenido">

							<a class="header-affix-hide header-logo margin-left-no margin-right-no" data-offset-top="50" data-spy="affix" href="', $scripturl, '">', $context['forum_name'], '</a>

							<h1><span class="header-affix header-logo margin-left-no margin-right-no" data-offset-top="50" data-spy="affix">';
    //Trabajando en el fix del titulo, ya que esto afecta solo al index.template.php
    //Sacar el forumname
    $valnombre = strlen($context['forum_name']);
    $valortitulo = substr($context['page_title_html_safe'], 0, $valnombre);
    //Aca se pregunta si tiene un valor igual al nombre de foro, asi se sabe que hacer. En caso de que si, se hace una cuenta para mostrar solo index
    if ($valortitulo == $context['forum_name']) {
        $rmtitulo = strlen($context['forum_name']) + 3;
        $cttitulo = strlen($context['page_title_html_safe']);
        echo substr($context['page_title_html_safe'], $rmtitulo, $cttitulo);
    } else {
        echo $context['page_title_html_safe'];
    }
    echo '</span></h1>
						</td>




						<td class="tbusqueda ocultar-pequeno">
							<div class="busqueda  ">
								<form action="https://www.google.com" id="cse-search-box">
									<div>
										<input type="hidden" name="cx" value="partner-pub-5234228783629303:3299510057" />
										<input type="hidden" name="ie" value="UTF-8" />
										<input style="background-color:transparent; " type="text" name="q" class="form-control" />
										<input class="oculto" type="submit" name="sa" value="Buscar" />
									</div>
								</form>

								<script type="text/javascript" src="https://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=es"></script>

							</div>
						</td>
						<td class="menu-usuario">
							<ul class="nav nav-list pull-right">
								<li class="dropdown margin-right">
									<a class="dropdown-toggle padding-left-no padding-right-no" data-toggle="dropdown">
										<span class="access-hide">', $context['user']['name'], '</span>
										<span class="avatar avatar-sm"><img alt="avatar de ', $context['user']['name'], '" src="', !empty($context['user']['avatar']['href']) ? $context['user']['avatar']['href'] : $settings['images_url'] . '/noavatar.png', '" alt="', $context['user']['name'], '" /></span>
									</a>
									<ul class="dropdown-menu">';
    if ($context['user']['is_logged']) {
        echo '
												<li>
													<a class="padding-right-lg waves-attach" href="', $scripturl, '?action=profile;area=forumprofile;"><span class="icon icon-lg margin-right">edit</span>', $txt['edit_profile'], '</a>
												</li>
												<li>
													<a class="padding-right-lg waves-attach" href="', $scripturl, '?action=profile;area=account;"><span class="icon icon-lg margin-right">account_box</span>', $txt['profile_account'], '</a>
												</li>
												<li>
													<a class="padding-right-lg waves-attach" href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span class="icon icon-lg margin-right">exit_to_app</span>', $txt['logout'], '</a>
												</li>';
    } else {
        echo '
												<li>
													<a class="padding-right-lg waves-attach" href="', $scripturl, '?action=login"><span class="icon icon-lg margin-right">person</span>', $txt['login'], '</a>
												</li>
												<li>
													<a class="padding-right-lg waves-attach" href="', $scripturl, '?action=register"><span class="icon icon-lg margin-right">assignment_ind</span>', $txt['register'], '</a>
												</li>';
    }
    echo '
									</ul>
								</li>
							</ul>
						</td>
					</tr>
				</table>
			</header>

	';
    //Añadiendo el panel de usuario de Materialize adaptado a este FW.
    echo '
	<nav aria-hidden="true" class="menu" id="al_menu" tabindex="-1">
		<div class="menu-scroll mdc-bg-blue-grey-700">
			<div class="menu-top">
				<div class="menu-top-img">
					<img src="', !empty($context['user']['avatar']['href']) ? $context['user']['avatar']['href'] : $settings['images_url'] . '/material/defaultbg.png', '" alt="User Background ', $context['user']['name'], '" >
				</div>
				<div class="menu-top-info">
					<a class="menu-top-user" href="', $scripturl, '?action=profile"><span class="avatar pull-left"><img src="', !empty($context['user']['avatar']['href']) ? $context['user']['avatar']['href'] : $settings['images_url'] . '/noavatar.png', '" alt="', $context['user']['name'], '"></span>';
    if ($context['user']['is_logged']) {
        echo $context['user']['name'];
    } else {
        echo $txt['guest_title'];
    }
    echo '
					</a>
				</div>
				<div class="menu-top-info-sub">
					<small>    Menú de Usuario    </small>
				</div>
			</div>
			<div class="menu-content">
				<ul class="nav">
				<li>
					<a class="waves-attach" href="', $scripturl, '"><span class="icon icon-lg margin-right">home</span>', $txt['home'], '</a>
				</li>';
    //Editando el listado para mostrar los menus mas importantes del mod
    if (!empty($context['user']['is_logged'])) {
        echo '
					<li>
						<a class="waves-attach" href="', $scripturl, '?action=profile"><span class="icon icon-lg margin-right">account_circle</span>', $txt['forumprofile_short'], '</a>
					</li>
					<li>
						<a class="waves-attach" href="', $scripturl, '?action=pm"><span class="icon icon-lg margin-right">inbox</span>', $txt['pm'], '</a>
					</li>
					<li class="hidden-md">
						<a class="waves-attach" href="javascript:void(0)" data-target="#doc_menu_profile_settings" data-toggle="collapse"><span class="icon icon-lg margin-right">menu</span>', $txt['almenu'], '</a>
						<span class="collapsed menu-collapse-toggle waves-attach" data-target="#doc_menu_profile_settings" data-toggle="collapse"><i class="icon menu-collapse-toggle-close">close</i><i class="icon menu-collapse-toggle-default">add</i></span>
						<ul class="collapse menu-collapse" id="doc_menu_profile_settings">';
        menu_lateral();
        echo '</ul>
					</li>';
        // Muestra los Likes del Like Mod
        if (!empty($modSettings['LikePosts::$LikePostsUtils->showLikeNotification())'])) {
            echo '
					<li>
						<a class="waves-attach" href="', $scripturl, '?action=likepostsstats"><span class="icon icon-lg margin-right">thumb_up</span>', $txt['like_show_notifications'], '</a>
					</li>';
        }
    }
    echo '<li>
						<a class="waves-attach" href="', $scripturl, '?action=help"><span class="icon icon-lg margin-right">help</span>', $txt['help'], '</a>
					</li>
				</ul>
			</div>
		</div>
	</nav>';
    //Añadiendo un content, en el cual despues vemos si agregar algo mas
    echo '
	<div class="content">
		<div class="content-heading">
		</div>
		<div class="container">
			<div class="row">
				<div class="visible-md-block visible-lg-block">
					<div class="card margin-bottom-no">
				    <div class="card-main">
			        <div class="card-inner mdc-text-grey-900"  style="margin-bottom: 0px;">
								<div class="container">
									<div class="row">
										<div class="col-md-6">
										';
    if (!$context['user']['is_logged']) {
        // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
        echo '
											<form class="form-inline" id="login-form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
												<div class="container-fluid">
													<div class="col-md-6">
														<div class="form-group sinmargen">
															<div class="form-group-label sinmargen">
																<label class="floating-label" for="', $txt['username'], '">', $txt['username'], '</label>
																<input type="text" name="user" size="10" class="form-control" placeholder="', $txt['username'], '"/>
															</div>
															<div class="form-group-label sinmargen" style="margin-top: 10px;">
																<label class="floating-label" for="', $txt['password'], '">', $txt['password'], '</label>														
																<input type="password" name="passwrd" size="10" class="form-control" placeholder="', $txt['password'], '"/>
															</div>
														</div>
																			';
        if (!empty($modSettings['enableOpenID'])) {
            echo '
														<input placeholder="', $txt['openid'], ' no Obligatorio" type="text" name="openid_identifier" id="openid_url" size="25" class="form-control openid_login" />';
        }
        echo '
														<input type="hidden" name="hash_passwrd" value="" />
													</div>
													<div class="col-md-6">
														<div class="form-group sinmargen">
															<select name="cookielength" class="form-control">
																<option value="60">', $txt['one_hour'], '</option>
																<option value="1440">', $txt['one_day'], '</option>
																<option value="10080">', $txt['one_week'], '</option>
																<option value="43200">', $txt['one_month'], '</option>
																<option value="-1" selected="selected">', $txt['forever'], '</option>
															</select>
														</div>
														<div>
															<a href="#" onclick="document.getElementById(\'login-form\').submit()" class="btn mdc-text-blue-800 btn-flat waves-attach waves-button waves-effect">', $txt['login'], '</a>
															<a class="btn mdc-text-blue-800 btn-flat waves-attach waves-button" href="', $scripturl, '?action=register">', $txt['register'], '
															</a>
															<span class="oculto">
																<input type="submit" value="', $txt['login'], '" class="btn btn-default" />
															</span>
														</div>
													</div>
												</div>
											</form>
														';
    } else {
        echo '
											<div class="bienvenido">
												', $txt['welmsg_welcome'] . ' ' . $context['user']['name'] . '
											</div>
														';
        echo '
											<div>
												<a class="btn mdc-text-blue-800 btn-flat waves-attach waves-button" href="', $scripturl, '?action=unread"> ', $txt['view_unread_category'], '
												</a>
								        <a class="btn mdc-text-blue-800 btn-flat waves-attach waves-button" href="', $scripturl, '?action=unreadreplies"> ', $txt['replies'], '</a>
											</div>';
        // Is the forum in maintenance mode?
        if ($context['in_maintenance'] && $context['user']['is_admin']) {
            echo '<span class="notice">', $txt['maintain_mode_on'], '</span>';
        }
        // Are there any members waiting for approval?
        if (!empty($context['unapproved_members'])) {
            echo '<span>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '</span>';
        }
        if (!empty($context['open_mod_reports']) && $context['show_open_reports']) {
            echo '<span><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></span>';
        }
    }
    echo '
										</div>
										<div class="col-md-6">
										';
    //aqui para noticias en dispositivos grandes
    echo '
											<div class="text-center">', $txt['date'], ': ', $context['current_time'], '.</div>
											';
    if (!empty($settings['enable_news'])) {
        echo show_news("desktop");
    }
    echo '
										</div>
									</div>
								</div>

								<div class="row">
									<div class="container ">
										<div class="visible-md-block visible-lg-block">
												', template_menu(), '
										</div>
									</div>
								</div>
							</div>';
    //aqui debe de ir el div dard action
    echo '
						</div>
					</div>
				</div>
			</div>
		</div>


	';
    //dejo sin cerrar el <div class="content"> para cerrar en el final del documento
    // Agregar la seccion de noticias desplazables para tablets y celulares.
    if (!empty($settings['enable_news'])) {
        echo show_news("movil");
    }
    // Define the upper_section toggle in JavaScript.
    echo '
		<div class="clearfix"></div>';
    // The main content should go here.
    echo '
	<main class="contenedor">
		<div class="container">
			<div class="row">
				<div class="col-xs-12">
	';
    // Custom banners and shoutboxes should be placed here, before the linktree.
    // Show the navigation tree.
    theme_linktree();
    echo '

	';
}
// include the script at the _top_
include '../news.php';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<!-- link to the basic template from _this_ file -->
<link rel="stylesheet" type="text/css" href="../display/basic/style.css" />

<title>show_archives() or show_categories()</title>
</head>
<body>

<?php 
// EITHER
//show_archives();
// OR
show_categories();
//OR both
// show_archives();
// show_categories();
// empty show_news()	*required*
show_news();
?>

</body>
</html>
<?php

// include the script at the _top_
include '../news.php';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<!-- link to the basic template from _this_ file -->
<link rel="stylesheet" type="text/css" href="../display/basic/style.css" />

<title>show_archives() or show_categories()</title>
</head>
<body>

<?php 
show_archives();
show_categories();
show_news(10);
?>

</body>
</html>
Ejemplo n.º 12
0
function show_prj()
{
    checkPerm('view');
    $out =& $GLOBALS['page'];
    $out->setWorkingZone('content');
    $lang =& DoceboLanguage::createInstance('project', "lms");
    global $pathprj;
    require_once _base_ . '/lib/lib.table.php';
    // Controllo che l'utente non cerchi di entrare in progetti a cui non e' iscritto.
    $id = $_GET["id"];
    $myprj = user_projects(Docebo::user()->getIdSt());
    if (!in_array($id, $myprj)) {
        die("You can't access");
    }
    $modimg = '<img src="' . getPathImage() . 'standard/edit.png" alt="' . $lang->def("_MOD") . '" />';
    $query = sql_query("SELECT * FROM " . $GLOBALS["prefix_lms"] . "_prj WHERE id='{$id}';");
    if ($query && mysql_num_rows($query) > 0) {
        $row = mysql_fetch_array($query);
    }
    $ta_array = array();
    $ta_array["index.php?modname=project&amp;op=project"] = $lang->def("_PROJECT_MANAGER");
    $ta_array[] = $row["ptitle"];
    $out->add(getTitleArea($ta_array, "project"));
    $out->add('<div class="std_block">');
    /*	$out->add('<div class="alignRight">'
    		.'<a class="back_comand" href="index.php?modname=project&amp;op=project">'.$lang->def("_BACK").'</a></div><br />'); */
    $url = "index.php?modname=project&amp;op=project";
    $out->add(getBackUi($url, $lang->def('_BACK')));
    $show_something = false;
    $out->add("<table class=\"prjcontainer\">\n");
    $out->add("<tr>\n");
    $out->add("<td width=\"60%\">\n");
    //=TASKS==============
    if ($row["pstasks"]) {
        show_task($id, $row, $modimg);
        $show_something = true;
    }
    //=FILES==============
    if ($row["psfiles"]) {
        show_files($id, $row, $modimg);
        $show_something = true;
    }
    $out->add("</td>\n");
    $out->add("<td>");
    //=NEWS==============
    if ($row["psnews"]) {
        show_news($id, $row, $modimg);
        $show_something = true;
    }
    //=TODO==============
    if ($row["pstodo"]) {
        show_todo($id, $row, $modimg);
        $show_something = true;
    }
    $out->add("</td>\n");
    $out->add("</tr>\n");
    $out->add("</table><br />\n");
    require_once _base_ . '/lib/lib.dialog.php';
    setupHrefDialogBox('a[href*=prjdelitem]');
    //=MSG======================================================
    if ($row["psmsg"]) {
        $show_something = true;
        require_once $GLOBALS["where_framework"] . "/lib/lib.sysforum.php";
        $out->add('<h3 class="prjmsg_title">' . $lang->def("_MESSAGES") . '</h3>' . "\n");
        $out =& $GLOBALS['page'];
        $out->setWorkingZone('content');
        //$lang=DoceboLanguage::createInstance("sysforum", "lms");
        $sf = new sys_forum("lms", "project_message", $id);
        $sf->setPrefix($GLOBALS["prefix_lms"]);
        $sf->can_write = true;
        $sf->can_moderate = (bool) (is_owner(Docebo::user()->getIdSt(), $id) || is_admin(Docebo::user()->getIdSt(), $id));
        $sf->can_upload = true;
        $sf->use_realname = true;
        $sf->url = "index.php?modname=project&amp;op=showprj&amp;id=" . $id;
        $out->add($sf->show());
        // Change with sysforum class
    }
    if (!$show_something) {
        $out->add("<h3>" . $lang->def("_NOTHINGTOSEE") . "</h3>\n");
    }
    $out->add('</div>');
}
Ejemplo n.º 13
0
<?php

// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2008 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// BOINC 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 Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
require_once "../inc/util.inc";
require_once "../inc/news.inc";
check_get_args(array());
page_head("News archive");
show_news(0, 0);
page_tail();
Ejemplo n.º 14
0
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
echo "<html>\r\n\t<head>\r\n\t<title>" . PROJECT . "</title>\r\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"main.css\" media=\"all\" />\r\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"" . STYLESHEET . "\">\r\n\t<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . $rssname . "\" href=\"" . $rsslink . "\">\r\n";
include 'schedulers.txt';
echo "\r\n\t</head><body>\r\n\t<span class=page_title>" . PROJECT . "</span>\r\n\t<table cellpadding=\"8\" cellspacing=\"4\">\r\n\t<tr><td rowspan=\"2\" valign=\"top\" width=\"40%\">\r\n";
if ($stopped) {
    echo "\r\n\t\t<b>" . PROJECT . " is temporarily shut down for maintenance.\r\n\t\tPlease try again later</b>.\r\n\t";
} else {
    db_init();
    show_nav();
}
echo "\r\n\t<p>\r\n\t<a href=\"http://boinc.berkeley.edu/\"><img align=\"middle\" border=\"0\" src=\"img/pb_boinc.gif\" alt=\"Powered by BOINC\"></a>\r\n\t</p>\r\n\t</td>\r\n";
if (!$stopped) {
    $profile = get_current_uotd();
    if ($profile) {
        echo "\r\n\t\t\t<td id=\"uotd\">\r\n\t\t\t<h2>" . tra("User of the day") . "</h2>\r\n\t\t";
        show_uotd($profile);
        echo "</td></tr>\n";
    }
}
echo "\r\n\t<tr><td id=\"news\">\r\n\t<h2>News</h2>\r\n\t<p>\r\n";
show_news($project_news, 5);
if (count($project_news) > 5) {
    echo "<a href=\"old_news.php\">...more</a>";
}
echo "\r\n\t<p class=\"smalltext\">\r\n\tNews is available as an\r\n\t<a href=\"rss_main.php\">RSS feed</a> <img src=\"img/rss_icon.gif\" alt=\"RSS\">.</p>\r\n\t</td>\r\n\t</tr></table>\r\n";
if ($caching) {
    page_tail_main(true);
    end_cache(INDEX_PAGE_TTL);
} else {
    page_tail_main();
}
Ejemplo n.º 15
0
images/logos/logoklein@2x.png" border="0" width="215" height="83"  <?php 
echo tooltip(_("Zur Portalseite"));
?>
 >
        </a>
    </footer>



<? UrlHelper::bindLinkParam('index_data', $index_data); 
 		 
 		    //Auf und Zuklappen News 
 		    require_once 'lib/showNews.inc.php'; 
 		    process_news_commands($index_data); 
 		 
 		    show_news('studip', FALSE, 0, true, "100%", null, $index_data); 
?> 

</div>

<?
define('MAGPIE_CACHE_DIR', 'cache');
define('MAGPIE_CACHE_AGE', '600');
require_once('lib/rss_fetch.inc');
$url = 'http://el4.elan-ev.de/rss.php?id=70cefd1e80398bb20ff599636546cdff';

if ( $url ) {
$num_items = 20;
$rss = fetch_rss( $url );
$items = array_slice($rss->items, 0,$num_items);
$items_reverse = array_reverse($items, true);