本文整理汇总了PHP中DbManager::GetChatroom方法的典型用法代码示例。如果您正苦于以下问题:PHP DbManager::GetChatroom方法的具体用法?PHP DbManager::GetChatroom怎么用?PHP DbManager::GetChatroom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DbManager
的用法示例。
在下文中一共展示了DbManager::GetChatroom方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DbManager
<?php
require 'inc/conf.php';
require 'inc/constants.php';
require 'inc/init.php';
require 'inc/functions.php';
require 'inc/classes.php';
require 'inc/dbmanager.php';
$dbManager = new DbManager();
$chatRoom = $dbManager->GetChatroom($_POST['roomId']);
if (!$chatRoom->isRemovable) {
echo 'error';
exit;
} else {
if ($chatRoom->removePassword != $_POST['removePassword']) {
echo 'wrongPassword';
exit;
} else {
$dbManager->DeleteChatroom($_POST['roomId']);
echo 'removed';
exit;
}
}
示例2: DbManager
<?php
require 'inc/constants.php';
require 'inc/conf.php';
require 'inc/init.php';
require 'inc/functions.php';
require 'inc/classes.php';
require 'inc/dbmanager.php';
$dbManager = new DbManager();
$chatRoom = $dbManager->GetChatroom($_GET['id']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Private chat room - MyCryptoChat by HowTommy.net</title>
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
<link href="styles/myCryptoChat.css" rel="stylesheet" />
<script src="scripts/modernizr.js"></script>
</head>
<body>
<header>
<div class="content-wrapper">
<div class="float-left">
<p class="site-title"><a href="index.php">MyCryptoChat</a></p>
</div>
<div class="float-right">
<section id="login">
</section>
<nav>