コード例 #1
0
ファイル: utils.php プロジェクト: paultag/puzzle-editing
function changeRuntime($uid, $pid, $runtime)
{
    if (!canViewPuzzle($uid, $pid)) {
        utilsError("You do not have permission to modify this puzzle.");
    }
    $purifier = new HTMLPurifier();
    mysql_query('START TRANSACTION');
    $oldRuntime = getRuntime($pid);
    $cleanRuntime = $purifier->purify($runtime);
    $cleanRuntime = htmlspecialchars($cleanRuntime);
    updateRuntime($uid, $pid, $oldRuntime, $cleanRuntime);
    mysql_query('COMMIT');
}
コード例 #2
0
 function GetXML($_operator = false)
 {
     if ($_operator) {
         $this->GlobalHash = substr(md5($this->XML), 0, 5);
         if ($_POST[POST_INTERN_SERVER_ACTION] != INTERN_ACTION_LISTEN || isset($_POST[POST_GLOBAL_XMLCLIP_HASH_ALL]) && $_POST[POST_GLOBAL_XMLCLIP_HASH_ALL] != $this->GlobalHash) {
             $this->XML = str_replace("<!--gl_all-->", base64_encode(substr(md5($this->XML), 0, 5)), $this->XML);
         } else {
             return "";
         }
         return str_replace("<!--execution_time-->", base64_encode(floor(getRuntime(ACCESSTIME))), $this->GetXML());
     }
     return "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><livezilla_xml><livezilla_version>" . base64_encode(VERSION) . "</livezilla_version>" . $this->XML . "</livezilla_xml>";
 }
コード例 #3
0
ファイル: puzzle.php プロジェクト: paultag/puzzle-editing
function displayRuntime($uid, $pid)
{
    $notes = getRuntime($pid);
    ?>
    <table class="statusInfo">
        <tr>
            <td class='statusInfo'>
                <strong>Runtime Notes: </strong> <?php 
    echo $notes;
    ?>
            </td>
            <td class='statusInfo'>
                <a href="#" class="changeLink">[Change]</a>
            </td>
        </tr>
        <tr>
            <td colspan='2'>
            <form method="post" action="form-submit.php">
                <input type="hidden" name="uid" value="<?php 
    echo $uid;
    ?>
" />
                <input type="hidden" name="pid" value="<?php 
    echo $pid;
    ?>
" />
                <input type="text" name="notes" maxlength="255" class="longin" value="<?php 
    echo $notes;
    ?>
"/>
                <input type="submit" name="changeRuntime" value="Change" />
            </form>
            </td>
        </tr>
    </table>
<?php 
}
コード例 #4
0
ファイル: server.php プロジェクト: bgabor/RenaniaOpencart
* Copyright 2014 LiveZilla GmbH
* All rights reserved.
* LiveZilla is a registered trademark.
* 
* Improper changes to this file may cause critical errors.
***************************************************************************************/
define("IN_LIVEZILLA", true);
define("SAFE_MODE", @ini_get('safe_mode'));
define("LIVEZILLA_PATH", "./");
@error_reporting(E_ALL);
require LIVEZILLA_PATH . "_definitions/definitions.inc.php";
require LIVEZILLA_PATH . "_definitions/definitions.protocol.inc.php";
require LIVEZILLA_PATH . "_lib/functions.global.inc.php";
require LIVEZILLA_PATH . "_lib/objects.global.users.inc.php";
require LIVEZILLA_PATH . "_lib/objects.devices.inc.php";
define("ACCESSTIME", getRuntime());
if (isServerSetup()) {
    CacheManager::Flush();
}
defineURL(FILE_SERVER_FILE);
processHeaderValues();
$DBA = 0;
$RESPONSE = new Response();
if (!isset($_POST[POST_INTERN_ADMINISTRATE]) && isset($_POST["p_request"]) && $_POST["p_request"] == CALLER_TYPE_INTERNAL) {
    header("Content-Type: text/xml; charset=UTF-8");
    if (getIdle()) {
        $RESPONSE->SetValidationError(LOGIN_REPLY_IDLE);
        exit($RESPONSE->GetXML());
    }
    if (!getAvailability() && $_POST[POST_INTERN_SERVER_ACTION] == INTERN_ACTION_LOGIN && !isset($_POST[POST_INTERN_ACCESSTEST])) {
        $RESPONSE->SetValidationError(LOGIN_REPLY_DEACTIVATED);
コード例 #5
0
ファイル: movie.php プロジェクト: roseblumentopf/mywatchlst
                            <strong>Cast:</strong>
                            <?php 
echo getCredits($row);
?>
                        
                        </div>
                        <div id="director">
                            <strong>Director:</strong>
                            <?php 
echo getDirector($row);
?>
                        </div>
                        <div id="runtime">
                            <strong>Runtime:</strong>
                            <?php 
echo getRuntime($row);
?>
 
                        </div>
                        <div id="genres">
                            <strong>Genres:</strong>
                            <?php 
echo getGenres($row);
?>
                        </div>
                        <!--div id="trailer">
                            <strong><?php 
echo getTrailerUrl($row);
?>
</strong>
                        </div-->