Beispiel #1
0
function page_header($title)
{
    ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?php 
    echo $title;
    ?>
</title>
<link rel=StyleSheet href="<?php 
    echo css_href("admin.css");
    ?>
" type="text/css">
</head>

<body>
<table class="outer">
  <tr>
    <td>
      <table class="inner">
        <tr>
          <th colspan="2" class="heading"><?php 
    echo $title;
    ?>
</th>
        </tr>
        <tr>
          <td colspan="2">
<?php 
}
Beispiel #2
0
function generate_page($title, $contents, $skip_header = false, $meta_robots = false)
{
    global $template_dir, $domain;
    $page = new YATT($template_dir, 'page.yatt');
    $page->set('domain', $domain);
    $page->set('css_href', css_href());
    $page->set('js_href', js_href());
    $page->set('js_jquery_href', js_href($filename = "jquery-1.11.1.min.js", $cache_buster = false));
    $bch = browser_css_href();
    if ($bch) {
        $page->set('browser_css_href', $bch);
        $page->parse('page.bch');
    }
    $page->set('browser_css_href', browser_css_href());
    if ($meta_robots) {
        $page->set('robots', $meta_robots);
        $page->parse('page.meta_robots');
    }
    $page->set('title', $title);
    $page->set('contents', $contents);
    if (!$skip_header) {
        $page->parse('page.header');
    }
    $page->parse('page');
    return trim($page->output());
}
Beispiel #3
0
    noob($_GET['noob'], $uuser->aid, $stats['active']);
    return;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?php 
echo "{$domain}";
?>
: Account Information for <?php 
echo "{$uuser->name}";
?>
</title>
<link rel=StyleSheet href="<?php 
echo css_href("account.css");
?>
" type="text/css">
</style>
</head>

<body bgcolor="#ffffff">

<h1>Account information</h1>

<!--
<?php 
echo $user->name . ", " . $user->aid . "\n";
echo $uuser->name . ", " . $uuser->aid . "\n";
echo "'{$script_name}' '{$path_info}' '{$regs['1']}'\n";
?>
Beispiel #4
0
$include_path = "..:../include:../config";
$old_include_path = ini_get("include_path");
if (!empty($old_include_path)) {
    $include_path .= ":" . $old_include_path;
}
ini_set("include_path", $include_path);
require_once "setup.inc";
require_once "util.inc";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Forum Tips</title>
<link rel=StyleSheet href="<?php 
echo css_href();
?>
" type="text/css">
</head>

<body>
<h1>Posting Tips</h1>
<p>To automatically track threads that you create or post to, make sure to check the "Default to track threads you create or followup to" checkbox in your <a href="/preferences.phtml?page=/tips/">preferences</a>.</p>

<h2><a name="7">Inserting images, video and links</a></h2>
<h3>Images</h3>
<p>There are two ways to add a picture to a Forum posting.  The first is to use
the box in the posting dialogue labeled "<b>Image URL</b>".  If you put the URL
to a picture in this box then it will appear within your post. The second way
is to use the appropriate HTML within the body of the message itself.  This can
be useful for posting multiple pictures in the same post.  Here is the sample