Beispiel #1
0
$db = new sqldb2($DB_CONFIG);
$config = new nlb_config($db);
include $config->langFile();
$bbcode_image_folder = skin_dir . 'bb/';
$codes = array();
$codes[] = array($l['bb-bold'], 'bold.gif', '[b] [/b]');
$codes[] = array($l['bb-italic'], 'italic.gif', '[i] [/i]');
$codes[] = array($l['bb-underline'], 'underline.gif', '[u] [/u]');
$codes[] = array($l['bb-code'], 'code.gif', '[code] [/code]');
$codes[] = array($l['bb-img'], 'img.gif', '[img] [/img]');
$codes[] = array($l['bb-url'], 'url.gif', '[url] [/url]');
$codes[] = array($l['bb-quote'], 'quote.gif', '[quote] [/quote]');
$i = 0;
foreach ($codes as $bb) {
    $ets->items[$i]->desc = $bb[0];
    $ets->items[$i]->img = $bbcode_image_folder . $bb[1];
    $ets->items[$i]->code = $bb[2];
    $i++;
}
$ets->java_script = <<<END_OF_JS

<script language="JavaScript" type="text/javascript">
<!--
function insertItem(text) {
\topener.document.new_entry.body.value += text; 
}
//-->
</script>
END_OF_JS;
printt($ets, skin_insert);
Beispiel #2
0
/**
 * Print out a built template string
 */
function printts($datatree, $containers, $entry = 'main')
{
    printt($datatree, $containers, $entry, _ETS_STRING_READ, '', '');
}
Beispiel #3
0
    $t[$i]->type = 'data';
    $t[$i]->desc = $l['reg-template'];
    $t[$i]->value = $st;
    $i++;
    $t[$i]->type = 'submit';
    $t[$i]->value = $l['submit'];
    $t[$i]->center = true;
    //$t[$i]->desc = " ";
    // check for errors
    $errors = '';
    if ($baddata) {
        $errors = '<div class="error">' . $l['data-problems'] . '<br />';
        foreach ($problems as $p) {
            $errors .= '<li>' . $p . "</li>\n";
        }
        $errors .= "</div> \n";
    }
    $ets->page_body = $errors . build_form($t, $form, $table, $clean);
}
$ets_outter->main_title = $config->get('site_name') . ': ' . $l['title-newuser'];
$ets_outter->page_title = $l['title-newuser'];
$ets_outter->sitenav = buildMainNav($l, $user);
$ets_outter->script_path = script_path;
$ets_outter->recent_blogs = $blog->getRecent($config);
$ets_outter->query_count = $db->getQueryCount();
$ets_outter->gen_time = mymicrotime($start, 5);
$ets_outter->welcome[] = $user->getWelcomeTags();
printt($ets_outter, skin_header);
printt($ets, skin_basic);
printt($ets_outter, skin_footer);
Beispiel #4
0
function Quit()
{
    printt('\\nThanks for using \\E[31mSpawn Fetcher\\E[0m!');
    exit;
}
Beispiel #5
0
            }
            $i++;
        }
        // setup tags for next/prev pages.
        if ($page > 0) {
            $ets->url_page_prev = build_link('friends.php', array('page' => $page - 1, 'user' => $USERID));
        }
        if ($total > $page_start + $perpage) {
            $ets->url_page_next = build_link('friends.php', array('page' => $page + 1, 'user' => $USERID));
        }
    }
    $ets->username = $u->get('username');
    $ets->USER_TEMPLATE = serialize(array('type' => 'friends', 'user_id' => $USERID));
    $OUTTER = serialize(array('type' => 'outter'));
} else {
    if ($user->isLogedIn) {
        jsRedirect(script_path . 'friends.php/user/' . $this->id);
    } else {
        jsRedirect(script_path . 'index.php');
    }
}
// debug( $ets ); exit;
// setup some standard tags
$uid_array = array('user' => $USERID);
$ets->url_home = build_link('blog.php', $uid_array);
$ets->url_profile = build_link('profile.php', $uid_array);
$ets->url_friends = build_link('friends.php', $uid_array);
$ets->rss_url = build_link('rss.php', array('id' => $USERID));
$ets->rss_img = '<a href="' . $ets->rss_url . '"><img src="' . script_path . 'xml.gif" border="0" /></a>';
printt($ets, $OUTTER);