Call this v1.3.3
This commit is contained in:
parent
15be7f3b14
commit
2f7ddd989d
@ -60,6 +60,11 @@ Read-Write access for working directory
|
|||||||
|
|
||||||
|
|
||||||
#### Changelog
|
#### Changelog
|
||||||
|
* v1.3.3:
|
||||||
|
* Tweaked main page from "Connected to:" to "Using:"
|
||||||
|
* Keep JS from processing if irc.php is not active.
|
||||||
|
* CSS tweaks
|
||||||
|
|
||||||
* v1.3.2:
|
* v1.3.2:
|
||||||
* Fix irc.php private message bug with array.
|
* Fix irc.php private message bug with array.
|
||||||
* Fix irc.php saving logs in incorrect locations.
|
* Fix irc.php saving logs in incorrect locations.
|
||||||
|
@ -17,8 +17,9 @@ $allowMultiServer = "true"; // [true/false] Allow users to set other IRC servers
|
|||||||
///// WEBCLIENT LAYOUT /////
|
///// WEBCLIENT LAYOUT /////
|
||||||
$ipcolor = "#00FF00";
|
$ipcolor = "#00FF00";
|
||||||
|
|
||||||
///// NO TOUCHY SECTION /////
|
///// NO TOUCH /////
|
||||||
$version = "1.3.2"; // IdleIRC version
|
// Include software version in another php file for the sake of git pull
|
||||||
|
include_once("version.php");
|
||||||
|
|
||||||
function doLog($string) {
|
function doLog($string) {
|
||||||
file_put_contents($GLOBALS['logfile'], $string . "\r\n", FILE_APPEND);
|
file_put_contents($GLOBALS['logfile'], $string . "\r\n", FILE_APPEND);
|
||||||
|
27
index.php
27
index.php
@ -173,6 +173,12 @@ if (isset($_GET['do']) && $_GET['do']=="login" && isset($_POST['submitBtn']) &&
|
|||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
<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">
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if(file_exists("users/." . $_SESSION['idleirc-user'] . ".pingfile"))
|
||||||
|
{
|
||||||
|
|
||||||
|
?>
|
||||||
<!--
|
<!--
|
||||||
var httpObject = null;
|
var httpObject = null;
|
||||||
var link = "";
|
var link = "";
|
||||||
@ -392,12 +398,29 @@ if (isset($_GET['do']) && $_GET['do']=="login" && isset($_POST['submitBtn']) &&
|
|||||||
if(Notification.permission !== "granted") {
|
if(Notification.permission !== "granted") {
|
||||||
Notification.requestPermission();
|
Notification.requestPermission();
|
||||||
}
|
}
|
||||||
|
<?php
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
|
||||||
|
function getInput() {
|
||||||
|
// IRC bouncer not running, warn
|
||||||
|
alert("You're not connected to the server, please connect your bouncer to send messages");
|
||||||
|
}
|
||||||
|
|
||||||
|
function keypressed(e) {
|
||||||
|
if(e.keyCode=='13'){
|
||||||
|
getInput();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body<?php if(!isset($_GET['register']) && !isset($_GET['logs']) && !isset($_GET['settings']) && isset($_SESSION['idleirc-user'])) { 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 $title . " " . $version;
|
||||||
if(isset($_SESSION['idleirc-user'])) { echo " ~ Connected to: " . $_SESSION['idleirc-servaddr'] . ":" . $_SESSION['idleirc-servport'] . " on " . $_SESSION['idleirc-channel']; } ?></div>
|
if(isset($_SESSION['idleirc-user'])) { echo " ~ Using: " . $_SESSION['idleirc-servaddr'] . ":" . $_SESSION['idleirc-servport'] . " on " . $_SESSION['idleirc-channel']; } ?></div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (isset($_GET['register'])) {
|
if (isset($_GET['register'])) {
|
||||||
|
@ -59,7 +59,8 @@ input, button, select, textarea{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.form table {
|
.form table {
|
||||||
width: 60%;
|
min-width: 250px;
|
||||||
|
max-width: 600px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
10
version.php
Normal file
10
version.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
///////
|
||||||
|
// IdleIRC - 2020
|
||||||
|
// (C) Chris Dorman, GPLv3
|
||||||
|
// https://github.com/Pentium44/idleirc
|
||||||
|
///////
|
||||||
|
|
||||||
|
$version = "1.3.3"; // IdleIRC version
|
||||||
|
|
||||||
|
?>
|
Loading…
x
Reference in New Issue
Block a user