📄 docreateroom.php
字号:
<?php
// start fix for no duplicate rooms
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE name=?");
$rs = $stmt->process($label);
if($rs->hasNext()) return null;
// end fix for no duplicate rooms
$stmt = new Statement("INSERT INTO {$GLOBALS['fc_config']['db']['pref']}rooms (created, name, password, ispublic) VALUES (NOW(), ?,?,?)");
$id = $stmt->process($label, $pass, (($isPublic)?'y':null));
$msg = new Message('adr', null, $id, $label);
$msg_lock = new Message('srl', null, $id, 'true');
if($isPublic) {
$this->sendToAll($msg);
if($pass != '') $this->sendToAll($msg_lock);
} else {
$this->sendBack($msg);
if($pass != '') $this->sendBack($msg_lock);
}
return $id;
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -