Re: wer rausfindet, was sich jetzt geändert hat...
Geizhals » Forum » Geizhals » wer rausfindet, was sich jetzt geändert hat... (38 Beiträge, 28 Mal gelesen) Top-100 | Fresh-100
Du bist nicht angemeldet. [ Login/Registrieren ]
.
Re: wer rausfindet, was sich jetzt geändert hat...
RF
09.08.2001, 10:51:40
Hi !

Das hat sich geändert:
addIncludePath( "Logic/Entities/InfocracksPoll.php" ); include("/home/mi006gpa/www/home/Infocracks/include/functions.inc.php"); require $context->addIncludePath( "Logic/Entities/InfocracksPortalVertical.php" ); /**/ /*************/ // unset( $showResult ); if ( !isset( $format ) ) { $format = "HTML"; } //---expected variables // $pollId = 244; // $verticalId = 28; //--------------------- $baseURL = "http://www.InfoCracks.com/Infocracks/"; if ( !isset( $layoutId ) ) { $layoutId = "001"; } if( !isset($memberID) ) $memberID = $memberId; $bgColor_userdefinded = $bgColor; $txtColor_userdefinded = $txtColor; $borderColor_userdefined = $borderColor; $barBorderColor_userdefined = $barBorderColor; $borderColor_userdefined = $borderColor; if( !isset( $layoutId ) ) { $layoutId = "001"; } include ( "/home/mi006gpa/www/home/Infocracks/pics/IC_Banner/definitions_$layoutId.inc.php" ); if( isset( $bgColor_userdefinded ) ) { $bgColor=$bgColor_userdefinded; } if( isset( $txtColor_userdefinded ) ) { $txtColor=$txtColor_userdefinded; } if( isset( $borderColor_userdefined ) ) { $borderColor = $borderColor_userdefined; } if( isset( $barBorderColor_userdefined ) ) { $barBorderColor = $barBorderColor_userdefined; } if( isset( $borderColor_userdefined ) ) { $borderColor = $borderColor_userdefined; } if( !isset( $borderColor ) ) $borderColor = "#CCCCCC"; if( !isset( $barBorderColor ) ) $barBorderColor = "#000000"; if( !isset( $top_align ) ) $top_align = "center"; if( !isset( $bottom_align) ) $bottom_align = "center"; if( !isset( $width ) ) $width = "156"; if( !isset( $borderColor ) ) $borderColor = "#AAAAAA"; if ( !isset( $pollId ) ){ if( isset( $QuickCode ) ){ $codeArray=decodeQuickCode( $QuickCode ); $pollId = $codeArray[1]; $verticalId = $codeArray[0]; } else if( isset( $verticalId ) ){ $DB = &$context->dataBase; $DB->query( "select ID, _InfocracksPortalVerticalID from InfocracksPoll where _InfocracksPortalVerticalID='$verticalId' AND Flag='1' order by StartDate" ); if ( $DB->next_record() ){ $pollId = $DB->f('ID'); $verticalId = $DB->f('_InfocracksPortalVerticalID'); } } else if( isset( $memberID ) ){ $DB = &$context->dataBase; $DB->query( "select ID, _InfocracksPortalVerticalID from InfocracksPoll where _InfocracksPortalMemberID='$memberID'" /*also Private ones !! " AND Flag='1' order by StartDate" */); if ( $DB->next_record() ){ $pollId = $DB->f('ID'); $verticalId = $DB->f('_InfocracksPortalVerticalID'); } } if /*still*/ ( !isset( $pollId ) ) { $DB = &$context->dataBase; $DB->query( "select ID, _InfocracksPortalVerticalID from InfocracksPoll where Flag='1' order by StartDate" ); if ( $DB->next_record() ){ $pollId = $DB->f('ID'); $verticalId = $DB->f('_InfocracksPortalVerticalID'); } } } $myPoll=new InfocracksPoll(); if ( !isset( $pollId ) || $myPoll->find( $pollId ) != 0 ) { $outPut = "Poll mit der ID $pollId existiert nicht"; $error=1; } /** don't nee this at the moment if( !isset( $error ) ){ $myVertical=new InfocracksPortalVertical(); if ( $myVertical->find($verticalId) != 0 ) { } } **/ if ( isset( $newLanguageCode ) and isset( $newCountryCode ) ){ $languageCode=$newLanguageCode; $countryCode=$newCountryCode; }else{ $languageCode="ger"; $countryCode="at"; } //------------------------------------------------------------------- class AnswerOptionFormfield{ var $name = ""; var $value = ""; var $displayedText = ""; function AnswerOptionFormfield( $name, $value, $displayedText ) { $this->name = $name; $this->value = $value; $this->displayedText = $displayedText; } function toString() { return "(".$this->name.", ".$this->value.", \"".$this->displayedText."\")"; } } //------------------------------------------------------------------- if ( !isset( $error ) ) { $formTag= '
'; $questionText= stripslashes($myPoll->A['QuestionText']->getValue()); $answerOptions = array(); for ( $i=1; $i <= $myPoll->A['NrAnswerAlternatives']->getValue(); $i++){ $myAttribute="AnswerText".$i; $formField = new AnswerOptionFormfield( "pollWert", $i, $myPoll->A[$myAttribute]->getValue() ); array_push( $answerOptions, $formField ); //echo $myPoll->A[$myAttribute]->getValue()."
"; //echo $formField->toString()."
"; } $outPut = ""; //include the right Layout : if( substr ($layoutId, 0, 1) == "0" ) { //first generation of layouts: ids start with 0 if ( isset( $showResult ) && $showResult != 0) { include("/home/mi006gpa/www/home/Infocracks/include/".$countryCode."/".$languageCode."/UmfrageBoxen/0version_ResultBox.inc.php"); } else { include("/home/mi006gpa/www/home/Infocracks/include/".$countryCode."/".$languageCode."/UmfrageBoxen/0version_Box.inc.php"); } } else if( substr ($layoutId, 0, 1) == "1" ) { $outPut = "layouts with Id starting with 1 not implemented"; } else if( $layoutId == "geizhals" ) { include("/home/mi006gpa/www/home/Infocracks/include/".$countryCode."/".$languageCode."/UmfrageBoxen/geizhals.inc.php"); } else { $outPut = "no file to include for layoutId=$layoutId"; } } /****** Output the Query ***********************************/ if ( $format == "HTML" ) { echo ''; echo $outPut; echo ""; } else if ( $format == "HTMLBody" ) { echo $outPut; } else if ( $format == "JS" ) { $outPut = str_replace( "'", "\'", $outPut ); $outPut = str_replace( "\r", "", $outPut ); echo "d=document;"; echo "d.writeln('"; echo str_replace( "\n", "');\r\nd.writeln('", $outPut ); echo "');\n"; } else { echo "unknown value for format parameter"; }

Steht im Moment unter dem Webcam-Bild

MFG

RF

Antworten PM Alle Chronologisch Zum Vorgänger
 
Melden nicht möglich
 

Dieses Forum ist eine frei zugängliche Diskussionsplattform.
Der Betreiber übernimmt keine Verantwortung für den Inhalt der Beiträge und behält sich das Recht vor, Beiträge mit rechtswidrigem oder anstößigem Inhalt zu löschen.
Datenschutzerklärung