php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2004

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 22.10.2004, 20:34  
Gast
 
Beiträge: n/a
Standard Problem -> bekomme nichts angezeigt.

Guten tag,

ich habe versucht opensurveypilot zu installieren.
Das klappt auch.

Dann, wenn ich einen neuen Fragebogen ausgeben will, öffnet es mir ein leeres fenster.

wenn ich nachschaue hat das file folgenden inhalt:
<?php
// +----------------------------------------------------------------------+
// | survey pilot |
// +----------------------------------------------------------------------+
// | Copyright (c) 2002 serie a - Digitale Medien und Systeme GmbH |
// +----------------------------------------------------------------------+
// | Authors: Jörn Allert <allert@serie-a.de> |
// | Rene Renk <renk@serie-a.de> |
// +----------------------------------------------------------------------+
//
// $Id: survey.add.php,v 1.1.1.1 2004/06/25 10:26:35 renk Exp $

// start session
@session_start();

// require all configuration files and libraries
require_once("./../config/config.inc.php"); // common config file
require_once ("Validate.php"); // PEAR::Validate
require_once($cfgPathToConf."/file.inc.php"); // project files
require_once($cfgPathToLib."/common.inc.php"); // common functions
require_once($cfgPathToSurveyFiles."/config/survey.config.inc.php"); // survey files
require_once($cfgPathToSurveyFiles."/config/survey.file.inc.php"); // survey files
require_once($cfgPathToSurveyFiles."/lib/survey.inc.php"); // survey functions
require_once($cfgPathToAuthFiles."/lib/user.inc.php"); // auth user functions
require_once($cfgPathToAuthFiles."/config/auth.file.inc.php"); // auth user functions
require_once("HTML/Template/IT.php"); // PEAR::HTML_TEMPLATE_IT

// create new userFunctions object
$client = &new userFunctions;

//login check
if ($client->getAuthentication($_SESSION["sessionId"], session_id()) == false)
{
//redirect to login page
?>
<script type="text/javascript">
<!--
window.location.href="<?php echo $cfgUrlToProject."/".$fileAuthLogin; ?>";
-->
</script>
<?php
exit;
}

// Start of checking the permissions
$fileUserPermissionMode = $permUserSurveyAdd;
$filePermissionMode = $permSurveyAdd;

// filepermission
if($_SESSION["sessionUserStatusId"] < $filePermissionMode)
{
?>
<script type="text/javascript">
<!--
window.location.href="<?php echo $cfgUrlToProject."/".$fileNoPermission."?messageCode=".$filePermissio nMode."&messageType=file"; ?>";
-->
</script>
<?php
exit;
}

// End of checking the permissions

// check if form was submitted
if($_SERVER["REQUEST_METHOD"] == "POST")
{
$surveyName = cleanHtml($_POST["surveyName"]);

if($surveyName != "")
{
// check format
if(!validate::string($surveyName, VAL_DENAME, 1, 50))
{
$errors["surveyName"] = $lang_script["survey.add.php"]["surveyNameUnvalidChars1"]." ".$surveyName." ".$lang_script["survey.add.php"]["surveyNameUnvalidChars2"];
}
}
else
{
$errors["surveyName"] = $lang_script["survey.add.php"]["surveyNameFillIn"];
}

$surveyDescription = cleanHtml($_POST["surveyDescription"]);
if($surveyDescription != "")
{
// check format
if(!validate::string($surveyDescription, VAL_DENAME_PUNCTUATION, 1, 500))
{
$errors["surveyDescription"] = $lang_script["survey.add.php"]["surveyDescriptionLength"];
}
}
else
{
$errors["surveyDescription"] = $lang_script["survey.add.php"]["surveyDescriptionFillIn"];
}

$surveyActive = $_POST["surveyActive"];
if($surveyActive == "1")
{
$surveyActiveChecked = "checked";
}

$surveyOutputDir = cleanHtml(ereg_replace(" ","_",(strtolower($_POST["surveyOutputDir"]))));
if($surveyOutputDir != "")
{
// check format
if(!validate::string($surveyOutputDir, VAL_ALPHA_NUM_, 1, 50))
{
$errors["surveyOutputDir"] = $lang_script["survey.add.php"]["surveyOutputDirLength"];
}
}
else
{
$errors["surveyOutputDir"] = $lang_script["survey.add.php"]["surveyOutputDirFillIn"];
}

$surveyStartDateYear = $_POST["surveyStartDateYear"];
$surveyStartDateMonth = $_POST["surveyStartDateMonth"];
$surveyStartDateDay = $_POST["surveyStartDateDay"];
if($surveyStartDateYear != "" and $surveyStartDateMonth != "" and $surveyStartDateDay != "")
{
// validate date
if(!validate::date($surveyStartDateDay.$surveyStar tDateMonth.$surveyStartDateYear,'%d%m%Y'))
{
$errors["surveyStartDate"] = $lang_script["survey.add.php"]["surveyStartDateInvalid"];
}
else
{
$surveyStartDate = $surveyStartDateYear."-".$surveyStartDateMonth."-".$surveyStartDateDay;
}
}

$surveyEndDateYear = $_POST["surveyEndDateYear"];
$surveyEndDateMonth = $_POST["surveyEndDateMonth"];
$surveyEndDateDay = $_POST["surveyEndDateDay"];
if($surveyEndDateYear != "" and $surveyEndDateMonth != "" and $surveyEndDateDay != "")
{
// validate date
if(!Validate::date($surveyEndDateDay.$surveyEndDat eMonth.$surveyEndDateYear,'%d%m%Y'))
{
$errors["surveyEndDate"] = $lang_script["survey.add.php"]["surveyEndDateInvalid"];
}
else
{
$surveyEndDate = $surveyEndDateYear."-".$surveyEndDateMonth."-".$surveyEndDateDay;
}
}

// put error Array in String
if($errors)
{
foreach($errors as $error)
{
$surveyError .= "$error
";
}
}
// no errors, so we can insert new user
else
{
// create new userFunctions object
$survey = &new surveyFunctions;

$surveyArray["surveyAuthorId"] = $_SESSION["sessionUserId"];
$surveyArray["surveyName"] = $surveyName;
$surveyArray["surveyAuthor"] = $_SESSION["sessionUserFirstname"]." ".$_SESSION["sessionUserLastname"];
$surveyArray["surveyDescription"] = $surveyDescription;
$surveyArray["surveyOutputDir"] = $surveyOutputDir;
$surveyArray["surveyActive"] = $surveyActiveChecked;
$surveyArray["surveyStartDate"] = $surveyStartDate;
$surveyArray["surveyEndDate"] = $surveyEndDate;

$result = $survey->addSurvey($surveyArray);
if($survey->errorMessage)
{
$surveyError .= "
".$survey->errorMessage;
}

// create outputdir
$survey->createOutputDir($surveyOutputDir);
if($survey->errorMessage)
{
$surveyError .= "
".$survey->errorMessage;
}

// copy files in output dir
$survey->copySurveyAddFiles($surveyOutputDir);
if($survey->errorMessage)
{
$surveyError .= "
".$survey->errorMessage;
}

if(!$surveyError)
{
?>
<html><body>
<script type="text/javascript">
<!--
window.location.href="<?php echo $cfgUrlToProject."/".$fileCommonSuccessMessage; ?>";
-->
</script>
<?php
exit;
}
}
}

