protected function init()
 {
     //  Set Layout
     $this->layoutName = adminLayout();
     //  Set Page Title
     setPageTitle(trans($this->moduleName . "::menu_item.settings"));
 }
예제 #2
0
function _mainStatsDate()
{
    #
    # Show a typical Master/Detail view with toppane showing a browse list + delete buttons for each entry
    # New button loads empty Detail View + Save button --> reloads _browseDate
    # Click on a Master row shows editable details form + save button --> reloads _browseDate
    # uses: fretAllFedaDates.php for the browselist
    global $dbi, $event, $tdbg;
    echo setPageTitle('Manage Dates for Static Statistic Lists');
    echo '<p>Die hier angezeigten Stichtage sind in den <i>SELECT BOXEN</i> auf den unterschiedlichen statistik seiten sichtbar und anw&auml;hlbar. Wird ein Datum gel&ouml;scht so werden damit <b>keine</b> Werte oder Spiele gel&ouml;scht, sondern lediglich die mit diesem Datum assozierte statische Werteliste.<br>Ein Klick auf einen Datumseintrag ladet dieses zum Bearbeiten. Der Datums-Statistik Typ ist zwingend erforderlich.</p>';
    # SECTION 0 Navigation
    echo '<table bgcolor="' . $tdbg . '" cellpadding="2" cellspacing="1"><tr><td id="btnrefresh" bgcolor="white" onclick="initdatepage()" onMouseOver="mover(this)" onMouseOut="mout(this)">Tabelle neu laden</td>' . '<td></td><td bgcolor="white" id="datebrowseActivity"><i>Ready</i></td>' . '<td></td><td bgcolor="white" id="datesaveActivity"><i>Ready</i></td>' . '</tr></table><br>';
    # SECTION 1 BROWSELIST HEADER
    $aTH = array('ID', 'Datum', 'Comment', 'Creator', 'SyS', 'Ranking Name');
    $HEAD = ArrayToTableHead($aTH);
    echo '<table id="browseheader"><col width="20"><col width="90"><col width="310"><col width="90"><col width="30"><col width="170">' . $HEAD . '</table>';
    # Section 1.1 Browselist Body
    echo '<DIV class="tableroll">';
    echo '<table bgcolor="' . $tdbg . '" name="browsetable" id="browsetable" border="0" cellpadding="2" cellspacing="1" width="100%"><tbody></tbody></table></div><br/>';
    # SECTION 2 DETAIL VIEW
    echo '<div id="frmdate"><form name="dateentry" action="lsdb/statdate.php?opcode=save" method="post" target="_blank" onSubmit="submitForm(this);return false;"><fieldset><legend>Datum Bearbeiten</legend>';
    echo include 'forms/date.php';
    echo '</fieldset></form></div>';
    # // call the page initialisation at last make sure all DOM stuff is in place ....
    echo '<script language="javascript">initdatepage();</script>';
}
예제 #3
0
function _LS_LocationPage()
{
    global $dbi, $event, $tdbg;
    echo setPageTitle('Manage Locations');
    echo '<p>Hier werden die Spielst&auml;tten bzw. Locations im gesamten Bundesgebiet angezeigt. Ein Klick auf einen Eintrag ladet diesen zum Bearbeiten.<br><b>Unterhalb</b> der Datenmaske werden zugleich alle eingetragenen Heimmannschaften aus dem LigaSystem angezeigt.</p>';
    # SECTION 0 Navigation
    echo '<table bgcolor="' . $tdbg . '" cellpadding="2" cellspacing="1"><tr><td id="btnrefresh" bgcolor="white" onclick="initlocationpage()" onMouseOver="mover(this)" onMouseOut="mout(this)">Tabelle neu laden</td>' . '<td></td><td bgcolor="white" id="locbrowseActivity"><i>Ready</i></td>' . '<td></td><td bgcolor="white" id="locsaveActivity"><i>Ready</i></td>' . '</tr></table><br>';
    $location_count_result = sql_query('SELECT COUNT(*) FROM tbllocation l, tverband v WHERE l.lrealm_id = v.id', $dbi);
    $location_count = 0;
    while (list($count) = sql_fetch_row($location_count_result, $dbi)) {
        $location_count = $count;
    }
    $response->page = 1;
    $response->total = 1;
    $response->records = $location_count;
    $i = 0;
    $location_result = sql_query('SELECT * FROM tbllocation l, tverband v WHERE l.lrealm_id = v.id', $dbi);
    while (list($locid, $lname, $lcity, $lplz, $laddress, $lphone, $lactive, $lrealm_id, $lemail, $lcoordinates, $version, $lkey, $vereinid, $vcode, $vname, $vlogic, $version, $vactive) = sql_fetch_row($location_result, $dbi)) {
        $response->rows[$i]['id'] = $locid;
        $response->rows[$i]['cell'] = array($locid, $lname, $lcity, $lplz, $laddress, $lphone, $lactive, $lemail, $vname, $lcoordinates, $lrealm_id);
        $i++;
    }
    echo '<div id="locationData" style="display: none;">' . json_encode($response) . '</div>';
    echo '<table id="locationTable"></table><div id="locationPager"></div><script> createLocationTable(); </script>';
    # SECTION 2 DETAIL VIEW
    echo '<div id="frmLocation"><form name="locentry" action="fsaveLocation.php?opcode=save" method="post" target="_blank" onSubmit="submitForm(this);return false;"><fieldset><legend>Location Bearbeiten</legend>';
    echo include 'forms/location.php';
    echo '</form></div>';
    # section 4 BrowseOnSelectedDetail
    echo '<h3>Aktuelle Heimmannschaften dieser Spielst&auml;tte</h3><div id="axteamtable"></div>';
}
예제 #4
0
/**
*	purpose:	list specific players according to searchstring 
* 	params:		findstring, findpassnr
*	returns:	renders Page with Browsebar+PlayerTable
*/
function listall($findstr = '', $findpass = '', $firstLetter = '')
{
    # zeigt einen Table mit einer SpielerListe an
    global $dbi, $realm_id, $playercode, $usertoken;
    if (sizeof($usertoken['registermap']) < 1) {
        die_red('Err58:RegisterMap');
    }
    if (strlen($findstr) < 1 && strlen($findpass) < 1 && strlen($firstLetter) < 1) {
        $findstr = 'A';
    }
    $aTH = array('Aktiv', 'Vorname', 'Nachname', 'Key-1', 'Key-2', 'PLZ', 'Wohnsitz');
    $RS = DB_listPlayers($dbi, 0, $findstr, '', $findpass, '', '', $firstLetter);
    $target = $playercode . '?func=edit&amp;vpid=%P1%';
    $ROWS = RecordsetToClickTable($RS, 0, $target, 0);
    // OUTPUT //
    echo setPageTitle('<h3>Liste::Spielereintr&auml;ge ' . $findstr . '</h3>');
    echo LastNameBrowseBar($firstLetter);
    OpenTable('browse');
    echo ArrayToTableHead($aTH);
    echo $ROWS;
    CloseTable();
    debug('Anzahl der gefundenen Spieler = ' . sizeof($RS));
}
예제 #5
0
<!-- REMOVAL POST PAGE -->

