Commit 812002da authored by awcolley's avatar awcolley

fix line terminators

parent 267c123d
<?php
if($feature_directory == 'y') {
<?php
if($feature_directory == 'y') {
$ranking = $tikilib->dir_list_all_valid_sites2(0,$module_rows,'created_desc','');
$smarty->assign('modLastdirSites',$ranking["data"]);
$smarty->assign('modLastdirSites',$ranking["data"]);
}
?>
\ No newline at end of file
<?php
if($feature_directory == 'y') {
<?php
if($feature_directory == 'y') {
$ranking = $tikilib->dir_stats();
$smarty->assign('modDirStats',$ranking);
$smarty->assign('modDirStats',$ranking);
}
?>
\ No newline at end of file
<?php
if($feature_directory == 'y') {
<?php
if($feature_directory == 'y') {
$ranking = $tikilib->dir_list_all_valid_sites2(0,$module_rows,'hits_desc','');
$smarty->assign('modTopdirSites',$ranking["data"]);
$smarty->assign('modTopdirSites',$ranking["data"]);
}
?>
\ No newline at end of file
<?php
if($user) {
$modUnread = $tikilib->user_unread_messages($user);
$smarty->assign('modUnread',$modUnread);
}
<?php
if($user) {
$modUnread = $tikilib->user_unread_messages($user);
$smarty->assign('modUnread',$modUnread);
}
?>
\ No newline at end of file
<?php
//
// +---------------------------------------------------------------------+
// | phpOpenTracker - The Website Traffic and Visitor Analysis Solution |
// +---------------------------------------------------------------------+
// | Copyright (c) 2000-2003 Sebastian Bergmann. All rights reserved. |
// +---------------------------------------------------------------------+
// | This source file is subject to the phpOpenTracker Software License, |
// | Version 1.0, that is bundled with this package in the file LICENSE. |
// | If you did not receive a copy of this file, you may either read the |
// | license online at http://phpOpenTracker.de/license/1_0.txt, or send |
// | a note to license@phpOpenTracker.de, so we can mail you a copy. |
// +---------------------------------------------------------------------+
// | Author: Sebastian Bergmann <sebastian@phpOpenTracker.de> |
// +---------------------------------------------------------------------+
//
// $Id: phpOpenTracker.php,v 1.1 2003-04-25 18:38:06 lrargerich Exp $
//
if (!defined('POT_INCLUDE_PATH')) {
define('POT_INCLUDE_PATH', dirname(__FILE__) . '/lib/phpOpenTracker/');
}
if (!defined('POT_CONFIG_PATH')) {
define('POT_CONFIG_PATH', POT_INCLUDE_PATH . 'conf/');
}
require_once POT_INCLUDE_PATH . 'Config.php';
require_once POT_INCLUDE_PATH . 'Container.php';
require_once POT_INCLUDE_PATH . 'DB.php';
require_once POT_INCLUDE_PATH . 'Version.php';
/**
* phpOpenTracker
*
* @author Sebastian Bergmann <sebastian@phpOpenTracker.de>
* @version $Revision: 1.1 $
* @since phpOpenTracker 1.0.0
*/
class phpOpenTracker {
/**
* Wrapper for phpOpenTracker_API::get().
*
* @param array $parameters
* @return mixed
* @access public
* @static
*/
function &get($parameters) {
include_once POT_INCLUDE_PATH . 'API.php';
$api = &phpOpenTracker_API::singleton();
return $api->get($parameters);
}
/**
* Handles an error according to the debug_level setting.
*
* @param string $errorMessage
* @param optional integer $errorType
* @return boolean
* @access public
* @static
*/
function handleError($errorMessage, $errorType = E_USER_WARNING) {
$config = &phpOpenTracker_Config::singleton();
$prefix = 'phpOpenTracker ' . (($errorType == E_USER_ERROR) ? 'Error' : 'Warning') . ': ';
if ($config['debug_level'] > 0) {
echo $prefix . $errorMessage;
}
if ($config['log_errors']) {
@error_log(
sprintf(
"%s: %s\n",
date('d-m-Y H:i:s', time()),
$errorMessage
),
3,
dirname(__FILE__) . '/' . 'error.log'
);
}
if ($config['exit_on_fatal_errors'] && $errorType == E_USER_ERROR) {
exit;
}
return false;
}
/**
* Invokes the phpOpenTracker Logging Engine.
*
* @param optional array $parameters
* @return boolean
* @access public
* @static
*/
function log($parameters = array()) {
include_once POT_INCLUDE_PATH . 'LoggingEngine.php';
$le = new phpOpenTracker_LoggingEngine($parameters);
return $le->log(
isset($parameters['add_data']) ? $parameters['add_data'] : array()
);
}
/**
* Wrapper for phpOpenTracker_API::plot().
*
* @param array $parameters
* @return mixed
* @access public
* @static
*/
function plot($parameters) {
include_once POT_INCLUDE_PATH . 'API.php';
$api = &phpOpenTracker_API::singleton();
$api->plot($parameters);
}
}
//
// "phpOpenTracker essenya, gul meletya;
// Sebastian carneron PHP."
//
?>
<?php
//
// +---------------------------------------------------------------------+
// | phpOpenTracker - The Website Traffic and Visitor Analysis Solution |
// +---------------------------------------------------------------------+
// | Copyright (c) 2000-2003 Sebastian Bergmann. All rights reserved. |
// +---------------------------------------------------------------------+
// | This source file is subject to the phpOpenTracker Software License, |
// | Version 1.0, that is bundled with this package in the file LICENSE. |
// | If you did not receive a copy of this file, you may either read the |
// | license online at http://phpOpenTracker.de/license/1_0.txt, or send |
// | a note to license@phpOpenTracker.de, so we can mail you a copy. |
// +---------------------------------------------------------------------+
// | Author: Sebastian Bergmann <sebastian@phpOpenTracker.de> |
// +---------------------------------------------------------------------+
//
// $Id: phpOpenTracker.php,v 1.2 2003-06-19 21:18:52 awcolley Exp $
//
if (!defined('POT_INCLUDE_PATH')) {
define('POT_INCLUDE_PATH', dirname(__FILE__) . '/lib/phpOpenTracker/');
}
if (!defined('POT_CONFIG_PATH')) {
define('POT_CONFIG_PATH', POT_INCLUDE_PATH . 'conf/');
}
require_once POT_INCLUDE_PATH . 'Config.php';
require_once POT_INCLUDE_PATH . 'Container.php';
require_once POT_INCLUDE_PATH . 'DB.php';
require_once POT_INCLUDE_PATH . 'Version.php';
/**
* phpOpenTracker
*
* @author Sebastian Bergmann <sebastian@phpOpenTracker.de>
* @version $Revision: 1.2 $
* @since phpOpenTracker 1.0.0
*/
class phpOpenTracker {
/**
* Wrapper for phpOpenTracker_API::get().
*
* @param array $parameters
* @return mixed
* @access public
* @static
*/
function &get($parameters) {
include_once POT_INCLUDE_PATH . 'API.php';
$api = &phpOpenTracker_API::singleton();
return $api->get($parameters);
}
/**
* Handles an error according to the debug_level setting.
*
* @param string $errorMessage
* @param optional integer $errorType
* @return boolean
* @access public
* @static
*/
function handleError($errorMessage, $errorType = E_USER_WARNING) {
$config = &phpOpenTracker_Config::singleton();
$prefix = 'phpOpenTracker ' . (($errorType == E_USER_ERROR) ? 'Error' : 'Warning') . ': ';
if ($config['debug_level'] > 0) {
echo $prefix . $errorMessage;
}
if ($config['log_errors']) {
@error_log(
sprintf(
"%s: %s\n",
date('d-m-Y H:i:s', time()),
$errorMessage
),
3,
dirname(__FILE__) . '/' . 'error.log'
);
}
if ($config['exit_on_fatal_errors'] && $errorType == E_USER_ERROR) {
exit;
}
return false;
}
/**
* Invokes the phpOpenTracker Logging Engine.
*
* @param optional array $parameters
* @return boolean
* @access public
* @static
*/
function log($parameters = array()) {
include_once POT_INCLUDE_PATH . 'LoggingEngine.php';
$le = new phpOpenTracker_LoggingEngine($parameters);
return $le->log(
isset($parameters['add_data']) ? $parameters['add_data'] : array()
);
}
/**
* Wrapper for phpOpenTracker_API::plot().
*
* @param array $parameters
* @return mixed
* @access public
* @static
*/
function plot($parameters) {
include_once POT_INCLUDE_PATH . 'API.php';
$api = &phpOpenTracker_API::singleton();
$api->plot($parameters);
}
}
//
// "phpOpenTracker essenya, gul meletya;
// Sebastian carneron PHP."
//
?>
<html style="width: 380px; height: 185px;">
<head><title>About HTMLArea</title>
<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript">
function closeAbout() {
__dlg_close(null);
}
</script>
<style>
html,body,textarea { font-family: tahoma,verdana,arial; font-size: 11px;
padding: 0px; margin: 0px; }
tt { font-size: 120%; }
body { padding: 5px; background: ButtonFace; color: ButtonText; }
</style></head>
<body onload="__dlg_init()">
<div style="font-family: arial black, arial; font-size: 28px;
letter-spacing: -2px;">HTMLArea 3.0</div>
<p>A free WYSIWYG editor replacement for <tt>&lt;textarea&gt;</tt> fields.</p>
<p>For full source code and docs, visit:<br />
<a href="http://www.interactivetools.com/products/htmlarea/" target="_blank"
>http://www.interactivetools.com/products/htmlarea/</a></p>
<button style="float: right" type="button" onclick="closeAbout()">Close</button>
<p>&copy; 2002, 2003 interactivetools.com, inc. All Rights Reserved.</p>
</body></html>
<html style="width: 380px; height: 185px;">
<head><title>About HTMLArea</title>
<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript">
function closeAbout() {
__dlg_close(null);
}
</script>
<style>
html,body,textarea { font-family: tahoma,verdana,arial; font-size: 11px;
padding: 0px; margin: 0px; }
tt { font-size: 120%; }
body { padding: 5px; background: ButtonFace; color: ButtonText; }
</style></head>
<body onload="__dlg_init()">
<div style="font-family: arial black, arial; font-size: 28px;
letter-spacing: -2px;">HTMLArea 3.0</div>
<p>A free WYSIWYG editor replacement for <tt>&lt;textarea&gt;</tt> fields.</p>
<p>For full source code and docs, visit:<br />
<a href="http://www.interactivetools.com/products/htmlarea/" target="_blank"
>http://www.interactivetools.com/products/htmlarea/</a></p>
<button style="float: right" type="button" onclick="closeAbout()">Close</button>
<p>&copy; 2002, 2003 interactivetools.com, inc. All Rights Reserved.</p>
</body></html>
<html>
<html>
</html>
\ No newline at end of file
<html style="width:300px; Height: 60px;">
<head>
<title>Select Phrase</title>
<script language="javascript">
var myTitle = window.dialogArguments;
document.title = myTitle;
function returnSelected() {
var idx = document.all.textPulldown.selectedIndex;
var text = document.all.textPulldown[idx].text;
window.returnValue = text; // set return value
window.close(); // close dialog
}
</script>
</head>
<body bgcolor="#FFFFFF" topmargin=15 leftmargin=0>
<form method=get onSubmit="Set(document.all.ColorHex.value); return false;">
<div align=center>
<select name="textPulldown">
<option>The quick brown</option>
<option>fox jumps over</option>
<option>the lazy dog.</option>
</select>
<input type="button" value=" Go " onClick="returnSelected()">
</div>
</form>
<html style="width:300px; Height: 60px;">
<head>
<title>Select Phrase</title>
<script language="javascript">
var myTitle = window.dialogArguments;
document.title = myTitle;
function returnSelected() {
var idx = document.all.textPulldown.selectedIndex;
var text = document.all.textPulldown[idx].text;
window.returnValue = text; // set return value
window.close(); // close dialog
}
</script>
</head>
<body bgcolor="#FFFFFF" topmargin=15 leftmargin=0>
<form method=get onSubmit="Set(document.all.ColorHex.value); return false;">
<div align=center>
<select name="textPulldown">
<option>The quick brown</option>
<option>fox jumps over</option>
<option>the lazy dog.</option>
</select>
<input type="button" value=" Go " onClick="returnSelected()">
</div>
</form>
</body></html>
\ No newline at end of file
<html>
<head>
<title>Editor Help</title>
<style>
body, td, p, div { font-family: arial; font-size: x-small; }
</style>
</head>
<body>
<h2>Editor Help<hr></h2>
Todo...
</body>
<html>
<head>
<title>Editor Help</title>
<style>
body, td, p, div { font-family: arial; font-size: x-small; }
</style>
</head>
<body>
<h2>Editor Help<hr></h2>
Todo...
</body>
</html>
\ No newline at end of file
<html>
<head><title>Fullscreen Editor</title>
<style type="text/css">
@import url(../htmlarea.css);
html, body { margin: 0px; border: 0px; background-color: buttonface; } </style>
<script type="text/javascript" src="../htmlarea.js"></script>
<script type="text/javascript" src="../htmlarea-lang-en.js"></script>
<script type="text/javascript" src="../dialog.js"></script>
<script type="text/javascript">
var parent_object = opener.HTMLArea._object;
var editor = null; // to be initialized later [ function init() ]
/* ---------------------------------------------------------------------- *\
Function :
Description :
\* ---------------------------------------------------------------------- */
function _CloseOnEsc(ev) {
if (document.all) {
// IE
ev = window.event;
}
if (ev.keyCode == 27) {
// update_parent();
window.close();
return;
}
}
/* ---------------------------------------------------------------------- *\
Function : cloneObject
Description : copy an object by value instead of by reference
Usage : var newObj = cloneObject(oldObj);
\* ---------------------------------------------------------------------- */
function cloneObject(obj) {
var newObj = new Object;
// check for array objects
if (obj.constructor.toString().indexOf('function Array(') == 1) {
newObj = obj.constructor();
}
for (var n in obj) {
var node = obj[n];
if (typeof node == 'object') { newObj[n] = cloneObject(node); }
else { newObj[n] = node; }
}
return newObj;
}
/* ---------------------------------------------------------------------- *\
Function : resize_editor
Description : resize the editor when the user resizes the popup
\* ---------------------------------------------------------------------- */
function resize_editor() { // resize editor to fix window
var newHeight;
if (document.all) {
// IE
newHeight = document.body.offsetHeight - editor._toolbar.offsetHeight;
if (newHeight < 0) { newHeight = 0; }
} else {
// Gecko
newHeight = window.innerHeight - editor._toolbar.offsetHeight;
}
editor._textArea2.style.height = editor._iframe.style.height = newHeight + "px";
}
/* ---------------------------------------------------------------------- *\
Function : init
Description : run this code on page load
\* ---------------------------------------------------------------------- */
function init() {
var config = cloneObject( parent_object.config );
config.editorURL = "../";
config.width = "100%";
config.height = "auto";
// change maximize button to minimize button
config.btnList["popupeditor"] = [ function() { window.close(); },
'Minimize Editor', 'fullscreen_minimize.gif', true ];
// generate editor and resize it
editor = new HTMLArea("editor", config);
editor.generate();
resize_editor();
editor._iframe.style.width = "100%";
editor._textArea2.style.width = "100%";
// set child window contents and event handlers, after a small delay
setTimeout(function() {
editor.setHTML(parent_object.getInnerHTML());
// switch mode if needed
if (parent_object._mode == "textmode") { editor.setMode("textmode"); }
// continuously update parent editor window
setInterval(update_parent, 500);
// setup event handlers
document.body.onkeypress = _CloseOnEsc;
editor._doc.body.onkeypress = _CloseOnEsc;
editor._textArea2.onkeypress = _CloseOnEsc;
window.onresize = resize_editor;
}, 333); // give it some time to meet the new frame
}
/* ---------------------------------------------------------------------- *\
Function : update_parent
Description : update parent window editor field with contents from child window
\* ---------------------------------------------------------------------- */
function update_parent() {
// use the fast version
parent_object.setHTML(editor.getInnerHTML());
}
</script>
</head>
<body scroll="no" onload="init()" onunload="update_parent()">
<form style="margin: 0px; border: 1px solid; border-color: threedshadow threedhighlight threedhighlight threedshadow;">
<textarea name="editor" id="editor" style="width:100%; height:300px">&nbsp;</textarea>
</form>
</body></html>
<html>
<head><title>Fullscreen Editor</title>
<style type="text/css">
@import url(../htmlarea.css);
html, body { margin: 0px; border: 0px; background-color: buttonface; } </style>
<script type="text/javascript" src="../htmlarea.js"></script>
<script type="text/javascript" src="../htmlarea-lang-en.js"></script>
<script type="text/javascript" src="../dialog.js"></script>
<script type="text/javascript">
var parent_object = opener.HTMLArea._object;
var editor = null; // to be initialized later [ function init() ]
/* ---------------------------------------------------------------------- *\
Function :
Description :
\* ---------------------------------------------------------------------- */
function _CloseOnEsc(ev) {
if (document.all) {
// IE
ev = window.event;
}
if (ev.keyCode == 27) {
// update_parent();
window.close();
return;
}
}
/* ---------------------------------------------------------------------- *\
Function : cloneObject
Description : copy an object by value instead of by reference
Usage : var newObj = cloneObject(oldObj);
\* ---------------------------------------------------------------------- */
function cloneObject(obj) {
var newObj = new Object;
// check for array objects
if (obj.constructor.toString().indexOf('function Array(') == 1) {
newObj = obj.constructor();
}
for (var n in obj) {
var node = obj[n];
if (typeof node == 'object') { newObj[n] = cloneObject(node); }
else { newObj[n] = node; }
}
return newObj;
}
/* ---------------------------------------------------------------------- *\
Function : resize_editor
Description : resize the editor when the user resizes the popup
\* ---------------------------------------------------------------------- */
function resize_editor() { // resize editor to fix window
var newHeight;
if (document.all) {
// IE
newHeight = document.body.offsetHeight - editor._toolbar.offsetHeight;
if (newHeight < 0) { newHeight = 0; }
} else {
// Gecko
newHeight = window.innerHeight - editor._toolbar.offsetHeight;
}
editor._textArea2.style.height = editor._iframe.style.height = newHeight + "px";
}
/* ---------------------------------------------------------------------- *\
Function : init
Description : run this code on page load
\* ---------------------------------------------------------------------- */
function init() {
var config = cloneObject( parent_object.config );
config.editorURL = "../";
config.width = "100%";
config.height = "auto";
// change maximize button to minimize button
config.btnList["popupeditor"] = [ function() { window.close(); },
'Minimize Editor', 'fullscreen_minimize.gif', true ];