Exemplo n.º 1
0
 function drawWidget()
 {
     $s = new session();
     if (session::check() != false) {
         $w = new box($this->logged_in_realm_caption);
         $w->css_box = "login";
         $w->addWidget(html::write($this->logged_in_caption . $s->user->username));
         $w->addWidget(new button($this->logout_caption, $this->logouttarget . "?logout=1"));
         return $w->draw();
     }
     $h = new html();
     $h->html .= "\n\t\t\t\t\t\n\t\t\t\t\t<form method=\"post\" action=\"" . $this->target . "\">\n\t\t\t\t\t<table>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t\t" . $this->realm_caption . "\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr><td>" . $this->username_caption . "</td><td><input type=\"text\" name=\"username\"></td></tr>\t\t\t\n\t\t\t\t\t\t<tr><td>" . $this->password_caption . "</td><td><input type=\"password\" name=\"password\"></td></tr>\n\t\t\t\t\t\t<tr><td><input type=\"submit\" value=\"" . $this->submit_caption . "\"></td></tr></table></form>";
     $b = new box($this->realm_caption, $h);
     $b->css_box = "login";
     return $b->draw();
 }
Exemplo n.º 2
0
 public static function menuBox($heading, $contents)
 {
     self::$table_data_parameters = 'class="menuBoxHeading"';
     if (isset($heading[0]['link'])) {
         self::$table_data_parameters .= ' onmouseover="this.style.cursor=\'pointer\'" onclick="document.location.href=\'' . $heading[0]['link'] . '\'"';
         $heading[0]['text'] = '&nbsp;<a href="' . $heading[0]['link'] . '" class="menuBoxHeadingLink">' . $heading[0]['text'] . '</a>&nbsp;';
     } else {
         $heading[0]['text'] = '&nbsp;' . $heading[0]['text'] . '&nbsp;';
     }
     self::$heading = parent::constructor($heading);
     self::$table_data_parameters = 'class="menuBoxContent"';
     self::$contents = parent::constructor($contents);
     return self::$heading . self::$contents;
 }
Exemplo n.º 3
0
 function display()
 {
     $statusBox = new box("EVE Status");
     $statusApi = new API_ServerStatus();
     if ($statusApi->fetchXML()) {
         if ($statusApi->getserverOpen()) {
             $statusBox->addOption("caption", "EVE Server is <span><strong><font color=green>ONLINE</font></strong></span>");
             $statusBox->addOption("caption", "Players Online: " . $statusApi->getOnlinePlayers());
         } else {
             $statusBox->addOption("caption", "EVE Server is <span><strong><font color=red>OFFLINE</font></strong></span>");
         }
     } else {
         $statusBox->addOption("caption", "EVE Server is <span><strong><font color=red>UNKNOWN</font></strong></span>");
         $statusBox->addOption("caption", "Players Online: Unknown");
         $statusBox->addOption("caption", "EVE API is <span><strong><font color=red>DOWN</font></strong></span>");
     }
     if (config::get("show_clock")) {
         $statusBox->addOption("caption", "EVE Time:  <span><strong><font color=orange>" . gmdate("H:i") . "</font></strong></span>");
     }
     return $statusBox->generate();
 }
