diff --git a/README.md b/README.md index 332921cf..1bb0f9d4 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,14 @@    - + # Bugfish Framework Documentation **Repository:** [Bugfish Framework on GitHub](https://github.com/bugfishtm/bugfish-framework) **Documentation:** [Bugfish Framework Documentation](https://bugfishtm.github.io/bugfish-framework/) - + **Comprehensive Documentation Available:** The Bugfish Framework project is proud to provide a detailed documentation that elucidates every function and class within the framework. This extensive documentation can be found at [bugfish-github.de](https://bugfishtm.github.io/bugfish-framework/) and offers invaluable insights into the operation of each component. @@ -79,7 +79,7 @@ Explore an array of JavaScript functions designed for universal integration acro If you want to support us, include this image somewhere in your project, that people can see this project has been created with help of this framework: - + ## Get Support diff --git a/_framework/README.md b/_framework/README.md index 059db39c..fe754f18 100644 --- a/_framework/README.md +++ b/_framework/README.md @@ -3,14 +3,14 @@    - + # Bugfish Framework Documentation **Repository:** [Bugfish Framework on GitHub](https://github.com/bugfishtm/bugfish-framework) **Documentation:** [Bugfish Framework Documentation](https://bugfishtm.github.io/bugfish-framework/) - + **Comprehensive Documentation Available:** The Bugfish Framework project is proud to provide a detailed documentation that elucidates every function and class within the framework. This extensive documentation can be found at [bugfish-github.de](https://bugfishtm.github.io/bugfish-framework/) and offers invaluable insights into the operation of each component. @@ -79,7 +79,7 @@ Explore an array of JavaScript functions designed for universal integration acro If you want to support us, include this image somewhere in your project, that people can see this project has been created with help of this framework: - + ## Get Support diff --git a/_framework/banner.jpg b/_framework/banner.jpg deleted file mode 100644 index e5ff85c6..00000000 Binary files a/_framework/banner.jpg and /dev/null differ diff --git a/_framework/bugfish-framework-banner.jpg b/_framework/bugfish-framework-banner.jpg new file mode 100644 index 00000000..c8a65432 Binary files /dev/null and b/_framework/bugfish-framework-banner.jpg differ diff --git a/_framework/logo.jpg b/_framework/bugfish-framework-logo-small.jpg similarity index 100% rename from _framework/logo.jpg rename to _framework/bugfish-framework-logo-small.jpg diff --git a/_images/logo_full.jpg b/_framework/bugfish-framework-logo.jpg similarity index 100% rename from _images/logo_full.jpg rename to _framework/bugfish-framework-logo.jpg diff --git a/_framework/classes/x_class_mail.php b/_framework/classes/x_class_mail.php index ead646ff..a4cd1d5e 100644 --- a/_framework/classes/x_class_mail.php +++ b/_framework/classes/x_class_mail.php @@ -97,8 +97,7 @@ function __construct($host, $port = 25, $auth_type = false, $user = false, $pass // Execute Mail Logging if Needed private function log_execute($subject, $content, $receiver, $attachments, $cc, $bcc, $success, $debug_message, $settings) { if($this->l_active) { if($success) { $success = 1; } - else { $success = 0; } - if($success AND $this->l_ok) { return false; } + else { $success = 0; } if($success AND !$this->l_ok) { return false; } $b[0]["type"] = "s"; $b[0]["value"] = @serialize(@$receiver); $b[1]["type"] = "s"; @@ -182,7 +181,7 @@ public function send($to, $toname, $title, $mailContent, $ishtml = false, $FOOTE return true; } else { // Mail Sending Fail - $this->log_execute($title, $realcontent, $to, $attachments, array(), array(), true, $tmp_mailer->ErrorInfo, false); + $this->log_execute($title, $realcontent, $to, $attachments, array(), array(), false, $tmp_mailer->ErrorInfo, false); $this->set_info($tmp_mailer->ErrorInfo); unset($tmp_mailer); return false; diff --git a/_framework/classes/x_class_user.php b/_framework/classes/x_class_user.php index e0dde2d0..960b1899 100644 --- a/_framework/classes/x_class_user.php +++ b/_framework/classes/x_class_user.php @@ -80,6 +80,8 @@ public function login_field_mail() { $this->login_field = "user_mail"; $this->ma public function mail_unique($bool = false) { $this->mail_unique = $bool; } private $user_unique = false; // User dont have to be unique if not in reference public function user_unique($bool = false) { $this->user_unique = $bool; } + private $spoof_check = false; // Enable IP Checking in Sessions for Hijacking Prevention? + public function ip_spoof_check($bool = true) { $this->spoof_check = $bool; } ## Logging Setup private $log_ip=false; // Log IP Adresses? public function log_ip($bool=false){$this->log_ip = $bool;} @@ -533,7 +535,17 @@ public function logout() { @$this->session_logout(); @$this->cookie_unset(); public function init() { if($this->login_field == "user_name") { $this->user_unique = true; } if($this->login_field == "user_mail") { $this->mail_unique = true; } - if(@$_SESSION[$this->sessions."x_users_ip"] == @$_SERVER["REMOTE_ADDR"] + $internal_ip_check = $this->spoof_check; + if($internal_ip_check) { + if(@$_SESSION[$this->sessions."x_users_ip"] == @$_SERVER["REMOTE_ADDR"]) { + $internal_ip_check = true; + } else { + $internal_ip_check = false; + } + } else { + $internal_ip_check = true; + } + if($internal_ip_check AND isset($_SESSION[$this->sessions."x_users_key"]) AND is_bool($_SESSION[$this->sessions."x_users_stay"]) AND is_numeric($_SESSION[$this->sessions."x_users_id"])) { diff --git a/_framework/classes/x_class_version.php b/_framework/classes/x_class_version.php index 42e2c441..aee3b0d7 100644 --- a/_framework/classes/x_class_version.php +++ b/_framework/classes/x_class_version.php @@ -28,6 +28,6 @@ class x_class_version { public $contact = "request@bugfish.eu"; public $website = "https://www.bugfish.eu"; public $github = "https://github.com/bugfishtm"; - public $version = "3.10"; + public $version = "3.20"; public $beta = false; } diff --git a/_images/banner.jpg b/_images/banner.jpg deleted file mode 100644 index e5ff85c6..00000000 Binary files a/_images/banner.jpg and /dev/null differ diff --git a/_images/bugfish-framework-banner.jpg b/_images/bugfish-framework-banner.jpg index e5ff85c6..c8a65432 100644 Binary files a/_images/bugfish-framework-banner.jpg and b/_images/bugfish-framework-banner.jpg differ diff --git a/_images/logo.jpg b/_images/bugfish-framework-logo-small.jpg similarity index 100% rename from _images/logo.jpg rename to _images/bugfish-framework-logo-small.jpg diff --git a/_releases/3.20.zip b/_releases/3.20.zip new file mode 100644 index 00000000..0963b2d2 Binary files /dev/null and b/_releases/3.20.zip differ diff --git a/docs/assets/css/stylesheet.css b/docs/assets/css/stylesheet.css index 82dd1bb6..a5ae3e1d 100644 --- a/docs/assets/css/stylesheet.css +++ b/docs/assets/css/stylesheet.css @@ -240,4 +240,5 @@ h1, h2, h3 { background: #242424 !important; } - } \ No newline at end of file + } + \ No newline at end of file diff --git a/docs/bugfish-framework-banner.jpg b/docs/bugfish-framework-banner.jpg index e5ff85c6..c8a65432 100644 Binary files a/docs/bugfish-framework-banner.jpg and b/docs/bugfish-framework-banner.jpg differ diff --git a/docs/classes/x_class_api.html b/docs/classes/x_class_api.html index 1278e7d0..06cba6df 100644 --- a/docs/classes/x_class_api.html +++ b/docs/classes/x_class_api.html @@ -20,7 +20,7 @@ - +