'language.php';
}
define( 'DEFAULT_LANG', 'english' );
// end language
?>
Warning: Cannot modify header information - headers already sent by (output started at /home/tigresst/public_html/inspirations/config.php:88) in /home/tigresst/public_html/inspirations/include/init.php on line 28
ogout';
$lang['register'] = 'Register';
//end template files
//functions.php
$lang['pick_up_the_color'] = 'Click Here to Pick up the color';
// php
$lang['select_language'] = 'Select Language: ';
//QuickForm
$lang['invalid_information_entered']='Invalid information entered.';
$lang['please_correct_this_fields']='Please correct these fields.';
$lang['denotes_required_field'] = ' denotes required field';
?>
Warning: Cannot modify header information - headers already sent by (output started at /home/tigresst/public_html/inspirations/config.php:88) in /home/tigresst/public_html/inspirations/include/init.php on line 43
ECT COUNT(*) FROM '.dext('categories').' WHERE confirmed="1" AND PID='.$row['ID']).",20,".($maxwidth * 8).");\n";
if($count>0) {
SetUpMenu($row['ID'], $menuid.$i.'_', false, $maxwidth2);
}
$i++;
}
return ($maxwidth2 * 8).",".$ccount;
}
?>: message="%s" code=%d mode=%s level=%s prefix="%s" '.
'prepend="%s" append="%s" info="%s"]',
get_class($this), $this->message, $this->code,
implode("|", $modes), $levels[$this->level],
$this->error_message_prefix,
$this->error_prepend, $this->error_append,
$this->userinfo);
}
// }}}
}
register_shutdown_function("_PEAR_call_destructors");
/*
* Local Variables:
* mode: c++
* tab-width: 4
* c-basic-offset: 4
* End:
*/
?>
/**
* Get the number of rows in a result set.
*
* @return int the number of rows, or a DB error
*/
function numRows()
{
return $this->dbh->numRows($this->result);
}
/**
* Frees the resources allocated for this result set.
* @return int error code
*/
function free()
{
$err = $this->dbh->freeResult($this->result);
if(DB::isError($err)) {
return $err;
}
$this->result = false;
return true;
}
function tableInfo($mode = null)
{
return $this->dbh->tableInfo($this->result, $mode);
}
}
?>
e extended to return the objects HTML
*
* @access public
* @return string
* @abstract
*/
function toHtml()
{
return '';
} // end func toHtml
/**
* Displays the HTML to the screen
*
* @access public
*/
function display()
{
print $this->toHtml();
} // end func display
} // end class HTML_Common
?> QUICKFORM_INVALID_ELEMENT_NAME => 'element already exists',
QUICKFORM_INVALID_PROCESS => 'process callback does not exist',
QUICKFORM_DEPRECATED => 'method is deprecated',
QUICKFORM_INVALID_DATASOURCE => 'datasource is not an object'
);
}
// If this is an error object, then grab the corresponding error code
if (HTML_QuickForm::isError($value)) {
$value = $value->getCode();
}
// return the textual error message corresponding to the code
return isset($errorMessages[$value]) ? $errorMessages[$value] : $errorMessages[QUICKFORM_ERROR];
} // end func errorMessage
// }}}
} // end class HTML_QuickForm
class HTML_QuickForm_Error extends PEAR_Error {
// {{{ properties
/**
* Prefix for all error messages
* @var string
*/
var $error_message_prefix = 'QuickForm Error: ';
// }}}
// {{{ constructor
/**
* Creates a quickform error object, extending the PEAR_Error class
*
* @param int $code the error code
* @param int $mode the reaction to the error, either return, die or trigger/callback
* @param int $level intensity of the error (PHP error code)
* @param mixed $debuginfo any information that can inform user as to nature of the error
*/
function HTML_QuickForm_Error($code = QUICKFORM_ERROR, $mode = PEAR_ERROR_RETURN,
$level = E_USER_NOTICE, $debuginfo = null)
{
if (is_int($code)) {
$this->PEAR_Error(HTML_QuickForm::errorMessage($code), $code, $mode, $level, $debuginfo);
} else {
$this->PEAR_Error("Invalid error code: $code", QUICKFORM_ERROR, $mode, $level, $debuginfo);
}
}
// }}}
} // end class HTML_QuickForm_Error
?>stract
*/
function finishGroup(&$group)
{
return;
} // end func finishGroup
} // end class HTML_QuickForm_Renderer
?>
urn void
*/
function setElementStyle($elementName, $styleName = null)
{
if (is_array($elementName)) {
$this->_elementStyles = array_merge($this->_elementStyles, $elementName);
} else {
$this->_elementStyles[$elementName] = $styleName;
}
}
}
?> }
}
?>or message manually. In this case, use {$form.group.error}
* where you want the formated error message to appear in the form.
*
* @param string The element error template
* @access public
* @return void
*/
function setErrorTemplate($template)
{
$this->_error = $template;
} // end func setErrorTemplate
}
?>plate
}
?>smarty_include_tpl_file'], $_smarty_compile_path))
{
include($_smarty_compile_path);
}
// pop the local vars off the front of the stack
array_shift($this->_config);
$this->_inclusion_depth--;
if ($this->debugging) {
// capture time for debugging info
$_params = array();
require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
$this->_smarty_debug_info[$included_tpls_idx]['exec_time'] = smarty_core_get_microtime($_params, $this) - $debug_start_time;
}
if ($this->caching) {
$this->_cache_info['template'][$params['smarty_include_tpl_file']] = true;
}
}
/**
* get or set an array of cached attributes for function that is
* not cacheable
* @return array
*/
function &_smarty_cache_attrs($cache_serial, $count) {
$_cache_attrs =& $this->_cache_info['cache_attrs'][$cache_serial][$count];
if ($this->_cache_including) {
/* return next set of cache_attrs */
$_return = current($_cache_attrs);
next($_cache_attrs);
return $_return;
} else {
/* add a reference to a new set of cache_attrs */
$_cache_attrs[] = array();
return $_cache_attrs[count($_cache_attrs)-1];
}
}
/**
* wrapper for include() retaining $this
* @return mixed
*/
function _include($filename, $once=false, $params=null)
{
if ($once) {
return include_once($filename);
} else {
return include($filename);
}
}
/**
* wrapper for eval() retaining $this
* @return mixed
*/
function _eval($code, $params=null)
{
return eval($code);
}
/**#@-*/
}
/* vim: set expandtab: */
?>
r hostname or 'localhost.localdomain' if unknown.
* @access private
* @return string
*/
function ServerHostname() {
if ($this->Hostname != "")
$result = $this->Hostname;
elseif ($this->ServerVar('SERVER_NAME') != "")
$result = $this->ServerVar('SERVER_NAME');
else
$result = "localhost.localdomain";
return $result;
}
/**
* Returns a message in the appropriate language.
* @access private
* @return string
*/
function Lang($key) {
if(count($this->language) < 1)
$this->SetLanguage("en"); // set the default language
if(isset($this->language[$key]))
return $this->language[$key];
else
return "Language string failed to load: " . $key;
}
/**
* Returns true if an error occurred.
* @return bool
*/
function IsError() {
return ($this->error_count > 0);
}
/**
* Changes every end of line from CR or LF to CRLF.
* @access private
* @return string
*/
function FixEOL($str) {
$str = str_replace("\r\n", "\n", $str);
$str = str_replace("\r", "\n", $str);
$str = str_replace("\n", $this->LE, $str);
return $str;
}
/**
* Adds a custom header.
* @return void
*/
function AddCustomHeader($custom_header) {
$this->CustomHeader[] = explode(":", $custom_header, 2);
}
}
?>
ation object for required properties.
// If presentation property has not been set, set it from menu object or default values.
function _checkProperties()
{
foreach($this->defaultProperties as $prop => $pdefault) {
if (!isset($this->$prop)) {
// Use Menu object property if set, otherwise use default
if (isset($this->menu->$prop)) $this->$prop = $this->menu->$prop;
else $this->$prop = $pdefault;
}
}
} // _checkProperties
} // class HTML_TreeMenu_Presentation
////////////////////////////////////////////////////////////////////////////////////
?>
echo "Version: " . $this->get_version() . $newline;
echo "Agent: " . $this->get_agent() . $newline;
} // showMe
} // class ccBrowserInfo
?>
property for nodes with matching links.
// Note: when called the first time $node is the menu object
function _expandSelected( &$node, $key )
{
if ($key == (!empty($node->link) ? $node->link : null)) {
$node->selected = true;
}
for ($i=0; $iitems); $i++) $this->_expandSelected( $node->items[$i], $key );
} // _expandSelected
} // class HTML_TreeMenu_ListboxXL
////////////////////////////////////////////////////////////////////////////////////
?>
);
}
// }}}
// {{{ errorNative()
function errorNative()
{
return $this->raiseError(DB_ERROR_NOT_CAPABLE);
}
// }}}
// {{{ nextId()
function nextId($seq_name, $ondemand = true)
{
return $this->raiseError(DB_ERROR_NOT_CAPABLE);
}
// }}}
// {{{ createSequence()
function createSequence($seq_name)
{
return $this->raiseError(DB_ERROR_NOT_CAPABLE);
}
// }}}
// {{{ dropSequence()
function dropSequence($seq_name)
{
return $this->raiseError(DB_ERROR_NOT_CAPABLE);
}
// }}}
// {{{ tableInfo()
function tableInfo($result, $mode = null)
{
return $this->raiseError(DB_ERROR_NOT_CAPABLE);
}
// }}}
}
?>
$res['order'][$res[$i]['name']] = $i;
}
if ($mode & DB_TABLEINFO_ORDERTABLE) {
$res['ordertable'][$res[$i]['table']][$res[$i]['name']] = $i;
}
}
}
// free the result only if we were called on a table
if ($table) {
@mysql_free_result($id);
}
return $res;
}
// }}}
// TODO/wishlist:
// simpleFetch
// simpleGet
// longReadlen
// binmode
}
?>
leName:$styleType\} */", $content);
}
}
$content = str_replace("images/", SITE."images/", $content);
$t->assign( 'css', '' );
?>else {
$name = $this->getName();
if (!strpos($name, '[')) {
return array($name => $value);
} else {
$valueAry = array();
$myIndex = "['" . str_replace(array(']', '['), array('', "']['"), $name) . "']";
eval("\$valueAry$myIndex = \$value;");
return $valueAry;
}
}
}
// }}}
} // end class HTML_QuickForm_element
?> $optCount; $i++) {
if ($v == $this->_options[$i]['attr']['value']) {
$cleanValue[] = $v;
break;
}
}
}
} else {
$cleanValue = $value;
}
if (is_array($cleanValue) && !$this->getMultiple()) {
return $this->_prepareValue($cleanValue[0], $assoc);
} else {
return $this->_prepareValue($cleanValue, $assoc);
}
}
// }}}
} //end class HTML_QuickForm_select
?>
ickForm_select
?>
s;
}
}
/* vim: set expandtab: */
?>
echo \'{/nocache:'
. $this->_cache_serial . '#' . ($this->_nocache_count++)
. '}\'; };';
}
/**
* push opening tag-name, file-name and line-number on the tag-stack
* @param string the opening tag's name
*/
function _push_tag($open_tag)
{
array_push($this->_tag_stack, array($open_tag, $this->_current_line_no));
}
/**
* pop closing tag-name
* raise an error if this stack-top doesn't match with the closing tag
* @param string the closing tag's name
* @return string the opening tag's name
*/
function _pop_tag($close_tag)
{
$message = '';
if (count($this->_tag_stack)>0) {
list($_open_tag, $_line_no) = array_pop($this->_tag_stack);
if ($close_tag == $_open_tag) {
return $_open_tag;
}
if ($close_tag == 'if' && ($_open_tag == 'else' || $_open_tag == 'elseif' )) {
return $this->_pop_tag($close_tag);
}
if ($close_tag == 'section' && $_open_tag == 'sectionelse') {
$this->_pop_tag($close_tag);
return $_open_tag;
}
if ($close_tag == 'foreach' && $_open_tag == 'foreachelse') {
$this->_pop_tag($close_tag);
return $_open_tag;
}
if ($_open_tag == 'else' || $_open_tag == 'elseif') {
$_open_tag = 'if';
} elseif ($_open_tag == 'sectionelse') {
$_open_tag = 'section';
} elseif ($_open_tag == 'foreachelse') {
$_open_tag = 'foreach';
}
$message = " expected {/$_open_tag} (opened line $_line_no).";
}
$this->_syntax_error("mismatched tag {/$close_tag}.$message",
E_USER_ERROR, __FILE__, __LINE__);
}
}
/**
* compare to values by their string length
*
* @access private
* @param string $a
* @param string $b
* @return 0|-1|1
*/
function _smarty_sort_length($a, $b)
{
if($a == $b)
return 0;
if(strlen($a) == strlen($b))
return ($a > $b) ? -1 : 1;
return (strlen($a) > strlen($b)) ? -1 : 1;
}
/* vim: set et: */
?>
$tplVars['Menu'] = $example010->toHTML();
}
?>' == $type) {
return null;
} else {
return parent::exportValue($submitValues, $assoc);
}
}
// }}}
} // end class HTML_QuickForm_element
?>
);
} // end func accept
// }}}
} //end class HTML_QuickForm_hidden
?>
} //end func setMaxlength
// }}}
} //end class HTML_QuickForm_text
?>
?>
tValues), $assoc);
}
// }}}
} //end class HTML_QuickForm_submit
?>
?>
gFrmR->toArray());
//*/
//$intVars['content'] = $t->fetch('search.tpl');
?>