Changeset 685 for trunk/lib/HTML.inc.php


Ignore:
Timestamp:
May 23, 2019 6:40:04 PM (5 years ago)
Author:
anonymous
Message:

Various minor changes:

  • Allow $app->ohref() with no value to return a link to the current page (REQUEST_URI but without the QUERY_STRING).
  • Add some classes to HTML output to support Zurb Foundation 6.
  • Stop prepending scheme://host:port to URLs because we can't guess hte port at a proxy.
  • Include Auth_Simple.inc.php (copied from control.strangecode.com). $auth->login() now requires a callback funtion to verify credentials.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/HTML.inc.php

    r666 r685  
    6464        if (!isset($buttons[0]) || !is_array($buttons[0])) {
    6565            $app =& App::getInstance();
    66             $app->logMsg(sprintf('Incorrect parameters passed to HTML::buttons(): %s', getDump($buttons)), LOG_DEBUG, __FILE__, __LINE__);
     66            $app->logMsg(sprintf('Incorrect parameters passed to %s: %s', __METHHOD__, getDump($options)), LOG_NOTICE, __FILE__, __LINE__);
    6767            return false;
    6868        }
     
    237237        if (!isset($options) || !is_array($options)) {
    238238            $app =& App::getInstance();
    239             $app->logMsg(sprintf('Incorrect parameters passed to HTML::printSelectOptions(): %s', getDump($options)), LOG_DEBUG, __FILE__, __LINE__);
     239            $app->logMsg(sprintf('Incorrect parameters passed to %s: %s', __METHHOD__, getDump($options)), LOG_NOTICE, __FILE__, __LINE__);
    240240            return false;
    241241        }
Note: See TracChangeset for help on using the changeset viewer.