Skip to content

Commit

Permalink
Autoupdater Robot
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteNews committed Apr 21, 2015
1 parent 2fe785f commit 406e6a5
Show file tree
Hide file tree
Showing 45 changed files with 3,889 additions and 1,645 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
Сutenews 2.0 Сutenews
============ ============


CuteNews is a FREE, powerful and easy-to-use news management system based on flat files CuteNews is a FREE, powerful and easy-to-use news management system based on flat files
Expand Down
10 changes: 2 additions & 8 deletions core/captcha/captcha.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ function CreateImage($DisableHeaders = FALSE)
{ {
list($text, $reply) = $this->GetCaptchaText(); list($text, $reply) = $this->GetCaptchaText();


$_SESS[$this->session_var] = $reply; $_SESSION[$this->session_var] = $reply;

if (!$DisableHeaders)
cn_save_session();


echo '<html><body style="font-size: 42px; font-family: Arial, Tahoma, Serif;">'.$reply.'</body></html>'; echo '<html><body style="font-size: 42px; font-family: Arial, Tahoma, Serif;">'.$reply.'</body></html>';
} }
Expand All @@ -122,10 +119,7 @@ function CreateImage($DisableHeaders = FALSE)
$fontcfg = $this->fonts[array_rand($this->fonts)]; $fontcfg = $this->fonts[array_rand($this->fonts)];
$this->WriteText($text, $fontcfg); $this->WriteText($text, $fontcfg);


$_SESS[$this->session_var] = $reply; $_SESSION[$this->session_var] = $reply;

if (!$DisableHeaders)
cn_save_session();


/** Transformations */ /** Transformations */
$this->WaveImage(); $this->WaveImage();
Expand Down
Loading

0 comments on commit 406e6a5

Please sign in to comment.