HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //opt/proundcontra.mosmuc.de/tpl/pph/editQuestion.php
<?
/********************************************************************************
 * The contents of this file are subject to the Common Public Attribution License
 * Version 1.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 * http://www.wikiarguments.net/license/. The License is based on the Mozilla
 * Public License Version 1.1 but Sections 14 and 15 have been added to cover
 * use of software over a computer network and provide for limited attribution
 * for the Original Developer. In addition, Exhibit A has been modified to be
 * consistent with Exhibit B.
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 *
 * The Original Code is Wikiarguments. The Original Developer is the Initial
 * Developer and is Wikiarguments GbR. All portions of the code written by
 * Wikiarguments GbR are Copyright (c) 2012. All Rights Reserved.
 * Contributor(s):
 *     Andreas Wierz (andreas.wierz@gmail.com).
 *
 * Attribution Information
 * Attribution Phrase (not exceeding 10 words): Powered by Wikiarguments
 * Attribution URL: http://www.wikiarguments.net
 *
 * This display should be, at a minimum, the Attribution Phrase displayed in the
 * footer of the page and linked to the Attribution URL. The link to the Attribution
 * URL must not contain any form of 'nofollow' attribute.
 *
 * Display of Attribution Information is required in Larger Works which are
 * defined in the CPAL as a work which combines Covered Code or portions
 * thereof with code not governed by the terms of the CPAL.
 *******************************************************************************/

global $sTemplate, $sUser, $sDB, $sPacket, $sPage;

$page       = "";
$language   = $sTemplate->getLangBase();

$qTags = "";
foreach($sPage->question()->tags() as $k => $v)
{
    if($qTags != "")
    {
        $qTags .= ",";
    }
    $qTags .= $v;
}
?>
<? include($sTemplate->getTemplateRootAbs()."header.php"); ?>

<div id = "content_wide">
  <div class = "thin">
    <form action = "<? echo $sPage->getFormUrl(); ?>" method = "POST" id = "form_edit_question">
      <div class = "new_question">
        <div class = "row">
          <div class = "headline"><? echo $sTemplate->getString("EDIT_QUESTION_HEADLINE"); ?></div>
        </div>
        <div class = "row">
          <div class = "label"><? echo $sTemplate->getString("NEW_QUESTION_TITLE"); ?></div>
          <div class = "input">
            <textarea id = "new_question_title" name = "new_question_title" maxlength="<?echo MAX_QUESTION_CHR_LENGTH; ?>"><? echo $sPage->question()->titlePlain(); ?></textarea>
            <span class="characters_left"><span id="new_question_title_chars_left"><?echo MAX_QUESTION_CHR_LENGTH - strlen($sPage->question()->title()); ?></span> <? echo $sTemplate->getString("CHARS_WRITTEN_LEFT"); ?> </span>
          </div>
        </div>

        <div class = "row">
          <div class = "label"><? echo $sTemplate->getString("NEW_QUESTION_DETAILS"); ?></div>
          <div class = "input">
            <textarea id = "new_question_details" name = "new_question_details"><? echo $sPage->question()->detailsPlain(); ?></textarea>
            <span class="characters_left"><span id="new_question_details_chars_left"><? echo strlen($sPage->question()->details()); ?></span> <? echo $sTemplate->getString("CHARS_WRITTEN"); ?> </span>
          </div>
        </div>

        <div class = "row">
          <div class = "label"><? echo $sTemplate->getString("NEW_QUESTION_TAGS"); ?></div>
          <div class = "input">
            <textarea id = "new_question_tags" name = "new_question_tags" maxlength="<?echo MAX_TAGS_CHR_LENGTH ?>"><? echo $qTags; ?></textarea>
            <span class="characters_left"><? echo $sTemplate->getString("TAGS_DIVIDE"); ?> <span id="new_question_tags_chars_left"><?echo MAX_TAGS_CHR_LENGTH - strlen($qTags); ?></span> <? echo $sTemplate->getString("CHARS_WRITTEN_LEFT"); ?></span>
          </div>
        </div>

        <div class = "row">
          <div class = "label2"><? echo $sTemplate->getString("NEW_QUESTION_TYPE"); ?></div>
          <div class = "input">
            <select name = "new_question_type" id = "new_question_type" onchange = "wikiargument.changeQuestionType();">
              <option value = "<? echo QUESTION_TYPE_LISTED; ?>" <? echo $sPage->question()->type() == QUESTION_TYPE_LISTED ? ' selected' : ''; ?>><? echo $sTemplate->getString("QUESTION_TYPE_LISTED"); ?></option>
              <option value = "<? echo QUESTION_TYPE_UNLISTED; ?>" <? echo $sPage->question()->type() == QUESTION_TYPE_UNLISTED ? ' selected' : ''; ?>><? echo $sTemplate->getString("QUESTION_TYPE_UNLISTED"); ?></option>
            </select>
          </div>
        </div>

        <div class = "row row_submit">
            <span class = "button_orange" onclick = "$('#form_edit_question').submit(); $(this).attr('disabled','disabled'); return false;"><? echo $sTemplate->getString("SUBMIT_NEW_QUESTION"); ?></span>
        </div>
      </div>
      <input type = "hidden" name = "edit_question" value = "1" />
    </form>

<?
/*
    <div class="writing_tips">
        <h3>Tips on writing better questions</h3>
        <ul class="writing_tips_list">
            <li>Lorem ipsum dollar sit amet, consectetur adipiscing</li>
            <li>Pellentesque feugiat dapibus auctor. Curabitur</li>
            <li>Cras tempor metus quis urna tempor consequat. Cum sociis natoque</li>
            <li>Sed interdum orci sed quam aliquet dapibus. In nisl eros</li>
            <li>Praesent lacinia ligula sit amet erat pretium ullamcorper</li>
        </ul>
    </div>
*/
?>

  </div>
</div>

<? include($sTemplate->getTemplateRootAbs()."footer.php"); ?>