Specify rslight version in config.inc.php
This commit is contained in:
parent
468fd105a3
commit
ca0a7053fa
|
@ -2,6 +2,8 @@
|
|||
|
||||
include "../common/config.inc.php";
|
||||
|
||||
$rslight_version = "0.7.2";
|
||||
|
||||
ini_set('memory_limit','1536M');
|
||||
|
||||
/* Config file name should be the basename
|
||||
|
@ -30,7 +32,9 @@ $CONFIG = include($config_file);
|
|||
$logdir=$spooldir.'/log';
|
||||
$lockdir=$spooldir.'/lock';
|
||||
|
||||
ini_set('error_reporting', E_ERROR );
|
||||
if(!file_exists($config_dir.'/debug')) {
|
||||
ini_set('error_reporting', E_ERROR );
|
||||
}
|
||||
|
||||
/* Permanent configuration changes */
|
||||
@mkdir($logdir,0755,'recursive');
|
||||
|
|
|
@ -197,7 +197,7 @@ function check_rate_limit($name,$set=0,$gettime=0) {
|
|||
function message_post($subject,$from,$newsgroups,$ref,$body,$encryptthis=null,$encryptto=null,$authname=null,$followupto=null) {
|
||||
global $server,$port,$send_poster_host,$text_error,$CONFIG;
|
||||
global $www_charset,$config_dir,$spooldir;
|
||||
global $msgid_generate,$msgid_fqdn;
|
||||
global $msgid_generate,$msgid_fqdn,$rslight_version;
|
||||
flush();
|
||||
$myconfig = false;
|
||||
if(file_exists($config_dir.'/userconfig/'.$authname.'.config')) {
|
||||
|
@ -273,7 +273,7 @@ function message_post($subject,$from,$newsgroups,$ref,$body,$encryptthis=null,$e
|
|||
fputs($ns,"Mime-Version: 1.0\r\n");
|
||||
fputs($ns,"Content-Type: text/plain; charset=".$www_charset."; format=flowed\r\n");
|
||||
fputs($ns,"Content-Transfer-Encoding: 8bit\r\n");
|
||||
fputs($ns,"User-Agent: Rocksolid Light (www.novabbs.com/getrslight)\r\n");
|
||||
fputs($ns,"User-Agent: Rocksolid Light ".$rslight_version."\r\n");
|
||||
if ($send_poster_host)
|
||||
@fputs($ns,'X-HTTP-Posting-Host: '.gethostbyaddr(getenv("REMOTE_ADDR"))."\r\n");
|
||||
if (($ref!=false) && (count($ref)>0)) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
echo '<center>';
|
||||
echo '<font size="1em">';
|
||||
echo '<i>rocksolid light</i> 0.7.2';
|
||||
echo '<i>rocksolid light</i> '.$rslight_version;
|
||||
echo '<br />';
|
||||
echo '<a href="https://github.com/novabbs/rocksolid-light" target=_blank>clearnet</a>';
|
||||
echo '<a href="http://rslight.i2p/getrslight" target=_blank>i2p</a>';
|
||||
|
|
Loading…
Reference in New Issue