Пример #1
0
function chkSqlAct(&$sSql)
{
    global $sActCd, $sErrMsg;
    if (!isAdminAct($sActCd)) {
        $sSqlTmp4 = mb_strtoupper(substr($sSql, 0, 4));
        $sSqlTmp6 = mb_strtoupper(substr($sSql, 0, 6));
        if ($sSqlTmp4 != 'SHOW' && $sSqlTmp6 != 'SELECT') {
            $sErrMsg = '権限が無いので、「SELECT」か「SHOW」しか実行出来ません。';
        }
    }
}
Пример #2
0
						<label for="rdoLoopCnt1">UNLOOP</label>
					</td>
					<td nowrap valign="top">
						<input name="rdoLoopCnt" id="rdoLoopCnt2" type="radio" value="1000">
						<label for="rdoLoopCnt2">LOOP 1000</label>
					</td>
					<td nowrap valign="top">
						<input name="rdoLoopCnt" id="rdoLoopCnt3" type="radio" value="10000">
						<label for="rdoLoopCnt3">LOOP 10000</label>
					</td>
				</tr>
		</table>
		<input name="btnSqlExecute" type="submit" id="btnSqlExecute" value="SQL実行" onClick="return chkSql()">&nbsp;
		<input name="btnSqlExplain" type="submit" id="btnSqlExplain" value="EXPLAIN">&nbsp;
		<input name="btnSqlClear" type="button" id="btnSqlClear" value="SQLクリア" onClick="sqlClear()">
<?php 
//管理者権限のみ表示
if (isAdminAct($sActCd)) {
    ?>
		<p><font size="-1" color="#0000FF">
			Stored Procedure / Stored Function の作成・更新は、「View&Storedメンテ用画面」から行ってください。<br>
			この画面からも作成はできますが、この画面だと、タブや改行コード、連続するスペースを全てスペース1つに補正してしまいます。
		</font></p>
<?php 
}
?>
	</div>
</form>
</body>
</html>
Пример #3
0
    $i = 0;
    while ($i < $iObjectCnt) {
        if ($i > 0) {
            print "\n\n--------------------------------------------------------------------------------\n\n";
        }
        print $sObject[$i];
        $i++;
    }
    if ($iObjectCnt > 0) {
        print "\n";
    }
    ?>
</textarea>
<?php 
    //管理者権限のみ表示、かつ、ReadOnly時は非表示
    if (isAdminAct($sActCd) && $sReadOnly == "") {
        print $sFooterMsg;
        ?>
		<p><font color="#FF0000">日本語は絶対に入力しないでください!(文字化けします)</font></p>
		<input name="btnExecute" type="button" id="btnExecute" value="<?php 
        print $sBtnLabel;
        ?>
" onClick="sendData(document.frmObjectEdit.sSql.value); return false;">
<?php 
    }
} else {
    if (!empty($sErrMsg)) {
        print "\t<p><font color=\"#FF0000\">" . $sErrMsg . "</font></p>\n";
    }
}
?>