Skip to content

Commit

Permalink
Update starline.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
directman66 committed Feb 14, 2019
1 parent a4fc495 commit 7ca09eb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/starline/starline.class.php
Expand Up @@ -7,9 +7,11 @@
* @author Wizard <sergejey@gmail.com>
* @copyright http://majordomo.smartliving.ru/ (c)
* @version 0.1 (wizard, 09:04:00 [Apr 04, 2016])
*/
//
//
ini_set ('display_errors', 'off');
class starline extends module {
/**
*
Expand Down Expand Up @@ -154,6 +156,14 @@ function admin(&$out) {
/// $out['STARLINETOKEN']=$this->config['STARLINETOKEN'];
$cmd_rec = SQLSelectOne("SELECT VALUE FROM starline_config where parametr='STARLINETOKEN'");
$out['STARLINETOKEN']=$cmd_rec['VALUE'];


if (strlen($cmd_rec['VALUE']=0))

{$out['NOTOKEN']="1";} else
{$out['NOTOKEN']="0";}



//$out['STARLINESESID']=$this->config['STARLINESESID'];
$cmd_rec = SQLSelectOne("SELECT VALUE FROM starline_config where parametr='STARLINESESID'");
Expand All @@ -173,6 +183,12 @@ function admin(&$out) {
//$out['STARLINEDEBUG']=$this->config['STARLINEDEBUG'];
$cmd_rec = SQLSelectOne("SELECT VALUE FROM starline_config where parametr='STARLINEDEBUG'");
$out['STARLINEDEBUG']=$cmd_rec['VALUE'];

if (strpos($cmd_rec['VALUE'], 'Captcha needed')>10)

{$out['NEEDCAPTCHA']="1";} else
{$out['NEEDCAPTCHA']="0";}



//$out['EVERY']=$this->config['EVERY'];
Expand Down

0 comments on commit 7ca09eb

Please sign in to comment.