Beispiel #1
0
 /**
  *
  **/
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     # initialize Stud.IP-Session
     page_open(array('sess' => 'Seminar_Session', 'auth' => 'Seminar_Default_Auth', 'perm' => 'Seminar_Perm', 'user' => 'Seminar_User'));
     $this->set_layout(null);
 }
Beispiel #2
0
 /**
  * Callback function being called before an action is executed.
  */
 function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     // open session
     page_open(array('sess' => 'Seminar_Session', 'auth' => 'Seminar_Default_Auth', 'perm' => 'Seminar_Perm', 'user' => 'Seminar_User'));
     // set up user session
     include 'lib/seminar_open.php';
     $this->set_content_type('text/html; charset=windows-1252');
     $this->area_structure = ['global' => ['title' => _('Stud.IP (systemweit)'), 'icon' => 'home'], 'inst' => ['title' => _('Einrichtungen'), 'icon' => 'institute'], 'sem' => ['title' => _('Veranstaltungen'), 'icon' => 'seminar'], 'user' => ['title' => _('Profile'), 'icon' => 'person']];
 }
function phplib_load($features = null){

	if (is_null($features)) $features = array('sess', 'auth', 'perm');
	if (is_string($features)) $features = array($features);

	if (isset($GLOBALS['_phplib_page_open'])){
		if (in_array('sess', $features)) put_headers();

		page_open ($GLOBALS['_phplib_page_open'], $features);
	}

}
Beispiel #4
0
 function before_filter(&$action, &$args)
 {
     $this->current_action = $action;
     // allow only "word" characters in arguments
     $this->validate_args($args);
     parent::before_filter($action, $args);
     if ($this->with_session) {
         # open session
         page_open(array('sess' => 'Seminar_Session', 'auth' => $this->allow_nobody ? 'Seminar_Default_Auth' : 'Seminar_Auth', 'perm' => 'Seminar_Perm', 'user' => 'Seminar_User'));
         // show login-screen, if authentication is "nobody"
         $GLOBALS['auth']->login_if((Request::get('again') || !$this->allow_nobody) && $GLOBALS['user']->id == 'nobody');
         // Setup flash instance
         $this->flash = Trails_Flash::instance();
         // set up user session
         include 'lib/seminar_open.php';
     }
     # Set base layout
     #
     # If your controller needs another layout, overwrite your controller's
     # before filter:
     #
     #   class YourController extends AuthenticatedController {
     #     function before_filter(&$action, &$args) {
     #       parent::before_filter($action, $args);
     #       $this->set_layout("your_layout");
     #     }
     #   }
     #
     # or unset layout by sending:
     #
     #   $this->set_layout(NULL)
     #
     $layout_file = Request::isXhr() ? 'layouts/dialog.php' : 'layouts/base.php';
     $layout = $GLOBALS['template_factory']->open($layout_file);
     $this->set_layout($layout);
     if ($this->encoding) {
         $this->set_content_type('text/html;charset=' . $this->encoding);
     }
     if (Request::isXhr() && $this->utf8decode_xhr) {
         $request = Request::getInstance();
         foreach ($request as $key => $value) {
             $request[$key] = studip_utf8decode($value);
         }
     }
 }
