4-digit year, %m -> month (01..12), %e -> day (01..31), %H -> hour (00..23), %M -> minute (00..59); see documentation of strftime() $datelang = "hu"; // language for formatted date output, de_DE -> german formatting; see http://www.php.net/manual/de/function.setlocale.php // WYSIWYG editor settings $pathtoscript = ""; // path from the file where mynews.inc.php is included to the folder where mynews.inc.php is actually stored in // with trailing slash if set! $wysiwyg = true; // turn wysiwyg editor on/off $filesPathFromDocRoot = "en/demo/mynews/files/"; // Path to the folder where all uploaded files from FCKeditor are saved. Relative to the document root. with trailing slash! // language setttings $txtsign = "add news item"; // menu item text $txtview = "view news items"; // menu item text $txtadmin = "admin"; $txtlogout = "logout"; $txtbadtitle = "missing title"; $txtbadstory = "missing story"; $txtbadteaser = "missing teaser"; $txtbaddate = "missing date"; $txtclickback = "Click BACK in your browser!"; $txterrors = "Following errors occurred:"; $txtedit = "edit"; $txtdelete = "delete"; $txtoptional = "optional"; // RSS 0.9 settings $rssEnable = true; // set to true if you want to offer rss feed of your news $rssTitle = "My Site's News"; // Title of teh RSS feed $rssDescription = "Get the lates news from my very interesting site!"; // Description of RSS feed $rssChannelUrl = "http://www.mysite.com"; // Base URL of your Site (doesn't really matter) $rssNewspageUrl = "http://www.mysite.com/news.php"; // URL of the site where you did the 'mynews.inc.php'-include $rssNumNews = 5; // Number of News to display in the rss feed $rssOrder = "ASC"; // order of news in the feed: ASC/DESC // ************************** STYLE DEFs ********************** // ************************************************************ // ************************************************************ // ****************** functions - don't touch ***************** // ************************************************************ $now = time(); class mdasort { var $data; var $sortkeys; function _sortcmp($a, $b, $i=0) { $r = strnatcmp($a[$this->sortkeys[$i][0]],$b[$this->sortkeys[$i][0]]); if ($this->sortkeys[$i][1] == "DESC") $r = $r * -1; if($r==0) { $i++; if ($this->sortkeys[$i]) $r = $this->_sortcmp($a, $b, $i); } return $r; } function msort() { if(count($this->sortkeys)) { usort($this->data,array($this,"_sortcmp")); } } } ?>