本文整理汇总了PHP中option::write方法的典型用法代码示例。如果您正苦于以下问题:PHP option::write方法的具体用法?PHP option::write怎么用?PHP option::write使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类option
的用法示例。
在下文中一共展示了option::write方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: srand
srand(microtime() * 1000000);
$Zufall_x = rand(1, $size);
$zufall_y = rand(1, $size);
$gefunden = 0;
while ($gefunden == 0) {
$result = $db->query("SELECT * FROM cc" . $n . "_crand where used = '0' and element_type ='0' and x={$Zufall_x} and y={$zufall_y}");
$land = $db->fetch_array($result);
$land_x = $land['x'];
$land_y = $land['y'];
if ($land['used'] == '0') {
$gefunden = 1;
} else {
$gefunden = 0;
}
}
$landkoord = "{$land_x}:{$land_y}";
trace_msg("Admin map change change User Pos county:{$countrie_id} new pos -> {$land_x}:{$land_y}", 112);
$sql = "update cc" . $n . "_countries set x='{$Zufall_x}',y='{$zufall_y}' where islandid='{$countrie_id}' ";
$update = $db->query($sql);
$sql = "update cc" . $n . "_crand set used ='1' where x='{$Zufall_x}' and y='{$zufall_y}' ";
$update = $db->query($sql);
}
trace_msg("Admin map change write Options", 112);
$sql = "update cc" . $n . "_menu_admin_opt set value ='{$size}' where varname='op_map_size'";
$update = $db->query($sql);
require LITO_ROOT_PATH . "includes/class_options.php";
$option = new option(LITO_ROOT_PATH . "options/");
$option->write();
header("LOCATION: map.php");
exit;
}