Call this v1.4.1 (lol)
This commit is contained in:
parent
4fcc686abb
commit
b7dc60289b
@ -60,6 +60,9 @@ Read-Write access for working directory
|
|||||||
|
|
||||||
|
|
||||||
#### Changelog
|
#### Changelog
|
||||||
|
* v1.4.1:
|
||||||
|
* Fix usleep bug where irc.php sleeps for less than a millisecond (lol)
|
||||||
|
|
||||||
* v1.4.0:
|
* v1.4.0:
|
||||||
* CSS cleanup / fixes. Rework CSS theme, and add a light variant.
|
* CSS cleanup / fixes. Rework CSS theme, and add a light variant.
|
||||||
* Minor tweaks and bug fixes
|
* Minor tweaks and bug fixes
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
// https://github.com/Pentium44/idleirc
|
// https://github.com/Pentium44/idleirc
|
||||||
///////
|
///////
|
||||||
|
|
||||||
$title = "IdleIRC"; // Main IdleIRC title
|
$title = "FreeBounce"; // Main IdleIRC title
|
||||||
$desc = "IdleIRC is a simple web based IRC client & bouncer service."; // IdleIRC description
|
$desc = "FreeBounce is a simple web based IRC client & bouncer service powered by IdleIRC"; // IdleIRC description
|
||||||
$server = "cddo.cf"; // IRC server connected to (for information display panel and client)
|
$server = "cddo.cf"; // IRC server connected to (for information display panel and client)
|
||||||
$port = "1337"; // IRC server port (for information display panel and client)
|
$port = "1337"; // IRC server port (for information display panel and client)
|
||||||
$default_channel = "#theroot"; // Default channel to push users into
|
$default_channel = "#theroot"; // Default channel to push users into
|
||||||
|
@ -171,6 +171,7 @@ if (isset($_GET['do']) && $_GET['do']=="login" && isset($_POST['submitBtn']) &&
|
|||||||
<title><?php echo $title . " " . $version ?></title>
|
<title><?php echo $title . " " . $version ?></title>
|
||||||
<link href="<?php echo $ui_theme; ?>.css" rel="stylesheet" type="text/css" />
|
<link href="<?php echo $ui_theme; ?>.css" rel="stylesheet" type="text/css" />
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
|
<meta name="description" content="<?php echo $desc; ?>" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=.5, shrink-to-fit=yes">
|
<meta name="viewport" content="width=device-width, initial-scale=.5, shrink-to-fit=yes">
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
@ -433,7 +434,7 @@ if(file_exists("users/." . $_SESSION['idleirc-user'] . ".pingfile"))
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body <?php if(!isset($_GET['register']) && !isset($_GET['logs']) && !isset($_GET['settings']) && isset($_SESSION['idleirc-user']) && file_exists("users/." . $_SESSION['idleirc-user'] . ".pingfile")) { echo 'onload="UpdateTimer();"'; } ?>>
|
<body <?php if(!isset($_GET['register']) && !isset($_GET['logs']) && !isset($_GET['settings']) && isset($_SESSION['idleirc-user']) && file_exists("users/." . $_SESSION['idleirc-user'] . ".pingfile")) { echo 'onload="UpdateTimer();"'; } ?>>
|
||||||
<div class="info"><?php echo $title . " " . $version;
|
<div class="info"><?php echo "Free<span style='color:#00ff00;'>Bounce</span>";
|
||||||
if(isset($_SESSION['idleirc-user'])) { echo " ~ " . $_SESSION['idleirc-servaddr'] . ":" . $_SESSION['idleirc-servport'] . " on " . $_SESSION['idleirc-channel']; } ?></div>
|
if(isset($_SESSION['idleirc-user'])) { echo " ~ " . $_SESSION['idleirc-servaddr'] . ":" . $_SESSION['idleirc-servport'] . " on " . $_SESSION['idleirc-channel']; } ?></div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
@ -498,7 +499,7 @@ if (!isset($_SESSION['idleirc-user'])) {
|
|||||||
?>
|
?>
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
<a href="index.php?do=logout">Logout</a>
|
<a href="index.php?do=logout">Logout</a>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// If this is the first login, make sure to start the bouncer! From there, the user will have toggle control.
|
// If this is the first login, make sure to start the bouncer! From there, the user will have toggle control.
|
||||||
if (!file_exists("users/." . $_SESSION['idleirc-user'] . ".pingfile") && file_exists("users/." . $_SESSION['idleirc-user'] . ".first")) {
|
if (!file_exists("users/." . $_SESSION['idleirc-user'] . ".pingfile") && file_exists("users/." . $_SESSION['idleirc-user'] . ".first")) {
|
||||||
|
2
irc.php
2
irc.php
@ -166,7 +166,7 @@ while($bytes = socket_recv($socket, $r_data, 3068, MSG_DONTWAIT) !== '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// second sleep to prevent insane CPU load
|
// second sleep to prevent insane CPU load
|
||||||
usleep(600);
|
usleep(500000);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -5,6 +5,6 @@
|
|||||||
// https://github.com/Pentium44/idleirc
|
// https://github.com/Pentium44/idleirc
|
||||||
///////
|
///////
|
||||||
|
|
||||||
$version = "1.4.0"; // IdleIRC version
|
$version = "1.4.1"; // IdleIRC version
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user