// create Template IT object
$tpl = new HTML_Template_IT($cfgPathToSurveyTemplates);

// load template
$tpl->loadTemplatefile($templateSurveyAdd, true, true);

// set title
$tpl->setVariable( "applicationtitle", $cfgApplicationType.$cfgApplicationVersion);

$tpl->setVariable( "formaction", $fileSurveyAdd );

$tpl->setVariable( "errors", $surveyError );

$tpl->setVariable( "surveyname", $surveyName );
$tpl->setVariable( "surveyauthor", $surveyAuthor );
$tpl->setVariable( "surveydescription", $surveyDescription );
$tpl->setVariable( "surveyoutputpath", $surveyOutputDir );
$tpl->setVariable( "surveyactive", $surveyActiveChecked );
$tpl->setVariable( "projectId", "$projectId" );

// parse template
$tpl->parse();

// get the parsed template and print it
$tpl->get();
$tpl->show();
?>


Warum wird mir nichts angezeigt?
einfach nur ein leeres fenster

danke für jede hilfe!!!
 
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 22.10.2004, 22:08  
Erfahrener Benutzer
 
Registriert seit: 18.09.2003
Beiträge: 13.598
PHP-Kenntnisse:
Fortgeschritten
imported_Ben ist zur Zeit noch ein unbeschriebenes Blatt
Standard

du denkst jetzt nicht wirklich, dass wir da jede zeile auseinandernehmen.

was geschieht in den beiden methoden show() und get()?

quellcode .. aber nur mit [ php ] - tags. drück einfach mal Alt+z
imported_Ben ist offline  
Alt 22.10.2004, 23:26  
Gast
 
Beiträge: n/a
Standard

Wenn du dich nicht mit dem Script auskennst frag doch die Autoren!
Oben steht die Mail Addy doch?!
 
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
[Erledigt] Galerie Problem... coraplanet PHP Tipps 2008 4 06.06.2008 13:42
Riesen Problem Razoback HTML, Usability und Barrierefreiheit 1 13.08.2006 08:15
datensätze defekt oder problem mit dem einlesen? Ministry Datenbanken 4 06.07.2006 18:42
PN System Problem gollum1990 PHP Tipps 2006 4 09.05.2006 21:52
problem!!! PHP Tipps 2006 6 08.02.2006 11:06
In den Frames wird nichts Angezeigt Xalon HTML, Usability und Barrierefreiheit 7 17.09.2005 20:38
nichts wird angezeigt function PHP Tipps 2005-2 16 05.08.2005 18:47
php5 Seiten in htdocs werden nicht angezeigt. PHP Tipps 2005-2 26 25.06.2005 18:30
seiten werden nicht angezeigt Server, Hosting und Workstations 1 24.05.2005 11:41
Problem mit osCommerce brauche dringend Hilfe... PHP Tipps 2005 12 13.05.2005 08:40
Seiten werden nicht angezeigt PHP Tipps 2005 4 11.05.2005 11:59
Teile der Seite werden doppelt angezeigt PHP Tipps 2005 8 06.05.2005 15:10
[Erledigt] Bilder werden nicht richtig angezeigt PHP Tipps 2005 31 30.04.2005 18:29
Abfrage Problem (vermute ich) PHP Tipps 2004-2 3 14.12.2004 22:21
Habe Problem mit Sonderzeichen pit62 Datenbanken 2 12.06.2004 00:17

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
\$client = &new userfunctions\, survey html string kann nicht, \rene renk\, tpl set variable, php config string wird nicht angezeigt, pear validate sonderzeichen, opensurveypilot userfunction, $template->setvariable umlaute, php survey check, opensurveypilot config.inc.php, html_template_it doppelt, $tpl->setvariable( \errors\, $errors );, bekomme nur php angezeigt, \jörn allert\, html template it setvariable, check date php, \pear validate\ umlaute, opensurveypilot require_once($cfgpathtoauthfiles.\/lib/user.inc.php\), pear auth start() string

Alle Zeitangaben in WEZ +2. Es ist jetzt 02:23 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.