Beispiel #1
0
 echo 'id="pawn' . $p["idPawn"] . '" ';
 echo 'idmap="map' . $p["idMap"] . '" ';
 echo 'rulelink="' . $p["ruleLink"] . '" ';
 echo 'name="' . $p["name"] . '" ';
 //echo 'updated="'. $p["updated"]. '" ';
 echo 'updated="2000-01-01 01:00:00" ';
 echo 'updatedby="' . $updater . '" ';
 echo 'leader="0" ';
 echo 'flip="1" ';
 echo 'role="' . $p["idRole"] . '" ';
 echo 'rolename="' . $p["roleName"] . '" ';
 echo 'height="' . $p["height"] . '" ';
 echo 'attackrange="' . $p["attackRange"] . '" ';
 echo 'attacktype="' . $p["attackType"] . '" ';
 echo 'modifierlist=" " ';
 echo 'pawnimagehref="' . $appRoot . getDirName($conn, $p["idLocation"], $p["treeDepth"]) . "/" . rawurlencode($p["filename"]) . '" ';
 if ($p["selectKey"] && ($p["roleName"] == "pc" || substr($p["roleName"], 0, 6) == "marker" || $mapMode == "dm")) {
     echo 'selectkey="' . $p["selectKey"] . '" ';
 }
 //echo 'selectkey="'.$p["selectKey"].'" ';
 if ($mapMode == "dm") {
     // add the dbl click event in DM mode
     echo 'ondblclick="toggleVisibility(\'Pawn\',' . $p["idPawn"] . ')" ';
 }
 if ($p["roleName"] == "pc" || substr($p["roleName"], 0, 6) == "marker" || $mapMode == "dm") {
     // add a click event for selecting to move
     echo 'onclick="selectTileOrPawn(\'pawn' . $p["idPawn"] . '\')" ';
 }
 // transformation for the pawn within the map
 echo 'transform="';
 $pawnScale = $m["pixelsPerFoot"] / $standardPawnPixelsPerFoot / $standardPawnSizeFeet;
Beispiel #2
0
        while ($row = $rs->fetchRow(DB_FETCHMODE_ASSOC)) {
            if ($row["user_id"]) {
                $userInfoList[] = $row["user_id"];
            }
        }
    }
    // 重複しているIDは削除(最新のIDのみ残す)
    if ($userInfoList) {
        $userIdList = array_unique($userInfoList);
    }
}
//----------------
// 各種変数の設定
//----------------
// メールフォルダ名の取得
$dirName = getDirName($infoMail->dirId);
// 現在表示しているメールが所属するフォルダの最上位フォルダを取得する
$topParentDir = searchTopParentDir($infoMail->dirId);
//
// フォーム表示用タグの生成
//
// 移動先フォルダ選択タグの生成
$valueStr = "move.php?info_id={$infoMail->infoId}&new_dir_id=";
// JSによる自動ロケーション用文字列
$dirIdOpt = "<option value=\"noselect\">フォルダ移動</option>\n";
foreach ($dir_tbl as $key => $value) {
    // 1階層目フォルダデータの取得
    if ($dir_tbl[$key]["tree_level"] == 1 && !($infoMail->dirId == DELETE_DIR && $dir_tbl[$key]["id"] == DELETE_DIR)) {
        // 削除済みフォルダから削除済みフォルダへの移動選択はできない
        $dirIdOpt .= "<option value=\"{$valueStr}{$dir_tbl[$key]["id"]}\">{$dir_tbl[$key]["name"]}</option>\n";
        foreach ($dir_tbl as $key2 => $value2) {
Beispiel #3
0
        ?>
        <tr>
            <td><font size="2"><?php 
        print $msgRule["rule_id"];
        ?>
</font></td>
            <td><font size="2"><?php 
        print $targetColumns[$msgRule["search_type"]];
        ?>
</font></td>
            <td><font size="2"><?php 
        print $msgRule["keyword"];
        ?>
</font></td>
            <td><font size="2"><?php 
        print getDirName($msgRule["dir_id"]);
        ?>
</font></td>
            <td><font size="2"><input type="text" name="priority_id[<?php 
        print $msgRule['rule_id'];
        ?>
]" size="3" value="<?php 
        print $msgRule['priority_id'];
        ?>
"></font></td>
        </tr>
    <?php 
    }
    ?>
    </table>
    <br>
Beispiel #4
0
                        } else {
                            if ($_REQUEST["mode"] == "danger_all") {
                                $infoMail->updateDangerStatus($define);
                                $dirName = "ブラックにしました。";
                            } else {
                                $new_dir_id = searchTopParentDir($_REQUEST["new_dir_id"]);
                                if (!($infoMail->priority < 0 && $new_dir_id == KEEP_DIR)) {
                                    if ($new_dir_id == KEEP_DIR || $new_dir_id != KEEP_DIR && $infoMail->priority < 0) {
                                        $infoMail->updateDirIdKeep($_REQUEST["new_dir_id"]);
                                    } else {
                                        $infoMail->updateDirId($_REQUEST["new_dir_id"]);
                                    }
                                } else {
                                    $infoMail->updateDirId($_REQUEST["new_dir_id"]);
                                }
                                $dirName = getDirName($_REQUEST["new_dir_id"]) . "フォルダに移動しました。";
                            }
                        }
                    }
                }
            }
        } else {
            exit("DBからのメールデータ取得に失敗!!");
        }
    }
}
//----------------
// 各種変数の設定
//----------------
// 表示設定引継ぎ用のパラメータ文字列の生成
$viewSettingParamP = makeRequestParam(array('dir_id', 'offset', 'view_count'), 'post');
<?php

error_reporting(E_ERROR | E_WARNING | E_PARSE);
define('APP_CONFIG_FILE_VERSION', 1);
define('APP_NAME', 'Stanford Daily Mobile');
define('APP_SESSION', 'daily_mobile');
define('APP_VERSION_MAJOR', '0');
define('APP_VERSION_MINOR', '1');
define('APP_VERSION_MICRO', '0');
define('APP_VERSION_PATCH', 'dev');
define('APP_RELEASE_NAME', '');
define('APP_VERSION_DATE', '');
define('APP_VERSION_STAMP', strtotime(APP_VERSION_DATE));
define('APP_VERSION', APP_VERSION_MAJOR . '.' . APP_VERSION_MINOR . '.' . APP_VERSION_MICRO . '-' . APP_VERSION_PATCH);
define('APP_FULL_NAME', APP_NAME . ' ' . APP_VERSION);
define('APP_ROOT', getDirName(__FILE__));
define('TITLE_POSTFIX', 'The Stanford Daily Mobile');
define('META_DESCRIPTION', 'The Stanford Daily on your BlackBerry');
date_default_timezone_set('America/Los_Angeles');
set_include_path('.' . PATH_SEPARATOR . APP_ROOT . '/includes/simplepie' . PATH_SEPARATOR . APP_ROOT . '/includes/core' . PATH_SEPARATOR . APP_ROOT . '/includes/views');
require_once 'simplepie.inc.php';
require_once 'core.funcs.php';
// === HELPER =========================================================
function getDirName($sPath)
{
    $sPath = str_replace('\\', '/', $sPath);
    return substr($sPath, 0, strrpos($sPath, '/'));
}
function getRequestBasePath($sPath)
{
    return substr($sPath, 0, strrpos($sPath, '/'));