Skip to content

Instantly share code, notes, and snippets.

View jasonmunro's full-sized avatar
💭
Working on a new release!

Jason Munro jasonmunro

💭
Working on a new release!
View GitHub Profile
diff --git a/lib/session_php.php b/lib/session_php.php
index 76f6af7..82ffe68 100644
--- a/lib/session_php.php
+++ b/lib/session_php.php
@@ -137,6 +137,7 @@ class Hm_PHP_Session extends Hm_Session {
if (array_key_exists('SERVER_NAME', $request->server) && strtolower($request->server['SERVER_NAME']) != 'localhost') {
$domain = $request->server['SERVER_NAME'];
}
+ $domain = 'www.mmc.lan';
return array($secure, $path, $domain);
diff --git a/lib/framework.php b/lib/framework.php
index ffd4265..f0988c0 100644
--- a/lib/framework.php
+++ b/lib/framework.php
@@ -38,6 +38,7 @@ if (!class_exists('Hm_Functions')) {
*/
class Hm_Functions {
public static function setcookie($name, $value, $lifetime=0, $path='', $domain='', $secure=false, $html_only='') {
+ elog(sprintf('name: %s value: %s lifetime: %s path: %s domain: %s secure: %s html_only: %s', $name, $value, $lifetime, $path, $domain, $secure, $html_only));
return setcookie($name, $value, $lifetime, $path, $domain, $secure, $html_only);
diff --git a/lib/request.php b/lib/request.php
index 213ddd1..517d13f 100644
--- a/lib/request.php
+++ b/lib/request.php
@@ -69,6 +69,7 @@ class Hm_Request {
$this->filter_request_input();
$this->get_other_request_details();
$this->files = $_FILES;
+ elog($_COOKIE);
$this->empty_super_globals();
diff --git a/lib/auth.php b/lib/auth.php
index ba739b7..d4ba47a 100644
--- a/lib/auth.php
+++ b/lib/auth.php
@@ -211,6 +211,7 @@ class Hm_Auth_IMAP extends Hm_Auth {
);
$imap->connect($this->imap_settings);
}
+ elog($imap->show_debug(true));
if ($imap->get_state() == 'authenticated') {