Beispiel #5
0
function display_done()
{
    global $kat, $auth, $uid, $perm, $sess;
    if (!defined("COMMON_PERMISSIONS_INC")) {
        include "commonapi/common_permissions.inc";
    }
    /*
     auth_preauth() will authenticatge the user since logon_now_as is registered and set to true
    */
    page_close();
    page_open(array("sess" => "Linktrail_Session", "auth" => "Linktrail_Auth", "perm" => "Linktrail_Perm"));
    $caps = get_caps($perm, '/');
    if (!defined("LAY_MYPAGE_INC")) {
        include "layout/lay_mypage.inc";
    }
    if (!defined("LAY_DIRECTORY_INC")) {
        include "layout/lay_directory.inc";
    }
    $pl = build_pathlist($kat, false);
    $plf = build_pathlist($kat, true);
    $restriction_list = build_restriction_list($kat);
    //$username = $auth->auth['uname'];
    $in_login = false;
    include "template.inc";
    include "commonheader2.html";
    $tpl = new Template(APPLICATION_HOME . "/templates/login", "keep");
    $tpl->set_file(array("main" => "regdone.html"));
    //$tpl->set_var("IWANTTO", print_mypage_iwantto($caps, $auth->auth['uname']));
    $tpl->set_var("USERNAME", $auth->auth['uname']);
    $tpl->set_var("MYPAGEURL", $sess->url(build_good_url("/Experts/" . $auth->auth['uname'])));
    $tpl->set_var("SETTINGSURL", $sess->url(build_good_url("/Experts/" . $auth->auth['uname'] . '/Settings')));
    $tpl->set_var("TOURURL", $sess->url("/Tour/"));
    $tpl->set_var("IWANTTO", print_iwantto('/', $caps));
    $tpl->set_var("HOME_URL", $sess->url("/"));
    $tpl->parse("main", "main");
    $tpl->p("main");
    include "commonfooter2.html";
    page_close();
    exit;
}
Beispiel #6
0
 /**
  * Before filter, set up the page by initializing the session and checking
  * all conditions.
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     // open session
     page_open(array('sess' => 'Seminar_Session', 'auth' => 'Seminar_Default_Auth', 'perm' => 'Seminar_Perm', 'user' => 'Seminar_User'));
     // set up user session
     include 'lib/seminar_open.php';
     if (!Config::Get()->SCM_ENABLE) {
         throw new AccessDeniedException(_('Die freien Informationsseiten sind nicht aktiviert.'));
     }
     $GLOBALS['auth']->login_if(Request::get('again') && $GLOBALS['auth']->auth['uid'] == 'nobody');
     $this->priviledged = $GLOBALS['perm']->have_studip_perm('tutor', $GLOBALS['SessSemName'][1]);
     if (Request::isXhr()) {
         $this->set_content_type('text/html;charset=Windows-1252');
     } else {
         $this->set_layout($GLOBALS['template_factory']->open('layouts/base'));
     }
     if (!in_array($action, words('index create edit move delete'))) {
         array_unshift($args, $action);
         $action = 'index';
     }
     if (in_array($action, words('create edit move delete')) && !$this->priviledged) {
         throw new AccessDeniedException();
     }
     if ($GLOBALS['perm']->have_studip_perm('tutor', $GLOBALS['SessSemName'][1])) {
         $widget = new ActionsWidget();
         $widget->addLink(_('Neuen Eintrag anlegen'), URLHelper::getLink('dispatch.php/course/scm/create'), Icon::create('add', 'clickable'))->asDialog();
         Sidebar::get()->addWidget($widget);
     }
     PageLayout::setHelpKeyword('Basis.Informationsseite');
     Navigation::activateItem('/course/scm');
     checkObject();
     // do we have an open object?
     checkObjectModule('scm');
     object_set_visit_module('scm');
     // Set sidebar image
     $sidebar = Sidebar::get();
     $sidebar->setImage('sidebar/info-sidebar.png');
 }
Beispiel #7
0
#                Lutz Henckel (lutz.henckel@fokus.fraunhofer.de)
#
# BerliOS SourceBiz: http://sourcewell.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# 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);
#
# Copyright (c) 2001 by
#                Lutz Henckel (lutz.henckel@fokus.gmd.de) and
#                Gregorio Robles (grex@scouts-es.org)
#
# 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))) {
<?php

include "../include/phplib/prepend.php3";
$cancel_login = 1;
page_open(array("sess" => "Thesaurus_Session", "auth" => "Thesaurus_Default_Auth"));
include "../include/tool.php";
$db = new DB_Thesaurus();
$inner_db = new DB_Thesaurus();
if (!array_key_exists('word', $_GET)) {
    print "Illegal arguments";
    return;
}
$title = sprintf(_("No synonyms found for '%s'"), escape($_GET['word']));
include "../include/top.php";
?>

<?php 
// =================== Search again ======================================
?>

<form action="synset.php" method="get" name="f">
	<input type="hidden" name="search" value="1" />
	<table border="0">
	<tr>
		<td><strong><?php 
print _("New search");
?>
:</strong></td>
		<td><input type="text" size="18" name="word" value="<?php 
print escape($_GET['word']);
?>
Beispiel #10
0
?>
<?php
///////////////////////////////////////////////////////////////////////////////
// OBM - File : userpattern_index.php                                        //
//     - Desc : User Pattern Index File                                      //
// 2010-01-21 Vincent ALQUIER                                                //
///////////////////////////////////////////////////////////////////////////////

$path = '..';
$module = 'userpattern';
$obminclude = getenv('OBM_INCLUDE_VAR');
if ($obminclude == '') $obminclude = 'obminclude';
include("$obminclude/global.inc");
$params = get_userpattern_params();

page_open(array('sess' => 'OBM_Session', 'auth' => $auth_class_name, 'perm' => 'OBM_Perm'));
$user_lang_file = "$obminclude/lang/".strtolower(get_lang()).'/user.inc';
if (file_exists("$path/../".$user_lang_file)) include_once("$user_lang_file");
include("$obminclude/global_pref.inc");

require('userpattern_display.inc');
require('userpattern_query.inc');
require('userpattern_js.inc');
include_once("$path/../app/default/models/UserPattern.php");
include("$obminclude/of/of_category.inc");
$params = get_userpattern_params();

get_userpattern_action();
$perm->check_permissions($module, $action);

//update_last_visit('userpattern', $params['userpattern_id'], $action);
#                Gregorio Robles (grex@scouts-es.org)
#
# BerliOS SourceAgency: http://sourceagency.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# 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)) {
Beispiel #12
0
<?php

/**
 * datenschutz.php
 *
 * privacy guidelines for Stud.IP
 *
 * PHP version 5
 *
 * @author      Elmar Ludwig
 * @author      Michael Riehemann <*****@*****.**>
 * @copyright   2009 Stud.IP
 * @license     http://www.gnu.org/licenses/gpl.html GPL Licence 3
 * @package     studip_core
 * @access      public
 */