<?php 
setPageTitle('Supression de billet');
if ($_SESSION['rank_id'] != 1) {
    goPage('accueil');
}
?>

<div class="row">
	<div class="large-12 medium-12 small-12 columns">
		<div class="panel">
			<?php 
$post_id = $_GET['post_id'];
$erreur = FALSE;
if (isset($_POST['delete']) && $_POST['delete']) {
    $link = connectDB();
    $req = "DELETE FROM hella_posts\n                       \t\tWHERE hella_posts.post_id = " . $post_id;
    $que = mysqli_query($link, $req) or die($req);
    // Sitemap & RSS flux refresh
    sitemapGen();
    rssGen();
    $_SESSION['textInfo'] = 'Le billet a été supprimé.';
    goPage('information');
} else {
    ?>
					<h1>
						Suppression de post
					</h1>
					<?php 
    if (is_null($post_id)) {
예제 #6
0
<?php

require "template.php";
# Now set the title of the page:
setPageTitle("A Look At Progress");
# Make the header.
generateHeader($_SERVER['PHP_SELF']);
?>

<div class="textheader">FreeGLUT 3.0 an onwards</div>
<p>
Major work, its status and planned milestone. <a
href="help.php">Help</a> on any of these plans is very welcome! Fork the
<a href="">github repository</a>, <a
href="http://lists.sourceforge.net/lists/listinfo/freeglut-developer">join</a>
and contact us on the <a
href="mailto:freeglut-developer@lists.sourceforge.net">freeglut-developer</a>
mailing list to discuss your plans, and get cracking!</p>
<table>
<tr>
<th>Feature</th><th>Status</th><th>Milestone</th></tr>
<tr><td>Android port</td><td>Basic but complete functionality by <a href="http://www.beuc.net/">Sylvain
Beucler</a>, but there are <a href=docs/android.php#roadmap>todo
points</a></td><td>Basic functionality as is now done: 3.0. Future
enhancements: 3.0 or later.</td></tr>

<tr><td>BlackBerry 10 port</td><td>Basic but complete functionality
by <a href="https://github.com/rcmaniac25">Vinnie
Simonetti</a>.</td><td>Basic functionality as is now done: 3.0. Future
enhancements: 3.0 or later.</td></tr>
예제 #7
0
파일: install.php 프로젝트: Enseed/FreeGLUT
<?php

require "../template.php";
# Now set the title of the page:
setPageTitle("Installation Instructions");
# Make the header.
generateHeader($_SERVER['PHP_SELF']);
?>

<div class="textheader">How to install freeglut...</div>
<p>It's not *that* hard...</p>

<p>Presently, there are few pre-packaged installs, so the recommended method for most users is to follow these instructions.  Even if you have a package system that includes freeglut, you may wish to manually install for a variety of reasons.  A likely reason is simply that the latest version of freeglut may not have been packaged.</p>

<p>So...</p>

<div class="textheader">Download freeglut</div>
<p>First, you need to download a freeglut release. Newer is generally better, but unless you know what you're doing, you should use a release marked "Stable." So download the newest Stable release that you can.  (On the other hand, if you discover a bug and want to report it, it is helpful to try to run the "current" freeglut, as we have been known to fix some bugs before they are reported.)</p>

<div class="textheader">Untar and configure the packages</div>
<p>Copy the tarball you downloaded into a temporary directory. Untar it as follows:</p>
<pre>zcat freeglut-2.2.0.tar.bz2 | tar -vxf -</pre>

<div class="textheader">Change to the resulting directory:</div>
<pre>cd freeglut-2.X.X</pre>
 
<div class="textheader">Now, configure the packages:</div>
<pre>./configure</pre>

<p>NetBSD users may need a slightly different command:</p>
예제 #8
0
if (!$content['struct'][$content['cat_id']]['acat_opengraph']) {
    $content['opengraph']['support'] = false;
}
// set search status for current category
$cache_searchable = $content['struct'][$content['cat_id']]['acat_nosearch'];
$content['list_mode'] = true;
if ($aktion[1]) {
    // render page based on article
    include_once PHPWCMS_ROOT . "/include/inc_front/content.article.inc.php";
    $content['list_mode'] = false;
} elseif (!empty($content['struct'][$content['cat_id']]['acat_pagetitle'])) {
    // a custom pagetitle for structure level exists
    $content["pagetitle"] = $content['struct'][$content['cat_id']]['acat_pagetitle'];
    $content['opengraph']['title'] = $content["pagetitle"];
} else {
    $content["pagetitle"] = setPageTitle($content["pagetitle"], $content['struct'][$content['cat_id']]['acat_name'], '');
    $content['opengraph']['title'] = $content['struct'][$content['cat_id']]['acat_name'];
}
// Force overwritten canonical link
if ($content['struct'][$content['cat_id']]['acat_canonical']) {
    $content['overwrite_canonical'] = $content['struct'][$content['cat_id']]['acat_canonical'];
}
if ($content['overwrite_canonical']) {
    $_test_canonical_schema = substr($content['overwrite_canonical'], 0, 4);
    if ($_test_canonical_schema !== 'http') {
        $content['overwrite_canonical'] = ltrim('/');
        if ($_test_canonical_schema === '{SIT') {
            $content['overwrite_canonical'] = str_replace('{SITE}', PHPWCMS_URL, $content['overwrite_canonical']);
        } else {
            $content['overwrite_canonical'] = PHPWCMS_URL . $content['overwrite_canonical'];
        }
예제 #9
0
<!-- QUESTION/ANSWER CREATION PAGE -->

<?php 
setPageTitle('Création de Question/Réponse');
if ($_SESSION['rank_id'] != 1) {
    goPage('accueil');
} else {
    $emptyQuestion = FALSE;
    $emptyAnswer = FALSE;
    $emptyIllustration = FALSE;
    $fileError = FALSE;
    ?>
		
		<div class="row">
			<div class="large-12 medium-12 small-12 columns">
				<div class="panel">
					
					<?php 
    if (isset($_POST['save']) && $_POST['save'] && isset($_POST['question']) && !empty($_POST['question']) && isset($_POST['answer']) && !empty($_POST['answer']) && isset($_FILES['illustration']) && $_FILES['illustration']['error'] == 0 && isset($_POST['illustrationName']) && !empty($_POST['illustrationName'])) {
        $question = htmlentities($_POST['question'], ENT_QUOTES);
        $answer = htmlentities($_POST['answer'], ENT_QUOTES);
        $fileExtension = strtolower(end(explode('.', basename($_FILES['illustration']['name']))));
        if ($fileExtension == 'php' or $fileExtension == 'html') {
            echo 'Echec du téléchargement du fichier.';
        } else {
            $illustrationName = htmlentities($_POST['illustrationName'], ENT_QUOTES) . '.' . $fileExtension;
            $uploadFile = 'img/answer/' . $illustrationName;
            if (move_uploaded_file($_FILES['illustration']['tmp_name'], $uploadFile)) {
                $link = connectDB();
                $req = "INSERT INTO hella_faq (faq_question, faq_answer, faq_illustration_name)\n\t\t\t\t\t\t\t\t\t\t\tVALUES ('" . $question . "', '" . $answer . "', '" . $illustrationName . "')";
                $que = mysqli_query($link, $req) or die($req);
예제 #10
0
 if ($row['shopprod_description0']) {
     $row['meta_description'] = $row['shopprod_description0'];
 } elseif ($row['shopprod_description1']) {
     $row['meta_description'] = $row['shopprod_description1'];
 } else {
     $row['meta_description'] = '';
 }
 if ($row['meta_description']) {
     $row['meta_description'] = trim(strip_tags(strip_bbcode($row['meta_description'])));
     $row['meta_description'] = getCleanSubString($row['meta_description'], 75, '', 'word');
     $row['meta_description_rendered'] = true;
 } else {
     $row['meta_description_rendered'] = false;
 }
 if (!empty($row['shopprod_overwrite_meta'])) {
     $content["pagetitle"] = setPageTitle($content["pagetitle"], $article['cat'], $shop_pagetitle);
     if ($row['meta_description_rendered']) {
         set_meta('description', $row['meta_description']);
     }
 }
 if ($row['shopprod_opengraph']) {
     $content['opengraph']['type'] = 'og:product';
     $content['opengraph']['title'] = $shop_pagetitle;
     $content['opengraph']['url'] = abs_url(array('shop_detail' => $shop_detail_id), array('shop_cat', 'shop_cart', 'phpwcms_output_action', 'print', 'phpwcms-preview', 'unsubscribe', 'subscribe'));
     if ($row['meta_description_rendered']) {
         $content['opengraph']['description'] = $row['meta_description'];
     }
 } else {
     $content['opengraph']['support'] = false;
 }
 // Update product view count
예제 #11
0
<!-- 404 PAGE -->

<?php 
setPageTitle('404');
?>

<div class="row">
	<div class="large-12 medium-12 small-12 columns">
		<div style="text-align: center"
			 class="panel">
			<img src="img/404_anthony_godard.png">
			<p style="font-size: 30px;
                      font-weight: bold; ">
				ERREUR 404
			</p>
			<p style="font-size: 20px;
                      font-weight: bold; ">
				La page demandée n'a pas été trouvée
			</p>
		</div>
	</div>
</div>
예제 #12
0
<!-- REMOVAL Q/A PAGE -->

<?php 
setPageTitle('Supression de Question/Réponse');
if ($_SESSION['rank_id'] != 1) {
    goPage('accueil');
} else {
    ?>

		<div class="row">
			<div class="large-12 medium-12 small-12 columns">
				<div class="panel">
					<?php 
    $qa_id = $_GET['qa_id'];
    $erreur = FALSE;
    if (isset($_POST['delete']) && $_POST['delete']) {
        $link = connectDB();
        $req = "DELETE FROM hella_faq\n                        \t\t\tWHERE faq_id = " . $qa_id;
        $que = mysqli_query($link, $req) or die($req);
        $_SESSION['textInfo'] = 'La question a été supprimée.';
        goPage('information');
    } else {
        ?>
							<h1>
								Suppression de Question/Réponse
							</h1>
							<?php 
        if (is_null($qa_id)) {
            goPage('accueil');
        }
        $link = connectDB();
예제 #13
0
function _uploadMembership($file, $membertype_id)
{
    #
    # // add a payment record to this player ... depending on OEDV / OEDSO
    # // passnr;start;end;firstname;lastname;vereinID => $membertype_id
    # //
    $fp = fopen($file, "r");
    while ($lineIn = fgetcsv($fp, 1000, ";")) {
        if (sizeof($lineIn) < 6) {
            die_red('Error517:DataSetSize:' . debug($lineIn));
        }
        if (strlen($lineIn[5]) < 5) {
            die_red('Err518:NoValidVereinsZVR:' . debug($lineIn));
        }
        if (strlen($lineIn[1]) < 8) {
            die_red('Err519:MalformedStartDate:' . debug($lineIn));
        }
        if (strlen($lineIn[2]) < 8) {
            die_red('Err519:MalformedEndDate:' . debug($lineIn));
        }
        $RS[] = $lineIn;
    }
    fclose($fp);
    foreach ($RS as $R) {
        // check if player exist -> msg
        // check if verein exist -> msg
        // action ....			-> msg
        $PID = dso_checkPlayerByPassNr($R[0]);
        if ($PID > 0) {
            $aMSG[] = '<font color=green>Identified Player ' . $R[3] . ' ' . $R[4] . ' as unique ID:' . $PID . '</font>';
            $VID = dso_verifyVereinZVR($R[5]);
            if ($VID > 0) {
                $aMSG[] = '<font color=green>Player OK, Verein OK -- adding Membership</font>';
                $aMSG[] = dso_insupdmembership(0, $PID, $VID, $membertype_id, $R[0], $R[1], $R[2]);
            } else {
                $aMSG[] = '<font color=red>Verein with ID ' . $R[5] . ' not found or no rights to register players for this Verein</font>';
                $aMSG[] = '<font color=red>REJECTED LINE:' . $R[0] . ';' . $R[1] . ';' . $R[2] . ';' . $R[3] . ';' . $R[4] . ';' . $R[5] . ';</font>';
            }
        } else {
            $aMSG[] = '<font color=red>Player ' . $R[3] . ' ' . $R[4] . ' can not be identified, no membership added</font>';
            $aMSG[] = '<font color=red>REJECTED LINE:' . $R[0] . ';' . $R[1] . ';' . $R[2] . ';' . $R[3] . ';' . $R[4] . ';' . $R[5] . ';</font>';
        }
    }
    // == OUTPUT == //
    // ============ //
    echo setPageTitle('Log Output from Bulk IMPORT (Records:' . sizeof($RS) . ') for Type=' . $membertype_id);
    echo '<p>The loader is doing some minimum checks on the expected fieldvalues - rejected entries are shown in <font color="red">red</font>.</p>';
    OpenTable('output');
    foreach ($aMSG as $MSG) {
        echo '<tr><td>' . $MSG . '</td></tr>';
    }
    CloseTable();
}
예제 #14
0
<?php

require "template.php";
# Now set the title of the page:
setPageTitle("Basic Page");
# Make the header.
generateHeader($_SERVER['PHP_SELF']);
?>

<div class="textheader">What?</div>
<p>freeglut is a completely OpenSourced alternative to the OpenGL Utility Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to support the sample programs in the second edition OpenGL 'RedBook'. Since then, GLUT has been used in a wide variety of practical applications because it is simple, widely available and highly portable.</p>

<?php 
generateFooter();
예제 #15
0
<!-- POST CREATION PAGE -->

<?php 
setPageTitle('Création de billet');
// If no admin, return to index
if ($_SESSION['rank_id'] != 1) {
    goPage('accueil');
} else {
    $emptyTitle = FALSE;
    $emptyTag = FALSE;
    $emptyContent = FALSE;
    ?>
		
		<div class="row">
			<div class="large-12 medium-12 small-12 columns">
				<div class="panel">
					
					<?php 
    /*//////////////////////////////////////////////////////////////////////////////////////////*/
    /*///////////////////////////////////////// Process ////////////////////////////////////////*/
    /*//////////////////////////////////////////////////////////////////////////////////////////*/
    // If data in $_POST
    if (isset($_POST['save']) && $_POST['save'] && isset($_POST['title']) && !empty($_POST['title']) && isset($_POST['tag']) && !empty($_POST['tag']) && isset($_POST['content']) && !empty($_POST['content'])) {
        // Data processing and set in variables
        $title = htmlentities($_POST['title'], ENT_QUOTES);
        $tag = htmlentities($_POST['tag'], ENT_QUOTES);
        $content = htmlentities($_POST['content'], ENT_QUOTES);
        $link = connectDB();
        $req = "INSERT INTO hella_posts (post_title,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t post_tag,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t post_content,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t user_id)\n\t\t\t\t\t\t\t\t\tVALUES ('" . $title . "',\n\t\t\t\t\t\t\t\t\t\t\t'" . $tag . "',\n\t\t\t\t\t\t\t\t\t\t\t'" . $content . "',\n\t\t\t\t\t\t\t\t\t\t\t" . $_SESSION['user_id'] . ")";
        $que = mysqli_query($link, $req) or die($req);
        // Sitemap & RSS flux refresh
예제 #16
0
파일: news.php 프로젝트: Enseed/FreeGLUT
<?php

require "template.php";
# Now set the title of the page:
setPageTitle("News");
# Make the header.
generateHeader($_SERVER['PHP_SELF']);
?>

<div class="news-item">
<div class="news-header">freeglut 2.8.1 Released [5 April 2013]</div>
<p>A new bugfix release of "freeglut" is now available. Here is a
incomplete list of fixes and enhancements:</p>
<ul>
<li>Visual Studio 2012 project files, and a fix for the disappearing
windows with this toolset.</li>
<li>X11 menu regression fixed, menu behavior improved on Windows.</li>
<li>Now using monotonic clock on X11.</li>
<li>GameMode now doesn't attempt to change unspecified display params to
arbitrary defaults, and not changing display mode when unnecessary to
avoid flicker.</li>
<li>On Windows, windows no longer attain focus as soon as the mouse
enters them</li>
<li>Various demo enhancements.</li>
<li>Many bugs have been fixed.</li>
</ul>
</div>

<div class="news-item">
<div class="news-header">freeglut 2.8.0 Released [2 January 2012]</div>
<p>After two years of quiet maintenance, a new version of "freeglut" has been released.  Here are some of the major changes:</p>
예제 #17
0
<!-- CONTACT PAGE -->

<?php 
setPageTitle('Contact');
?>

<div class="row">
	<div class="large-12 medium-12 small-12 columns">
		<div class="panel">
			
			<?php 
/*//////////////////////////////////////////////////////////////////////////////////////////*/
/*//////////////////////////////////////// Process /////////////////////////////////////////*/
/*//////////////////////////////////////////////////////////////////////////////////////////*/
$emptyName = FALSE;
$emptyEmail = FALSE;
$emptyEmailVerify = FALSE;
$notSameEmail = FALSE;
$emptySubject = FALSE;
$emptyMessage = FALSE;
$displayForm = TRUE;
// If ther is the good data in $_POST
if (isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['Email']) && !empty($_POST['Email']) && $_POST['Email'] == $_POST['EmailVerify'] && isset($_POST['subject']) && !empty($_POST['subject']) && isset($_POST['message']) && !empty($_POST['message'])) {
    // Data processing
    $name = htmlentities($_POST['name'], ENT_QUOTES);
    $Email = htmlentities($_POST['Email'], ENT_QUOTES);
    $subject = $_POST['subject'];
    $message = $_POST['message'];
    $recipient = getSiteEmail();
    // If data are good to send a email or not, appropriate message
    if (sendEmail($name, $Email, $subject, $message, $recipient)) {
<!-- QUESTION/ANSWER ILLUSTRATION EDITION PAGE -->

<?php 
setPageTitle('Edition de l\'image du projet');
if ($_SESSION['rank_id'] != 1) {
    goPage('accueil');
} else {
    ?>
		
		<div class="row">
			<div class="large-12 medium-12 small-12 columns">
				<div class="panel">
					<?php 
    $project_id = $_GET['project_id'];
    $erreur = FALSE;
    if (isset($_POST['save']) && $_POST['save']) {
        $fileExtension = strtolower(end(explode('.', basename($_FILES['image']['name']))));
        if ($fileExtension == 'php' or $fileExtension == 'html') {
            echo 'Erreur sur le fichier.';
        } else {
            $image = htmlentities($_POST['image'], ENT_QUOTES) . '.' . $fileExtension;
            $uploadFile = 'img/project/' . $image;
            if (move_uploaded_file($_FILES['image']['tmp_name'], $uploadFile)) {
                $link = connectDB();
                $req = "UPDATE hella_projects\n\t\t\t\t\t\t\t\t\t\t\tSET project_image ='" . $image . "'\n\t\t\t\t\t\t\t\t\t\t\tWHERE project_id = " . $project_id;
                $que = mysqli_query($link, $req) or die($req);
                $_SESSION['textInfo'] = 'Enregistrement effectué.';
                goPage('information');
            } else {
                echo 'Echec du téléchargement du fichier.';
            }
예제 #19
0
function _blank()
{
    echo setPageTitle('Liga System LSDB, ein Informationsservice des Dartsverband');
    echo '<div id=\'maincontent\'>';
    echo '<p>Die von dir gew&auml;hlte Funktion ist noch nicht verf&uuml;gbar ...</p>';
    echo '</div>';
}
예제 #20
0
<?php

require $_SERVER['DOCUMENT_ROOT'] . '/includes/config.inc';
$meta = decode_json(realpath("meta.json"));
extract($meta, EXTR_OVERWRITE);
setPageTitle($title);
require "../../../resources/template.inc";
예제 #21
0
<!-- QUESTION/ANSWER EDITION PAGE -->

<?php 
setPageTitle('Edition de Question/Réponse');
if ($_SESSION['rank_id'] != 1) {
    goPage('accueil');
} else {
    ?>
		
		<div class="row">
			<div class="large-12 medium-12 small-12 columns">
				<div class="panel">
					<?php 
    $faq_id = $_GET['qa_id'];
    $erreur = FALSE;
    if (isset($_POST['save']) && $_POST['save']) {
        $modQuestion = htmlentities($_POST['question'], ENT_QUOTES);
        $modAnswer = htmlentities($_POST['answer'], ENT_QUOTES);
        $link = connectDB();
        $req = "UPDATE hella_faq\n\t\t\t\t\t\t\t\t\tSET faq_question  = '" . $modQuestion . "',\n\t\t\t\t\t\t\t\t\t\tfaq_answer = '" . $modAnswer . "'\n\t\t\t\t\t\t\t\t\tWHERE faq_id = " . $faq_id;
        $que = mysqli_query($link, $req) or die($req);
        $_SESSION['textInfo'] = 'Modifications effectuées.';
        goPage('information');
    } else {
        ?>
							<h1>
								Edition de FAQ
							</h1>
							<?php 
        if (is_null($faq_id)) {
            goPage('accueil');
예제 #22
0
<!-- REMOVAL PAGE -->

<?php 
setPageTitle('Supression de page');
if ($_SESSION['rank_id'] != 1) {
    goPage('accueil');
} else {
    ?>
		
		<div class="row">
			<div class="large-12 medium-12 small-12 columns">
				<div class="panel">
					<?php 
    $page_id = $_GET['page_id'];
    $erreur = FALSE;
    if (isset($_POST['delete']) && $_POST['delete']) {
        $link = connectDB();
        $req = "DELETE FROM hella_pages\n                        \t\t\tWHERE page_id = " . $page_id;
        $que = mysqli_query($link, $req) or die($req);
        $_SESSION['textInfo'] = 'La page a été supprimée.';
        goPage('information');
    } else {
        ?>
							<h1>
								Suppression de page
							</h1>
							<?php 
        if (is_null($page_id)) {
            goPage('accueil');
        }
        $link = connectDB();
예제 #23
0
$req = 'SELECT page_id, page_name, page_content
						FROM hella_pages
						WHERE page_id = 0' . $page_id . ' OR
						 	  page_short_name LIKE "' . $page_short_name . '"';
$que = mysqli_query($link, $req);
if (mysqli_num_rows($que) != 1) {
    ?>
					Erreur, retour à l'accueil !
				<?php 
    //goPageTimer('home', 3000);
} else {
    $res = mysqli_fetch_assoc($que);
    $page_id = $res['page_id'];
    $name = html_entity_decode($res['page_name']);
    $content = html_entity_decode($res['page_content']);
    setPageTitle($name);
    ?>
					
					<h1>
						<?php 
    echo $name;
    ?>
					</h1>
					<?php 
    if (isset($_SESSION['rank_id']) && $_SESSION['rank_id'] == 1) {
        ?>
					<!-- PAGE EDITION -->
					<a href="pageEdition-<?php 
        echo $page_id;
        ?>
">
 public function my_account()
 {
     //  Set Page Title
     setPageTitle(trans($this->moduleName . "::menu_item.my_account"));
     //  Get User
     $item = Auth::user();
     //  Populate User Metas
     $item->populate_metas();
     //  Fire Account Item Event
     mergeEventFireResponse($item, app("events")->fire('module.auth.account', array(&$item)));
     setPageData("item", $item);
     $this->_render('my_account');
 }
예제 #25
0
<!-- PAGE CREATOR -->

<?php 
setPageTitle('Création de page');
// If no admin, return to index
if ($_SESSION['rank_id'] != 1) {
    goPage('accueil');
} else {
    $emptyTitle = FALSE;
    $emptyContent = FALSE;
    $emptyShortName = FALSE;
    ?>
		
		<div class="row">
			<div class="large-12 medium-12 small-12 columns">
				<div class="panel">
					
					<?php 
    /*//////////////////////////////////////////////////////////////////////////////////////////*/
    /*///////////////////////////////////////// Process ////////////////////////////////////////*/
    /*//////////////////////////////////////////////////////////////////////////////////////////*/
    // If data in $_POST
    if (isset($_POST['save']) && $_POST['save'] && isset($_POST['shortName']) && !empty($_POST['shortName']) && isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['content']) && !empty($_POST['content'])) {
        // Data processing and set in variables
        $shortName = htmlentities($_POST['shortName'], ENT_QUOTES);
        $name = htmlentities($_POST['name'], ENT_QUOTES);
        $content = htmlentities($_POST['content'], ENT_QUOTES);
        $link = connectDB();
        $req = "INSERT INTO hella_pages (page_short_name, page_name, page_content)\n                        \t\t\tVALUES ('" . $shortName . "', '" . $name . "', '" . $content . "')";
        $que = mysqli_query($link, $req) or die($req);
        $_SESSION['textInfo'] = 'Enregistrement effectué.';
예제 #26
0
파일: api.php 프로젝트: Enseed/FreeGLUT
<?php

require "../template.php";
# Now set the title of the page:
setPageTitle("API Documentation");
# Make the header.
generateHeader($_SERVER['PHP_SELF']);
?>

<p></p>
<div style="font-size: 1.6em; font-weight: bold; text-align: center;">
The Open-Source<br/>
OpenGL Utility Toolkit<br/>
(<i>freeglut</i> 3.0.0)<br/>
Application Programming Interface
</div>

<p></p>
<div style="font-size: 1.6em; font-weight: bold; text-align: center;">
Version 4.0
</div>

<p></p>
<div style="font-size: 1.2em; font-weight: bold; text-align: center;">
The <i>freeglut</i> Programming Consortium<br/>
January, 2013
</div>

<p>
OpenGL is a trademark of Silicon Graphics, Inc. X Window System is a trademark
of X Consortium, Inc.  Spaceball is a registered trademark of Spatial
예제 #27
0
<!-- REMOVAL Q/A PAGE -->

<?php 
setPageTitle('Supression de projet');
if ($_SESSION['rank_id'] != 1) {
    goPage('accueil');
} else {
    ?>
		
		<div class="row">
			<div class="large-12 medium-12 small-12 columns">
				<div class="panel">
					<?php 
    $project_id = $_GET['project_id'];
    $erreur = FALSE;
    if (isset($_POST['delete']) && $_POST['delete']) {
        $link = connectDB();
        $req = "DELETE FROM hella_projects\n                        \t\t\tWHERE project_id = " . $project_id;
        $que = mysqli_query($link, $req) or die($req);
        $_SESSION['textInfo'] = 'Le projet a été supprimé.';
        goPage('information');
    } else {
        ?>
							<h1>
								Suppression de projet
							</h1>
							<?php 
        if (is_null($project_id)) {
            goPage('accueil');
        }
        $link = connectDB();
예제 #28
0
<?php

include 'empty_main.php';
if (sizeof($usertoken['msgmap']) < 1 && $usertoken['usertype_id'] < 6) {
    die_red('No access to the Message SubSystem');
}
#debug($usertoken['msgmap']);
/*
 * common pageobjects
 */
$buttons = '<table><tr><td>' . _button('Create', 'msgtab(1)') . '</td><td>' . _button('Inbox', 'msgtab(2)') . '</td><td>' . _button('Outbox', 'msgtab(3)') . '</td></tr></table><hr/>';
echo '<script type="text/javascript" src="code/lsdbmail.js"></script>';
echo '</div>';
echo setPageTitle('Message Center');
echo setPageControlTabs($buttons);
LS_page_end();
예제 #29
0
 }
 $content['UNIQUE_ALINK'][$row["article_id"]] = $row["article_id"];
 //set cache timeout for this article
 if ($row['article_cache'] != '') {
     $phpwcms['cache_timeout'] = $row['article_cache'];
 }
 //get value for article search (on/off)
 if ($row['article_nosearch'] != '') {
     $cache_searchable = '1';
 }
 $content['opengraph']['support'] = phpwcms_boolval($row["article_opengraph"]);
 $content['opengraph']['type'] = 'article';
 // Open Graph type
 //check if article has custom pagetitle
 if (empty($row["article_pagetitle"])) {
     $content["pagetitle"] = setPageTitle($content["pagetitle"], $article['cat'], $row["article_title"]);
     $content['opengraph']['title'] = $row["article_title"];
 } else {
     $content["pagetitle"] = $row["article_pagetitle"];
     $content['opengraph']['title'] = $content["pagetitle"];
 }
 // check description
 if (!empty($row['article_description'])) {
     set_meta('description', $row['article_description']);
     $content['opengraph']['description'] = $row["article_description"];
 }
 $content['all_keywords'] = $row['article_keyword'];
 if (!empty($template_default['article_render_anchor'])) {
     $content["main"] .= '<a ';
     if (!HTML5_MODE) {
         $content["main"] .= 'name="jump' . $row["article_id"] . '" ';
예제 #30
0
<!-- QUESTION/ANSWER EDITION PAGE -->

<?php 
setPageTitle('Edition de projet');
if ($_SESSION['rank_id'] != 1) {
    goPage('accueil');
} else {
    ?>
		
		<div class="row">
			<div class="large-12 medium-12 small-12 columns">
				<div class="panel">
					<?php 
    $project_id = $_GET['project_id'];
    $erreur = FALSE;
    if (isset($_POST['save']) && $_POST['save']) {
        $modTitle = htmlentities($_POST['title'], ENT_QUOTES);
        $modDescription = htmlentities($_POST['description'], ENT_QUOTES);
        $modTechnos = htmlentities($_POST['technos'], ENT_QUOTES);
        $modLink = htmlentities($_POST['link'], ENT_QUOTES);
        $modStatus = htmlentities($_POST['status'], ENT_QUOTES);
        $link = connectDB();
        $req = "UPDATE hella_projects\n\t\t\t\t\t\t\t\t\tSET project_title  = '" . $modTitle . "',\n\t\t\t\t\t\t\t\t\t\tproject_description = '" . $modDescription . "',\n\t\t\t\t\t\t\t\t\t\tproject_technos = '" . $modTechnos . "',\n\t\t\t\t\t\t\t\t\t\tproject_link = '" . $modLink . "',\n\t\t\t\t\t\t\t\t\t\tproject_status = '" . $modStatus . "'\n\t\t\t\t\t\t\t\t\tWHERE project_id = " . $project_id;
        $que = mysqli_query($link, $req) or die($req);
        $_SESSION['textInfo'] = 'Modifications effectuées.';
        goPage('information');
    } else {
        ?>
							<h1>
								Edition de projet
							</h1>