Exemplo n.º 4
0
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# Insert contact person of a contact
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "SourceContact_Session", "auth" => "SourceContact_Auth", "perm" => "SourceContact_Perm"));
require "./include/header.inc";
require "./include/conlib.inc";
require "./include/clalib.inc";
require "./include/perlib.inc";
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<?php 
if ($perm->have_perm("user_pending")) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
    $auth->logout();
} else {
    if (isset($id)) {
        $salutation_per = trim($salutation_per);
        $firstname_per = trim($firstname_per);
        $lastname_per = trim($lastname_per);
        $grad_per = trim($grad_per);
        $phone_per = trim($phone_per);
Exemplo n.º 5
0
#
# Manage document formats
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "DocsWell_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    @page_close();
    page_open(array("sess" => "DocsWell_Session", "auth" => "DocsWell_Auth", "perm" => "DocsWell_Perm"));
}
require "./include/header.inc";
$bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admformat != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admformat))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    if (isset($format) && !empty($format)) {
        // Look if Format is already in table
        $db->query("SELECT * FROM FORMATDEF WHERE NAME='{$format}'");
        if ($db->num_rows() > 0) {
            if (isset($new_format)) {
                // If format in database and a new name is given, then rename
                if (!empty($new_format)) {
                    $db->query("UPDATE FORMATDEF SET NAME='{$new_format}' WHERE NAME='{$format}'");
Exemplo n.º 6
0
#
# This file inserts a new license
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "include/prepend.php3";
page_open(array('sess' => 'SourceAgency_Session'));
if (isset($auth) && !empty($auth->auth['perm'])) {
    page_close();
    page_open(array('sess' => 'SourceAgency_Session', 'auth' => 'SourceAgency_Auth', 'perm' => 'SourceAgency_Perm'));
}
require 'include/header.inc';
$bx = new box('97%', $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box('80%', $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
start_content();
if ($config_perm_admlicens != 'all' && (!isset($perm) || !$perm->have_perm($config_perm_admlicens))) {
    $be->box_full($t->translate('Error'), $t->translate('Access denied'));
} else {
    if (isset($license) && !empty($license)) {
        // Look if License is already in table
        $db->query("SELECT * FROM licenses WHERE license='{$license}'");
        if ($db->num_rows() > 0) {
            if (isset($new_license)) {
                // If license in database and a new name is given, then rename
                if (!empty($new_license)) {
                    $db->query("SELECT proid,creation FROM developing WHERE " . "license = '{$license}'");
                    // All the affected projects are treated as modified
                    // BUT they are assigned to the new license!!!!
                    while ($db->next_record()) {
Exemplo n.º 7
0
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "SourceWell_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    page_close();
    page_open(array("sess" => "SourceWell_Session", "auth" => "SourceWell_Auth", "perm" => "SourceWell_Perm"));
}
require "./include/header.inc";
require "./include/cmtlib.inc";
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$bi = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admdate != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admdate))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    if (!isset($action)) {
        $action = "check";
    }
    $where = "WHERE status='A'";
    if (isset($id)) {
        $where .= " AND appid='{$id}'";
    }
    // Check application
Exemplo n.º 8
0
# This is the index file which shows the recent apps
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "SourceWell_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    page_close();
    page_open(array("sess" => "SourceWell_Session", "auth" => "SourceWell_Auth", "perm" => "SourceWell_Perm"));
}
require "./include/header.inc";
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<table BORDER=0 CELLSPACING=10 CELLPADDING=0 WIDTH="100%" >
<tr valign="top"><td width="80%">
<?php 
if (!isset($by)) {
    $by = "Date";
}
if (!isset($start)) {
    $start = date("Y-m-d");
}
if (!isset($days)) {
    $days = 1;
}
Exemplo n.º 9
0
$reviews = $reviews_result->fields;
$heading = array();
$contents = array();
$heading[] = array('params' => 'class="menuBoxHeading"', 'text' => BOX_TITLE_STATISTICS);
$contents[] = array('params' => 'class="infoBox"', 'text' => BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<br />' . BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<br />' . BOX_ENTRY_REVIEWS . ' ' . $reviews['count']);
$box = new box();
echo $box->menuBox($heading, $contents);
echo '<br />';
$contents = array();
if (oos_server_get_var('HTTPS') == 'on' || oos_server_get_var('HTTPS') == '1') {
    $size = oos_server_get_var('SSL_CIPHER_ALGKEYSIZE') ? oos_server_get_var('SSL_CIPHER_ALGKEYSIZE') . '-bit' : '<i>' . BOX_CONNECTION_UNKNOWN . '</i>';
    $contents[] = array('params' => 'class="infoBox"', 'text' => oos_image(OOS_IMAGES . 'icons/locked.gif', ICON_LOCKED, '', '', 'align="right"') . sprintf(BOX_CONNECTION_PROTECTED, $size));
} else {
    $contents[] = array('params' => 'class="infoBox"', 'text' => oos_image(OOS_IMAGES . 'icons/unlocked.gif', ICON_UNLOCKED, '', '', 'align="right"') . BOX_CONNECTION_UNPROTECTED);
}
$box = new box();
echo $box->tableBlock($contents);
?>
                    </td>
                  </tr>
                </table></td>
                <td width="460" valign="center"><table border="0" width="460" height="375" cellspacing="1" cellpadding="1">
                  <tr>
                    <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                      <tr><?php 
echo oos_draw_form('languages', 'index.php', '', 'get');
?>
                        <td class="heading"><?php 
echo HEADING_TITLE;
?>
</td>
Exemplo n.º 10
0
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# Insert type
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
page_open(array("sess" => "DocsWell_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    @page_close();
    page_open(array("sess" => "DocsWell_Session", "auth" => "DocsWell_Auth", "perm" => "DocsWell_Perm"));
}
require "header.inc";
$bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admtype != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admtype))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    if (isset($type) && !empty($type)) {
        // Look if Type is already in table
        $db->query("SELECT * FROM TYPDEF WHERE NAME='{$type}'");
        if ($db->num_rows() > 0) {
            if (isset($new_type)) {
                // If type in database and a new name is given, then rename
                if (!empty($new_type)) {
                    $db->query("UPDATE TYPDEF SET NAME='{$new_type}' WHERE NAME='{$type}'");
Exemplo n.º 11
0
# the Free Software Foundation; either version 2 or later of the GPL.
#
# $Id: cusbyentid.php,v 1.2 2003/02/25 11:45:44 helix Exp $
#
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "SourceBiz_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    page_close();
    page_open(array("sess" => "SourceBiz_Session", "auth" => "SourceBiz_Auth", "perm" => "SourceBiz_Perm"));
}
require "./include/header.inc";
require "./include/entlib.inc";
require "./include/cuslib.inc";
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<?php 
if (isset($id)) {
    entbyentid($db, $id);
    cusbyentid($db, $id);
} else {
    $be->box_full($t->translate("Error"), $t->translate("No Enterprise ID specified"));
}
?>
<!-- end content -->

<?php 
Exemplo n.º 12
0
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
#
# $Id: admuser.php,v 1.5 2004/03/02 09:22:58 helix Exp $
#
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "DevCounter_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    page_close();
    page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm"));
}
require "./include/header.inc";
$bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admuser != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admuser))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    // Check if there was a submission
    while (is_array($HTTP_POST_VARS) && (list($key, $val) = each($HTTP_POST_VARS))) {
        switch ($key) {
            case "create":
                // Create a new user
                if (empty($username) || empty($password) || empty($email_usr)) {
                    // Do we have all necessary data?
                    $be->box_full($t->translate("Error"), $t->translate("Please enter") . " <B>" . $t->translate("Username") . "</B>, <B>" . $t->translate("Password") . "</B> " . $t->translate("and") . " <B>" . $t->translate("E-Mail") . "</B>!");
Exemplo n.º 13
0
#                Norbert Geiges
#
# BerliOS SourceLines: http://sourcelines.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# Select category of a solution.
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "SourceLines_Session", "auth" => "SourceLines_Auth", "perm" => "SourceLines_Perm"));
require "./include/header.inc";
/*---------- Box-Definitionen -----------------------------------------------*/
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
/*---------- Table-Definitionen ---------------------------------------------*/
$tbw = new table("100%", "0", "1", "4", $th_box_title_bgcolor, $th_box_title_font_color, "center", "top", $th_box_body_bgcolor, $th_box_body_font_color, "left", "middle");
$tby = new table("100%", "0", "1", "4", $th_box_title_bgcolor, $th_box_title_font_color, "center", "top", "#ffcc00", $th_box_body_font_color, "left", "top");
?>

<!-- content -->
<?php 
debugparam();
if (isset($cate_id)) {
    if ($cate_id != 0) {
        $leaves = category_leaves($cate_id);
    }
} else {
    $db->query("SELECT * FROM tblsolutions WHERE solutions_id='{$solu_id}'");
Exemplo n.º 14
0
#
# BerliOS DocsWell: http://docswell.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# Form for inserting new doc
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
page_open(array("sess" => "DocsWell_Session", "auth" => "DocsWell_Auth", "perm" => "DocsWell_Perm"));
require "header.inc";
if ($category && !$kategorie) {
    $kategorie = $category;
}
$bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
if ($perm->have_perm("editor") || $perm->have_perm("admin")) {
    $bx->box_begin();
    $bx->box_title($t->translate("Verify new document"));
    $bx->box_body_begin();
    ## Neues Dokument soll eingefügt werden, hier die Datenüberprüfung
    if ($status == 'do_new') {
        if ($Button == "OK") {
            // Eingaben ueberpruefen
            if (!$titel) {
                $error_ar["titel"] = $t->translate("Error") . ": " . $t->translate("Please enter the titel of the document") . " (" . __LINE__ . ")";
                // echo $error_ar["titel"];
Exemplo n.º 15
0
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
#
# $Id: faq.php,v 1.5 2004/03/02 09:22:58 helix Exp $
#
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "DevCounter_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    page_close();
    page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm"));
}
require "./include/header.inc";
$bx = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
$db->query("SELECT * FROM faq WHERE language='{$la}'");
if ($db->num_rows() > 0) {
    while ($db->next_record()) {
        $msg .= "<li><a href=#" . $db->f("faqid") . ">" . $db->f("question") . "</a>";
    }
    $bx->box_full($t->translate("Frequently Asked Questions"), $msg);
    $db->seek(0);
    while ($db->next_record()) {
        echo "<a name=" . $db->f("faqid") . ">\n";
        $bx->box_full($t->translate("Question") . ": " . $db->f("question"), "<b>" . $t->translate("Answer") . ":</b> " . $db->f("answer"));
    }
Exemplo n.º 16
0
<?php

include_once CLASSPATH . 'box.class.php';
$box = new box();
$resid = mysql_query("select * from immobili i,localita l, tipi t where residence=1 and pubblicato=1  and t.id_tipi=i.id_tipi and l.id_localita=i.id_localita ");
echo '<ul>';
while ($r = mysql_fetch_assoc($resid)) {
    echo '<li><a href="' . $box->costruisciPath('residence', $r, $_SESSION['lan']) . '" title="' . stripslashes($r['nome_immobile_' . $_SESSION['lan']]) . '">' . stripslashes($r['nome_immobile_' . $_SESSION['lan']]) . '</a></li>';
}
echo '</ul>';
Exemplo n.º 17
0
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
#
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "include/prepend.php3";
page_open(array("sess" => "SourceAgency_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    page_close();
    page_open(array("sess" => "SourceAgency_Session", "auth" => "SourceAgency_Auth", "perm" => "SourceAgency_Perm"));
}
require "include/header.inc";
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
start_content();
// When there's a search for a blank line, we look for "xxxxxxxx"
if (!isset($search) || $search == "") {
    $search = "xxxxxxxx";
}
// $iter is a variable for printing the Top Statistics in steps of 10 apps
if (!isset($iter)) {
    $iter = 0;
}
$iter *= 10;
// We need to know the total number of apps
$db->query("SELECT * FROM description WHERE project_title LIKE '%{$search}%'");
if ($db->num_rows() == 0) {
    $bx->box_full($t->translate("Search"), $t->translate("No projects found"));
} else {
Exemplo n.º 18
0
#
# BerliOS SourceLines: http://sourcelines.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# Enables (authenticated) users to change their parameters
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "SourceLines_Session", "auth" => "SourceLines_Auth", "perm" => "SourceLines_Perm"));
require "./include/header.inc";
$bx = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$bi = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
###
### Submit Handler
###
## Get a database connection
$db = new DB_SourceLines();
// Check if there was a submission
while (is_array($HTTP_POST_VARS) && (list($key, $val) = each($HTTP_POST_VARS))) {
    switch ($key) {
        case "u_edit":
            // Change user parameters
            if ($auth->auth["uid"] == $u_id) {
Exemplo n.º 19
0
#
# This file contains the verification procedure when registering
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "DocsWell_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    @page_close();
    page_open(array("sess" => "DocsWell_Session", "auth" => "DocsWell_Auth", "perm" => "DocsWell_Perm"));
}
require "./include/header.inc";
$bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
$db->query("UPDATE auth_user SET perms='user' WHERE user_id='{$confirm_hash}'");
if ($db->affected_rows() == 0) {
    $be->box_full($t->translate("Error"), $t->translate("Verification of Registration failed"));
} else {
    $msg = $t->translate("Your account is now activated. Please login") . ".";
    $bx->box_full($t->translate("Verification of Registration"), $msg);
}
?>
<!-- end content -->

<?php 
Exemplo n.º 20
0
# Administrate Frequently Asked Questions
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "SourceWell_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    page_close();
    page_open(array("sess" => "SourceWell_Session", "auth" => "SourceWell_Auth", "perm" => "SourceWell_Perm"));
}
require "./include/header.inc";
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admfaq != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admfaq))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    $db->query("SELECT * FROM faq WHERE language='{$la}'");
    $bx->box_begin();
    $bx->box_title($t->translate("Frequently Asked Questions Administration"));
    $bx->box_body_begin();
    echo "<table width=100% border=0><tr><td width=88%>\n";
    echo "<b>" . $t->translate("Enter a New Frequently Asked Question") . "</b>\n";
    echo "<form action=\"" . $sess->url("insfaq.php") . "\" method=\"POST\">\n";
    echo "</td><td width=12% align=right>\n";
Exemplo n.º 21
0
#
# Document language administration
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
page_open(array("sess" => "DocsWell_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    @page_close();
    page_open(array("sess" => "DocsWell_Session", "auth" => "DocsWell_Auth", "perm" => "DocsWell_Perm"));
}
require "header.inc";
$bx = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_admlang != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admlang))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    $bx->box_begin();
    $bx->box_title($t->translate("Document Language Administration"));
    $bx->box_body_begin();
    // Insert a new Language
    $bs->box_strip($t->translate("Insert Language"));
    echo "<form action=\"" . $sess->url("inslang.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
    echo "<tr><td align=right width=30%>" . $t->translate("New Language") . " (100):</td><td width=70%><input type=\"TEXT\" name=\"language\" size=40 maxlength=100>\n";
Exemplo n.º 22
0
// Author: Mark Samios
// http://www.asymmetrics.com
// Admin: Plugins Box
//----------------------------------------------------------------------------
// I-Metrics CMS
//----------------------------------------------------------------------------
// Script is intended to be used with:
// osCommerce, Open Source E-Commerce Solutions
// http://www.oscommerce.com
// Copyright (c) 2003 osCommerce
//----------------------------------------------------------------------------
// Released under the GNU General Public License
//----------------------------------------------------------------------------
*/
$heading = array();
$contents = array();
$heading_class = 'class="menuBoxHeading"';
$box_title = BOX_HEADING_PLUGINS;
$box_id = 'plugins_box';
if ($selected_box == $box_id) {
    $contents[] = array('text' => '<div>', 'class' => 'leftBoxSection');
    $box_plugins_array = $db->query_to_array("select plugins_name, plugins_key from " . TABLE_PLUGINS);
    for ($i = 0, $j = count($box_plugins_array); $i < $j; $i++) {
        $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PLUGINS, 'plgID=' . $box_plugins_array[$i]['plugins_key']) . '">' . $box_plugins_array[$i]['plugins_name'] . '</a>');
    }
    $contents[] = array('text' => '</div>');
    $heading_class = 'class="menuBoxHeading menuBoxLit"';
}
$heading[] = array('text' => $box_title, 'link' => tep_href_link(FILENAME_PLUGINS, 'selected_box=' . $box_id));
$box = new box();
echo $box->menuBox($heading, $contents, $heading_class);
Exemplo n.º 23
0
		<ul>
			<?php 
foreach ($categorys as $c) {
    ?>
			<li<?php 
    echo $categoryid == $c['id'] ? ' class="selected"' : '';
    ?>
><a class="textflow" href="<?php 
    echo zotop::url('blog/list/' . $c['id']);
    ?>
"><span class="zotop-icon zotop-icon-folder"></span><?php 
    echo $c['title'];
    ?>
</a></li>
			<?php 
}
?>
		</ul>
	</div>
	<?php 
box::footer();
?>
	<?php 
zotop::run('blog.side', $blog);
?>
	</div>
	</div>
</div>
<?php 
$this->bottom();
$this->footer();
Exemplo n.º 24
0
#                Lutz Henckel (lutz.henckel@fokus.gmd.de) and
#                Gregorio Robles (grex@scouts-es.org)
#
# BerliOS DocsWell: http://docswell.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# Administrating the daily/weekly newsletter
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
page_open(array("sess" => "DocsWell_Session", "auth" => "DocsWell_Auth", "perm" => "DocsWell_Perm"));
require "header.inc";
$bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
if ($perm->have_perm("admin")) {
    $db = new DB_DocsWell();
    if (!isset($period)) {
        $period = "daily";
    }
    if ($msg = nlmsg($period)) {
        $subj = "{$sys_name} {$period} newsletter for " . date("l dS of F Y");
        if (isset($send)) {
            // Send newsletter
            switch ($period) {
                case "weekly":
Exemplo n.º 25
0
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# Form to set Developers watch for users.
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
#
# $Id: watch.php,v 1.9 2004/03/02 09:22:58 helix Exp $
#
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm"));
require "./include/header.inc";
$bx = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
$db2 = new DB_DevCounter();
$db3 = new DB_DevCounter();
?>

<!-- content -->
<?php 
if ($config_perm_watch != "all" && (!isset($perm) || !$perm->have_perm($config_perm_watch))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    $username = $auth->auth["uname"];
    htmlp_form_action("watchset.php", array(), "POST");
    echo "\n";
    $db3->query("SELECT * FROM prog_ability_watch WHERE username='******'");
    if ($db3->next_record()) {
        $exists = 1;
Exemplo n.º 26
0
# This is the customers administration file
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
#
# $Id: cusupd.php,v 1.2 2003/02/25 11:45:44 helix Exp $
#
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "SourceBiz_Session", "auth" => "SourceBiz_Auth", "perm" => "SourceBiz_Perm"));
require "./include/header.inc";
require "./include/entlib.inc";
require "./include/cuslib.inc";
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
if (isset($id)) {
    $columns = "*";
    $tables = "customers,enterprise";
    $where = "enterprise.entid = customers.entid_cus AND customers.cusid = '{$id}'";
    if (!$db->query("SELECT {$columns} FROM {$tables} WHERE {$where}")) {
        mysql_die($db);
    } else {
        $db->next_record();
        if ($db->f("user") == $auth->auth["uname"] || $perm->have_perm("admin")) {
            if (!isset($action)) {
                cusmod($db);
Exemplo n.º 27
0
<?php

/*
  $Id: localization.php,v 1.16 2003/07/09 01:18:53 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2002 osCommerce

  Released under the GNU General Public License
*/
?>
<!-- localization //-->
          <tr>
            <td>
<?php 
$heading = array();
$contents = array();
$heading[] = array('text' => BOX_HEADING_LOCALIZATION, 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'));
if ($selected_box == 'localization') {
    $contents[] = array('text' => tep_admin_files_boxes(FILENAME_CURRENCIES, BOX_LOCALIZATION_CURRENCIES) . tep_admin_files_boxes(FILENAME_LANGUAGES, BOX_LOCALIZATION_LANGUAGES) . tep_admin_files_boxes(FILENAME_ORDERS_STATUS, BOX_LOCALIZATION_ORDERS_STATUS));
}
$box = new box();
echo $box->menuBox($heading, $contents);
?>
            </td>
          </tr>
<!-- localization_eof //-->
Exemplo n.º 28
0
#
# This page lists the users registered in our system
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
page_open(array("sess" => "DocsWell_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    @page_close();
    page_open(array("sess" => "DocsWell_Session", "auth" => "DocsWell_Auth", "perm" => "DocsWell_Perm"));
}
require "header.inc";
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
?>

<!-- content -->
<?php 
if ($config_perm_users != "all" && (!isset($perm) || !$perm->have_perm($config_perm_users))) {
    $be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
    if (!isset($by) || empty($by)) {
        $by = "A%";
    }
    $alphabet = array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
    $msg = "[ ";
    while (list(, $ltr) = each($alphabet)) {
        $msg .= "<a href=\"" . $sess->url("users.php") . $sess->add_query(array("by" => $ltr . "%")) . "\">{$ltr}</a> | ";
    }
Exemplo n.º 29
0
                $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
                if ($nInfo->locked > 0) {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=new') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=unlock') . '">' . tep_image_button('button_unlock.gif', IMAGE_UNLOCK) . '</a>');
                } else {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=lock') . '">' . tep_image_button('button_lock.gif', IMAGE_LOCK) . '</a>');
                }
                $contents[] = array('text' => '<br>' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . tep_date_short($nInfo->date_added));
                if ($nInfo->status == '1') {
                    $contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . tep_date_short($nInfo->date_sent));
                }
            }
            break;
    }
    if (tep_not_null($heading) && tep_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
    ?>
          </tr>
        </table></td>
      </tr>
<?php 
}
?>
    </table></td>
<!-- body_text_eof //-->
  </tr>
</table>
<!-- body_eof //-->
Exemplo n.º 30
0
#
# Shows docs of a type given by parameter.
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "DocsWell_Session"));
if (isset($auth) && !empty($auth->auth["perm"])) {
    @page_close();
    page_open(array("sess" => "DocsWell_Session", "auth" => "DocsWell_Auth", "perm" => "DocsWell_Perm"));
}
require "./include/header.inc";
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
// $iter is a variable for printing the Top Statistics in steps of 10 apps
if (!isset($iter)) {
    $iter = 0;
}
$iter *= 10;
// We need to know the total number of apps inserted by the user
$db->query("SELECT COUNT(*) FROM DOKUMENT a, KATEGORIE b WHERE a.TYP='{$typ}' AND a.status!='D' AND a.KATEGORIE = b.ID");
$db->next_record();
$cnt = $db->f("COUNT(*)");
//$cnt -= 1;