require '../lib/bootstrap.php';
page_open(array('sess' => 'Seminar_Session', 'auth' => 'Seminar_Default_Auth', 'perm' => 'Seminar_Perm', 'user' => 'Seminar_User'));
// set up user session
include 'lib/seminar_open.php';
// this page must be accessible during visibility decision
$USER_VISIBILITY_CHECK = false;
PageLayout::setTitle(_('Erläuterungen zum Datenschutz'));
$template = $template_factory->open('privacy');
$template->set_layout('layouts/base_without_infobox');
echo $template->render();
<?php

include 'phplib/prepend.php';
page_open(array("sess" => "hotspot_Session", "auth" => "hotspot_Auth", "perm" => "hotspot_Perm"));
echo "<script language=JavaScript src=/js/currency.js></script>\n";
echo "<script language=JavaScript src=/js/datefunc.js>\n//Parts taken from ts_picker.js\n//Script by Denis Gritcyuk: tspicker@yahoo.com\n//Submitted to JavaScript Kit (http://javascriptkit.com)\n//Visit http://javascriptkit.com for this script\n</script>\n<script language=JavaScript>\nfunction DoCustomChecks(f) {\n        if (f.bulk.value) {\n                if (!f.access.value) f.access.value=' ';\n                if (!f.address.value) f.address.value=' ';\n        }\n        if (!f.access.value) {\n                if (f.acc.selectedIndex) {\n                        f.access.value=f.acc.options[f.acc.selectedIndex].value;\n                } else {\n                        alert('Please select or enter Access');\n                        f.access.focus();\n                        return false;\n                }\n        }\n        return true;\n}\n</script> \n";
include "postfix.inc";
class my_postfix_sender_accessform extends postfix_sender_accessform
{
    var $classname = "my_postfix_sender_accessform";
}
$f = new my_postfix_sender_accessform();
if ($submit) {
    switch ($submit) {
        case "Save":
            if ($id) {
                $submit = "Edit";
            } else {
                $submit = "Add";
            }
        case "Add":
        case "Edit":
            if (isset($auth)) {
                if (!$f->validate($result)) {
                    $cmd = $submit;
                    echo "<font class=bigTextBold>{$cmd} postfix _sender _access</font>\n";
                    $f->display();
                    page_close();
                    exit;
                } else {
                    echo "Saving....";
Beispiel #14
0
<?php

/**
 * setup of new user accounts and account info maintenance, and viewing old orders
 *
 * $Id: profile.php,v 1.8 2008/02/05 16:35:21 sbeam Exp $
 */
require_once CONFIG_DIR . 'cshop.config.php';
require_once 'formex.class.php';
require_once CSHOP_CLASSES_USER . '.class.php';
// init page auth objects
page_open(array('sess' => CSHOP_CLASSES_AUTH_SESSION, 'auth' => 'defaultAuth'));
// flag for smarty
$smarty->assign('page_id', 'user_profile');
/* the cart and the user. That's what its all about */
$c = CSHOP_CLASSES_USER;
$user = new $c($pdb);
$user->set_auth($auth);
$auth_logged_in = $auth->is_logged_in() && !$auth->has_bypass_flag();
$smarty->assign('auth_logged_in', $auth_logged_in);
$smarty->assign('user', $user->fetch());
if ($auth_logged_in) {
    $userinfo = $user->fetch();
    // empty unless they are logged in
} else {
    $userinfo = null;
}
// control flags
$ACTION = null;
$SHOWFORM = false;
$SUCCESS = null;
Beispiel #15
0
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
  
  This program 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 General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
require_once "prepend.php";
require_once "configuracion.php";
require_once "UI.php";
require_once "clienteNewsService.php";
page_open(array("sess" => "Sesion_Blufeedme"));
global $userp;
global $passp;
global $categoriasS;
global $noticiasS;
if (isset($_POST['usuario']) && isset($_POST['password']) && !empty($_POST['usuario']) && !empty($_POST['password'])) {
    try {
        $cliente = new ClienteNewsService($_POST['usuario'], $_POST['password']);
    } catch (Exception $e) {
        echo "<script type=\"text/javascript\"> \n\t\t\t\t\$.ajax({\n\t\t\t\t\t\ttype: \"POST\",\n\t\t\t\t\t\tdata: \"error=WebService no disponible\",\n\t\t\t\t\t\turl: 'alerta.php',\n\t\t\t\t\t\tsuccess: function(data){\n\t\t\t\t\t\t\t\$('#central').html(data);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t</script>";
        exit(1);
    }
    try {
        $cat = $cliente->getCategory();
        unset($categoriasS);
        if (!is_null($cat)) {
Beispiel #16
0
#                Lutz Henckel (lutz.henckel@fokus.fraunhofer.de)
#
# BerliOS SourceBiz: http://sourcewell.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# Sends the daily/weekly newsletters with enterprise news
#
# 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: nlsend.php,v 1.2 2003/02/25 11:45:44 helix Exp $
#
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "SourceBiz_Session"));
require "./include/config.inc";
require "./include/lib.inc";
$db = new DB_SourceBiz();
if (!isset($period)) {
    $period = "daily";
}
if ($msg = nlmsg($period)) {
    switch ($period) {
        case "weekly":
            $subj = "{$sys_name} weekly newsletter for " . date("l dS of F Y");
            mail($ml_weeklynewstoaddr, $subj, $msg, "From: {$ml_newsfromaddr}\nReply-To: {$ml_newsreplyaddr}\nX-Mailer: PHP");
            echo "{$sys_name} weekly newsletter sent at " . date("l dS of F Y H:i:s") . "\n";
            break;
        case "daily":
        default:
Beispiel #17
0
#
# Copyright (c) 2001-2004 by
#                Lutz Henckel (lutz.henckel@fokus.fraunhofer.de) and
#                Gregorio Robles (grex@scouts-es.org)
#
# BerliOS SourceWell: http://sourcewell.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# This file sends the daily/weekly newsletters with the announcements
#
# 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"));
require "./include/config.inc";
require "./include/lib.inc";
$db = new DB_SourceWell();
if ($ml_list) {
    if (!isset($period)) {
        $period = "daily";
    }
    if ($msg = nlmsg($period)) {
        switch ($period) {
            case "weekly":
                $subj = "{$sys_name} weekly newsletter for " . date("l dS of F Y");
                mail($ml_weeklynewstoaddr, $subj, $msg, "From: {$ml_newsfromaddr}\nReply-To: {$ml_newsreplyaddr}\nX-Mailer: PHP");
                echo "{$sys_name} weekly newsletter sent at " . date("l dS of F Y H:i:s") . "\n";
                break;
            case "daily":
Beispiel #18
0
<?php

include 'phplib/prepend.php';
page_open(array("sess" => $_ENV["SessionClass"], "auth" => $_ENV["AuthClass"], "perm" => $_ENV["PermClass"], "silent" => "silent"));
get_request_values("val,index,col,table,key");
switch ($table) {
    default:
        $requires = "admin";
        break;
    case "menu":
        $requires = "admin";
        break;
}
if (!$perm->have_perm($requires)) {
    echo "Access Denied";
} else {
    $db = new $_ENV["DatabaseClass"]();
    $v = urldecode($val);
    $i = urldecode($index);
    // Get Old Value
    $db->query("SELECT {$col} FROM {$table} WHERE {$key}='{$i}'");
    if ($db->next_record()) {
        $oldval = $db->f(0);
    }
    // Set New Value
    $db->query("UPDATE {$table} SET {$col}='{$v}' WHERE {$key}='{$i}'");
    EventLog("Cell Edit by " . $auth->auth["uname"], $sql);
    // Get New Value
    $db->query("SELECT {$col} FROM {$table} WHERE {$key}='{$i}'");
    if ($db->next_record()) {
        echo $db->f(0);
Beispiel #19
0
{
    global $sess, $HTTP_POST_VARS, $mytrail, $auth;
    if ($HTTP_POST_VARS['field_subject'] == "") {
        form(true);
        page_close();
        exit;
    }
    if (!defined("TALK_INC")) {
        include "messages/talk.inc";
    }
    talk($auth->auth['uname'], $mytrail['userid'], $HTTP_POST_VARS['field_subject'], $HTTP_POST_VARS['field_message'], $mytrail['id']);
    header("Location: " . $sess->url($mytrail['path']));
}
if (!defined("LAY_TRAIL_INC")) {
    include "layout/lay_trail.inc";
}
/*
 First I read the permissions of our user. 
*/
page_open(array("sess" => "Linktrail_Session", "auth" => "Linktrail_Auth", "perm" => "Linktrail_Perm", "user" => "Linktrail_User"));
$mytrail = get_node_info($PATH_INFO);
if ($mytrail == -1) {
    $mytrail = get_node_info($PATH_INFO . "?");
}
include "template.inc";
if ($REQUEST_METHOD == "POST") {
    doit();
} else {
    form();
}
page_close();
Beispiel #20
0
    print "<td colspan=1>";
    $f->show_element("new_capab");
    print "</td>";
    print "<td align=center bgcolor=#00ff00>" . "<input type=button name=add value=\"add\" onClick=\"addCap();\">" . "</td>";
    print "</tr>";
    ?>
	  </table>
	 </td>		

	 </tr>
	</table>
<?php 
    $f->finish("", null);
}
// PAGE GENERATION
page_open("Serving-CSCF Capability Configuration");
switch ($do) {
    case "search":
        $result = $data->get_scscf_list($_POST);
        search_result($result);
        break;
    case "edit":
        $result = $data->get_scscf($_POST);
        edit_form($result);
        break;
    case "update":
        $lastop = $data->set_scscf($_POST);
        $result = $data->get_scscf($_POST);
        edit_form($result);
        break;
    case "new":
# =============================================
#
# Copyright (c) 2001-2003 by
#                Lutz Henckel (lutz.henckel@fokus.fraunhofer.de)
#
# BerliOS SourceContact: http://sourcecontact.berlios.de
# 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 {
  $owner->sendNotify();   
  
  return $msgs  ; 


}

put_headers();

// get db connect 
$data = CData_Layer::create($errors) ;


// get the sess, auth and perm vars
page_open (array("sess" => "phplib_Session_Pre_Auth",
   "auth" => "phplib_Pre_Auth",
   "perm" => "phplib_Perm"));


## do this in every file after the page_open
$perm->check('USER');

if ($perm->have_perm('SUPER'))  {
  change_domain();
}


$header_smarty = get_smarty_header($data, $auth, $perm); 

$smarty = get_smarty(); 
//Check persmissions 
######################################################################
# SourceAgency:
# ================================================
#
# Copyright (c) 2001-2003 by
#             Gregorio Robles (grex@scouts-es.org)
#
# BerliOS SourceAgency: http://sourceagency.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# 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" => "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";
require "include/personallib.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();
$page = "personal_ratings";
personal_comments_long($auth->auth["uname"]);
end_content();
require "include/footer.inc";
page_close();
Beispiel #24
0
                fclose($fp);
            }
        }
        $this->setForm();
        $this->tpl->parse("templatePage", "rptsTemplate");
        $this->tpl->finish("templatePage");
        //		$this->tpl->p("templatePage");
        $testpdf = new PDFWriter();
        $testpdf->setOutputXML($this->tpl->get("templatePage"), "test");
        if (isset($this->formArray["print"])) {
            $testpdf->writePDF($name);
            //,$this->formArray["print"]);
        } else {
            $testpdf->writePDF($name);
        }
        //header("location: ".$testpdf->pdfPath);
        exit;
    }
}
#####################################
# Define Procedures and Functions
#####################################
##########################################################
# Begin Program Script
##########################################################
//*
page_open(array("sess" => "rpts_Session"));
//*/
$printLandFAAS = new PrintLandFAAS($HTTP_POST_VARS, $sess, $odID, $ownerID, $afsID, $print);
$printLandFAAS->Main();
page_close();
#       Lutz Henckel (lutz.henckel@fokus.fraunhofer.de)
#
# BerliOS DevCounter: http://devcounter.berlios.de
# 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";
Beispiel #26
0
                            $this->tpl->set_var("ownerID", $ownerArray["ownerID"]);
                            $this->tpl->set_var("ownerName", $ownerArray["ownerName"]);
                            $this->tpl->parse("OwnerListBlock", "OwnerList", true);
                        }
                        $listCount++;
                    }
                }
                break;
        }
        $this->setForm();
        $this->setPageDetailPerms();
        $this->tpl->set_var("uname", $this->user["uname"]);
        $this->tpl->set_var("today", date("F j, Y"));
        $this->tpl->set_var("Session", $this->sess->url(""));
        $this->tpl->parse("templatePage", "rptsTemplate");
        $this->tpl->finish("templatePage");
        $this->tpl->p("templatePage");
    }
}
#####################################
# Define Procedures and Functions
#####################################
##########################################################
# Begin Program Script
##########################################################
//*
page_open(array("sess" => "rpts_Session", "auth" => "rpts_Challenge_Auth", "perm" => "rpts_Perm"));
//*/
$rptCollectionByOwner = new RptCollectionByOwner($HTTP_POST_VARS, $formArray, $formAction, $searchKey, $page, $sess);
$rptCollectionByOwner->Main();
page_close();
Beispiel #27
0
<?php
///////////////////////////////////////////////////////////////////////////////
// OBM - File : log_index.php                                                //
//     - Desc : log Index File                                               //
// 2007-07-02 AliaSource - Pierre Baudracco                                  //
///////////////////////////////////////////////////////////////////////////////
// $Id$
///////////////////////////////////////////////////////////////////////////////

$path = "..";
$module = "log";
$obminclude = getenv("OBM_INCLUDE_VAR");
if ($obminclude == "") $obminclude = "obminclude";
include("$obminclude/global.inc");
$params = get_param_log();
page_open(array("sess" => "OBM_Session", "auth" => $auth_class_name, "perm" => "OBM_Perm"));
include("$obminclude/global_pref.inc");

require("log_query.inc");
require("log_display.inc");
require("$obminclude/javascript/check_js.inc");
require("$obminclude/of/of_right.inc");
require_once("$obminclude/of/of_category.inc");

get_log_action();
$perm->check_permissions($module, $action);

page_close();

///////////////////////////////////////////////////////////////////////////////
// Main Program                                                              //
Beispiel #28
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
// of the License, or any later version.
// +---------------------------------------------------------------------------+
// This program 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 General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
// +---------------------------------------------------------------------------+
ob_start();
require '../lib/bootstrap.php';
page_open(array("sess" => "Seminar_Session", "auth" => "Seminar_Default_Auth", "perm" => "Seminar_Perm", "user" => "Seminar_User"));
require_once 'lib/datei.inc.php';
//basename() needs setlocale()
init_i18n($_SESSION['_language']);
// Set Base URL, otherwise links will fail on SENDFILE_LINK_MODE = rewrite
URLHelper::setBaseURL($GLOBALS['ABSOLUTE_URI_STUDIP']);
$file_id = escapeshellcmd(basename(Request::get('file_id')));
$type = Request::int('type');
if ($type < 0 || $type > 7) {
    $type = 0;
}
$document = new StudipDocument($file_id);
$object_id = $document->getValue('seminar_id');
$no_access = true;
//download from course or institute or document is a message attachement
if ($object_id && in_array($type, array(0, 6, 7))) {
Beispiel #29
0
#
# BerliOS SourceWell: http://sourcewell.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# This file checks the dates of the apps to avoid having changes as
# updates
#
# 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";
Beispiel #30
0
<?php

include $DOCUMENT_ROOT . '/phplib/prepend.php';
include $DOCUMENT_ROOT . '/phplib/smsapi.php';
page_open(array("sess" => "shop_Session", "auth" => "shop_Auth", "perm" => "shop_Perm"));
echo "<script language=JavaScript src=currency.js></script>\n";
echo "<script language=JavaScript src=datefunc.js>\n//Parts taken from ts_picker.js\n//Script by Denis Gritcyuk: tspicker@yahoo.com\n//Submitted to JavaScript Kit (http://javascriptkit.com)\n//Visit http://javascriptkit.com for this script\n</script>\n<script language=JavaScript>\nfunction DoCustomChecks(form) {\n  return true;\n}\nfunction SmsFormValidator(form,max) {\n var total = 0;\n for (var idx = 1; idx <= max; idx++) {\n   if (eval('document.SmsForm.SendTo' + idx + '.checked') == true) {\n    total += 1;\n   }\n }\n if (total==0) {\n\talert('You have not selected any recipients.');\n\treturn false;\n }\n if (form.RingTone.value.length==0) {\n\talert('You have not typed in your message.');\n\tform.RingTone.focus();\n\treturn false;\n }else{\n        return true;\n }\n}\n\n<!-- Original:  Ronnie T. Moore -->\n<!-- Web Site:  The JavaScript Source -->\n<!-- Dynamic 'fix' by: Nannette Thacker -->\n<!-- Web Site: http://www.shiningstar.net -->\n<!-- This script and many more are available free online at -->\n<!-- The JavaScript Source!! http://javascript.internet.com -->\n<!-- Begin\nfunction textCounter(field, countfield, maxlimit) {\nif (field.value.length > maxlimit) // if too long...trim it!\nfield.value = field.value.substring(0, maxlimit);\n// otherwise, update 'characters left' counter\nelse \ncountfield.value = maxlimit - field.value.length;\n}\n// End -->\n</script> \n";
class my_SmsAddressBookform extends SmsAddressBookform
{
    var $classname = "my_SmsAddressBookform";
}
$f = new my_SmsAddressBookform();
$db = new DB_shop();
if ($submit) {
    switch ($submit) {
        case "Save":
            if ($id) {
                $submit = "Edit";
            } else {
                $submit = "Add";
            }
        case "Add":
        case "Edit":
            $Charge = 4;
            if (isset($auth)) {
                if (!$f->validate($result)) {
                    $cmd = $submit;
                    echo "<font class=bigTextBold>{$cmd} Sms Address Book</font>\n";
                    $f->display();
                    page_close();
                    exit;