Commit 81353b4e authored by lrargerich's avatar lrargerich

Everything but the girl, read the changelog ;-)

parent 1cc6d3f1
......@@ -1006,6 +1006,7 @@ tiki/lib/commentslib.php -text
tiki/lib/dcs/dcslib.php -text
tiki/lib/diff.php -text
tiki/lib/directory/dirlib.php -text
tiki/lib/ephemerides/ephlib.php -text
tiki/lib/faqs/faqlib.php -text
tiki/lib/filegals/filegallib.php -text
tiki/lib/games/gamelib.php -text
......@@ -1097,6 +1098,7 @@ tiki/lib/taglines/taglinelib.php -text
tiki/lib/tar.class.php -text
tiki/lib/tasks/tasklib.php -text
tiki/lib/templates/templateslib.php -text
tiki/lib/themecontrol/tcontrol.php -text
tiki/lib/tiki-js.js -text
tiki/lib/tikilib.php -text
tiki/lib/trackers/trackerlib.php -text
......@@ -1147,6 +1149,7 @@ tiki/modules/mod-comm_received_objects.php -text
tiki/modules/mod-directory_last_sites.php -text
tiki/modules/mod-directory_stats.php -text
tiki/modules/mod-directory_top_sites.php -text
tiki/modules/mod-eph.php -text
tiki/modules/mod-featured_links.php -text
tiki/modules/mod-forums_best_voted_topics.php -text
tiki/modules/mod-forums_last_topics.php -text
......@@ -1280,6 +1283,7 @@ tiki/templates/modules/mod-comm_received_objects.tpl -text
tiki/templates/modules/mod-directory_last_sites.tpl -text
tiki/templates/modules/mod-directory_stats.tpl -text
tiki/templates/modules/mod-directory_top_sites.tpl -text
tiki/templates/modules/mod-eph.tpl -text
tiki/templates/modules/mod-featured_links.tpl -text
tiki/templates/modules/mod-forums_best_voted_topics.tpl -text
tiki/templates/modules/mod-forums_last_topics.tpl -text
......@@ -1461,6 +1465,8 @@ tiki/templates/tiki-edit_structure.tpl -text
tiki/templates/tiki-edit_submission.tpl -text
tiki/templates/tiki-edit_templates.tpl -text
tiki/templates/tiki-editpage.tpl -text
tiki/templates/tiki-eph.tpl -text
tiki/templates/tiki-eph_admin.tpl -text
tiki/templates/tiki-faq_questions.tpl -text
tiki/templates/tiki-featured_link.tpl -text
tiki/templates/tiki-file_galleries.tpl -text
......@@ -1541,6 +1547,9 @@ tiki/templates/tiki-survey_stats.tpl -text
tiki/templates/tiki-survey_stats_survey.tpl -text
tiki/templates/tiki-take_quiz.tpl -text
tiki/templates/tiki-take_survey.tpl -text
tiki/templates/tiki-theme_control.tpl -text
tiki/templates/tiki-theme_control_objects.tpl -text
tiki/templates/tiki-theme_control_sections.tpl -text
tiki/templates/tiki-top_bar.tpl -text
tiki/templates/tiki-upload_file.tpl -text
tiki/templates/tiki-upload_image.tpl -text
......@@ -1692,6 +1701,8 @@ tiki/tiki-edit_submission.php -text
tiki/tiki-edit_templates.php -text
tiki/tiki-editdrawing.php -text
tiki/tiki-editpage.php -text
tiki/tiki-eph.php -text
tiki/tiki-eph_admin.php -text
tiki/tiki-error.php -text
tiki/tiki-export_wiki_pages.php -text
tiki/tiki-faq_questions.php -text
......@@ -1793,7 +1804,11 @@ tiki/tiki-survey_stats.php -text
tiki/tiki-survey_stats_survey.php -text
tiki/tiki-take_quiz.php -text
tiki/tiki-take_survey.php -text
tiki/tiki-tc.php -text
tiki/tiki-tests.php -text
tiki/tiki-theme_control.php -text
tiki/tiki-theme_control_objects.php -text
tiki/tiki-theme_control_sections.php -text
tiki/tiki-upload_file.php -text
tiki/tiki-upload_image.php -text
tiki/tiki-usage_chart -text
......@@ -1811,6 +1826,7 @@ tiki/tiki-view_banner.php -text
tiki/tiki-view_blog.php -text
tiki/tiki-view_blog_post.php -text
tiki/tiki-view_cache.php -text
tiki/tiki-view_eph.php -text
tiki/tiki-view_faq.php -text
tiki/tiki-view_forum.php -text
tiki/tiki-view_forum_thread.php -text
......
Version 1.6 -Tau Ceti-
* [NEW] Theme control center: if activated you can control the theme
by section, by category or by specific object.
* [NEW] Ephemerides feature: admin can set up images/texts for specific
dates, users can browse using the calendar to get the images/texts for
any day. A module is provided to display the image/text for the day,
if many one is choosen randomly.
* [NEW] User files section, users can store personal files and download
them whenever they want, files are only visible to the user. Admin can
control a disk quota for each user.
* [NEW] User Notepads section added, users can sketch notes view them and remove them,
the notes can be viewed as parsed wiki pages or unparsed. Useful to keep memos,
user personal information, etc.
......
## THIS FILE IS JUST A HELP FOR DEVELOPERS IT SHOULDNT BE USED IN A 1.5 DISTRIBUTION
drop table if exists tiki_theme_control_sections;
create table tiki_theme_control_sections(
section varchar(250) not null,
theme varchar(250) not null,
primary key(section)
);
drop table if exists tiki_theme_control_objects;
create table tiki_theme_control_objects(
objId varchar(250) not null,
type varchar(250) not null,
name varchar(250) not null,
theme varchar(250) not null,
primary key(objId)
);
drop table if exists tiki_theme_control_categs;
create table tiki_theme_control_categs(
categId integer(12) not null,
theme varchar(250) not null,
primary key(categId)
);
drop table if exists tiki_eph;
create table tiki_eph(
ephId integer(12) not null auto_increment,
title varchar(250),
isFile char(1),
filename varchar(250),
filetype varchar(250),
filesize varchar(250),
data longblob,
textdata longblob,
publish integer(14),
hits integer(10),
primary key(ephId)
);
INSERT INTO users_permissions(permName,type,permDesc,level) VALUES ('tiki_p_eph_admin','tiki','Can admin ephemerides','editor');
alter table users_permissions add level varchar(80);
INSERT INTO users_permissions(permName,type,permDesc,level) VALUES ('tiki_p_userfiles','user','Can upload personal files','registered');
......
......@@ -388,7 +388,6 @@ class CategLib extends TikiLib {
}
$this->categorize($catObjectId,$categId);
}
// FUNCTIONS TO CATEGORIZE SPECIFIC OBJECTS END ////
function get_child_categories($categId)
......@@ -406,6 +405,17 @@ class CategLib extends TikiLib {
}
return $ret;
}
function get_all_categories()
{
$query =" select name,categId from tiki_categories order by name";
$result = $this->query($query);
$ret=Array();
while($res = $result->fetchRow(DB_FETCHMODE_ASSOC)) {
$ret[]=$res;
}
return $ret;
}
......
<?php
class EphLib extends TikiLib {
function EphLib($db)
{
# this is probably uneeded now
if(!$db) {
die("Invalid db object passed to EphLib constructor");
}
$this->db = $db;
}
function get_eph($ephId)
{
$query = "select * from tiki_eph where ephId='$ephId'";
$result = $this->query($query);
$res = $result->fetchRow(DB_FETCHMODE_ASSOC);
return $res;
}
function replace_eph($ephId,$title,$filename,$filetype,$filesize,$data,$date,$textdata)
{
$title = addslashes($title);
$filename = addslashes($filename);
$data = addslashes($data);
$textdata = addslashes($textdata);
$now = date("U");
if($ephId) {
if($data) {
$query = "update tiki_eph set
title='$title',
filename = '$filename',
filetype = '$filetype',
filesize = '$filesize',
data = '$data',
publish = '$date',
textdata = '$textdata'
where ephId=$ephId";
$this->query($query);
} else {
$query = "update tiki_eph set
title='$title',
publish = '$date',
textdata = '$textdata'
where ephId=$ephId";
$this->query($query);
}
} else {
$query = "insert into tiki_eph(title,filename,filetype,filesize,data,hits,publish,textdata)
values('$title','$filename','$filetype','$filesize','$data',0,$date,'$textdata')";
$this->query($query);
}
}
function remove_eph($ephId)
{
$query = "delete from tiki_eph where ephId=$ephId";
$this->query($query);
}
function list_eph($offset,$maxRecords,$sort_mode,$find,$date=0)
{
$sort_mode = str_replace("_desc"," desc",$sort_mode);
$sort_mode = str_replace("_asc"," asc",$sort_mode);
if($find) {
$mid=" where (filename like '%".$find."%' or title like '%".$find."%')";
} else {
$mid="";
}
if($date) {
if($mid) {
$mid.=" and publish=$date ";
} else {
$mid = " where publish=$date ";
}
}
$query = "select ephId,textdata,title,filename,filetype,filesize,publish,hits from tiki_eph $mid order by $sort_mode limit $offset,$maxRecords";
$query_cant = "select count(*) from tiki_eph $mid";
$result = $this->query($query);
$cant = $this->getOne($query_cant);
$ret = Array();
while($res = $result->fetchRow(DB_FETCHMODE_ASSOC)) {
$ret[] = $res;
}
$retval = Array();
$retval["data"] = $ret;
$retval["cant"] = $cant;
return $retval;
}
}
$ephlib= new EphLib($dbTiki);
?>
\ No newline at end of file
......@@ -330,14 +330,7 @@ class QuizLib extends TikiLib {
}
function get_quiz($quizId)
{
$query = "select * from tiki_quizzes where quizId=$quizId";
$result = $this->query($query);
if(!$result->numRows()) return false;
$res = $result->fetchRow(DB_FETCHMODE_ASSOC);
return $res;
}
function get_quiz_question($questionId)
{
......
<?php
class ThemeControlLib extends TikiLib {
function ThemeControlLib($db)
{
# this is probably uneeded now
if(!$db) {
die("Invalid db object passed to ThemeControlLib constructor");
}
$this->db = $db;
}
function tc_assign_category($categId,$theme)
{
$this->tc_remove_cat($categId);
$query="replace into tiki_theme_control_categs(categId,theme) values($categId,'$theme')";
$this->query($query);
}
function tc_assign_section($section,$theme)
{
$this->tc_remove_section($section);
$query="replace into tiki_theme_control_sections(section,theme) values('$section','$theme')";
$this->query($query);
}
function tc_assign_object($objId,$theme,$type,$name)
{
$name=addslashes($name);
$objId=md5($type.$objId);
$this->tc_remove_object($objId);
$query="replace into tiki_theme_control_objects(objId,theme,type,name) values('$objId','$theme','$type','$name')";
$this->query($query);
}
function tc_get_theme_by_categ($categId)
{
if($this->getOne("select count(*) from tiki_theme_control_categs where categId=$categId")) {
return $this->getOne("select theme from tiki_theme_control_categs where categId=$categId");
} else {
return '';
}
}
function tc_get_theme_by_section($section)
{
if($this->getOne("select count(*) from tiki_theme_control_sections where section='$section'")) {
return $this->getOne("select theme from tiki_theme_control_sections where section='$section'");
} else {
return '';
}
}
function tc_get_theme_by_object($type,$objId)
{
$objId=md5($type.$objId);
if($this->getOne("select count(*) from tiki_theme_control_objects where type='$type' and objId='$objId'")) {
return $this->getOne("select theme from tiki_theme_control_objects where type='$type' and objId='$objId'");
} else {
return '';
}
}
function tc_list_categories($offset,$maxRecords,$sort_mode,$find)
{
$sort_mode = str_replace("_desc"," desc",$sort_mode);
$sort_mode = str_replace("_asc"," asc",$sort_mode);
if($find) {
$mid=" and (theme like '%".$find."%')";
} else {
$mid="";
}
$query = "select tc.categId,tc.name,theme from tiki_theme_control_categs ttt,tiki_categories tc where ttt.categId=tc.categId $mid order by $sort_mode limit $offset,$maxRecords";
$query_cant = "select count(*) from tiki_theme_control_categs ttt,tiki_categories tc where ttt.categId=tc.categId $mid";
$result = $this->query($query);
$cant = $this->getOne($query_cant);
$ret = Array();
while($res = $result->fetchRow(DB_FETCHMODE_ASSOC)) {
$ret[] = $res;
}
$retval = Array();
$retval["data"] = $ret;
$retval["cant"] = $cant;
return $retval;
}
function tc_list_sections($offset,$maxRecords,$sort_mode,$find)
{
$sort_mode = str_replace("_desc"," desc",$sort_mode);
$sort_mode = str_replace("_asc"," asc",$sort_mode);
if($find) {
$mid=" where (theme like '%".$find."%')";
} else {
$mid="";
}
$query = "select * from tiki_theme_control_sections $mid order by $sort_mode limit $offset,$maxRecords";
$query_cant = "select count(*) from tiki_theme_control_sections $mid";
$result = $this->query($query);
$cant = $this->getOne($query_cant);
$ret = Array();
while($res = $result->fetchRow(DB_FETCHMODE_ASSOC)) {
$ret[] = $res;
}
$retval = Array();
$retval["data"] = $ret;
$retval["cant"] = $cant;
return $retval;
}
function tc_list_objects($type,$offset,$maxRecords,$sort_mode,$find)
{
$sort_mode = str_replace("_desc"," desc",$sort_mode);
$sort_mode = str_replace("_asc"," asc",$sort_mode);
if($find) {
$mid=" and (theme like '%".$find."%')";
} else {
$mid="";
}
$query = "select * from tiki_theme_control_objects where type='$type' $mid order by $sort_mode limit $offset,$maxRecords";
$query_cant = "select count(*) from tiki_theme_control_objects where type='$type' $mid";
$result = $this->query($query);
$cant = $this->getOne($query_cant);
$ret = Array();
while($res = $result->fetchRow(DB_FETCHMODE_ASSOC)) {
$ret[] = $res;
}
$retval = Array();
$retval["data"] = $ret;
$retval["cant"] = $cant;
return $retval;
}
function tc_remove_cat($cat)
{
$query = "delete from tiki_theme_control_categs where categId=$cat";
$this->query($query);
}
function tc_remove_section($section)
{
$query = "delete from tiki_theme_control_sections where section='$section'";
$this->query($query);
}
function tc_remove_object($objId)
{
$query = "delete from tiki_theme_control_objects where objId='$objId'";
$this->query($query);
}
}
$tcontrollib= new ThemeControlLib($dbTiki);
?>
......@@ -244,6 +244,15 @@ class TikiLib {
return $ret;
}
/*shared*/ function get_quiz($quizId)
{
$query = "select * from tiki_quizzes where quizId=$quizId";
$result = $this->query($query);
if(!$result->numRows()) return false;
$res = $result->fetchRow(DB_FETCHMODE_ASSOC);
return $res;
}
/*shared*/ function compute_quiz_stats()
{
$query = "select quizId from tiki_user_quizzes";
......@@ -1518,6 +1527,8 @@ class TikiLib {
function replace_submission ($title,$authorName,$topicId,$useImage,$imgname,$imgsize,$imgtype,$imgdata,$heading,$body,$publishDate,$user,$subId,$image_x,$image_y,$type,$rating=0)
{
global $smarty;
global $dbTiki;
include_once('lib/notifications/notificationlib.php');
$title = addslashes($title);
$heading = addslashes($heading);
$authorName = addslashes($authorName);
......@@ -1564,7 +1575,7 @@ class TikiLib {
}
$query = "select max(subId) from tiki_submissions where created = $now and title='$title' and hash='$hash'";
$id=$this->getOne($query);
$emails = $this->get_mail_events('article_submitted','*');
$emails = $notificationlib->get_mail_events('article_submitted','*');
$foo = parse_url($_SERVER["REQUEST_URI"]);
$machine =httpPrefix().$foo["path"];
foreach ($emails as $email)
......@@ -4600,6 +4611,8 @@ function parse_data($data)
function update_page($pageName,$edit_data,$edit_comment, $edit_user, $edit_ip,$description='')
{
global $smarty;
global $dbTiki;
include_once('lib/notifications/notificationlib.php');
$this->invalidate_cache($pageName);
// Collect pages before modifying edit_data (see update of links below)
$pages = $this->get_pages($edit_data);
......@@ -4630,7 +4643,7 @@ function parse_data($data)
// Update the pages table with the new version of this page
$version += 1;
//$edit_data = addslashes($edit_data);
$emails = $this->get_mail_events('wiki_page_changes','wikipage'.$pageName);
$emails = $notificationlib->get_mail_events('wiki_page_changes','wikipage'.$pageName);
foreach($emails as $email) {
$smarty->assign('mail_site',$_SERVER["SERVER_NAME"]);
$smarty->assign('mail_page',$pageName);
......
......@@ -60,7 +60,7 @@ if(isset($_REQUEST['send'])) {
// must have a subject or body non-empty (or both)
if(empty($_REQUEST['subject'])&&empty($_REQUEST['body'])) {
$smarty->assign('message','ERROR: Either the subject or body must be non-empty');
$smarty->display('tiki.tpl');
$smarty->display("styles/$style_base/tiki.tpl");
die;
}
......@@ -90,7 +90,7 @@ if(isset($_REQUEST['send'])) {
} else {
$message = 'ERROR: No valid users to send the message';
$smarty->assign('message',$message);
$smarty->display('tiki.tpl');
$smarty->display("styles/$style_base/tiki.tpl");
die;
}
......@@ -109,6 +109,6 @@ $section='user_messages';
include_once('tiki-section_options.php');
include_once('tiki-mytiki_shared.php');
$smarty->display('tiki.tpl');
$smarty->display("styles/$style_base/tiki.tpl");
?>
\ No newline at end of file
......@@ -55,7 +55,7 @@ if(isset($_REQUEST['send'])) {
// must have a subject or body non-empty (or both)
if(empty($_REQUEST['subject'])&&empty($_REQUEST['body'])) {
$smarty->assign('message','ERROR: Either the subject or body must be non-empty');
$smarty->display('tiki.tpl');
$smarty->display("styles/$style_base/tiki.tpl");
die;
}
......@@ -114,7 +114,7 @@ if(isset($_REQUEST['send'])) {
} else {
$message = 'ERROR: No valid users to send the message';
$smarty->assign('message',$message);
$smarty->display('tiki.tpl');
$smarty->display("styles/$style_base/tiki.tpl");
die;
}
......@@ -132,6 +132,6 @@ include_once('tiki-section_options.php');
include_once('tiki-mytiki_shared.php');
$smarty->display('tiki.tpl');
$smarty->display("styles/$style_base/tiki.tpl");
?>
\ No newline at end of file
......@@ -80,5 +80,5 @@ include_once('tiki-mytiki_shared.php');
$smarty->assign('mid','messu-mailbox.tpl');
$smarty->display('tiki.tpl');
$smarty->display("styles/$style_base/tiki.tpl");
?>
\ No newline at end of file
......@@ -26,7 +26,7 @@ $smarty->assign('legend','');
if(!isset($_REQUEST['msgId'])) {
$smarty->assign('legend','No more messages');
$smarty->assign('mid','messu-read.tpl');
$smarty->display('tiki.tpl');
$smarty->display("styles/$style_base/tiki.tpl");
die;
}
......@@ -62,5 +62,5 @@ $section='user_messages';
include_once('tiki-section_options.php');
$smarty->assign('mid','messu-read.tpl');
$smarty->display('tiki.tpl');
$smarty->display("styles/$style_base/tiki.tpl");
?>
\ No newline at end of file
<?php
include_once("lib/ephemerides/ephlib.php");
if(isset($_SESSION['thedate'])) {
$modephpdate = $_SESSION['thedate'];
} else {
$modephpdate = date("U");
}
$channels = $ephlib->list_eph(0,-1,'title_desc','',$modephpdate);
if(count($channels['data'])) {
$modephpick=rand(0,count($channels['data'])-1);
$modephdata=$channels['data'][$modephpick];
} else {
$modephdata='';
}
$smarty->assign('modephdata',$modephdata);
?>
\ No newline at end of file
......@@ -10,22 +10,6 @@
{/if}
{/if}
{if $user}
&nbsp;<a href="tiki-my_tiki.php" class="linkmenu">{tr}My Tiki{/tr}</a><br/>
{/if}
<!--
{if $user}
{if $feature_messages eq 'y' and $tiki_p_messages eq 'y'}
&nbsp;<a href="messu-mailbox.php" class="linkmenu">{tr}messages{/tr}</a><br/>
{/if}
{if $feature_tasks}
&nbsp;<a href="tiki-user_tasks.php" class="linkmenu">{tr}tasks{/tr}</a><br/>
{/if}
{/if}
-->
{if $feature_contact eq 'y'}
&nbsp;<a href="tiki-contact.php" class="linkmenu">{tr}contact us{/tr}</a><br/>
{/if}
......@@ -42,10 +26,43 @@
&nbsp;<a href="tiki-list_games.php" class="linkmenu">{tr}games{/tr}</a><br/>
{/if}
{if $feature_webmail eq 'y' and $tiki_p_use_webmail eq 'y'}
&nbsp;<a href="tiki-webmail.php" class="linkmenu">{tr}webmail{/tr}</a><br/>
{if $user}
<div class="separator"><a class='separator' href="javascript:setCookie('mymenu','c');hide('mymenu');">[-]</a>
<a href="tiki-my_tiki.php" class="separator">{tr}MyTiki{/tr}</a>
<a class='separator' href="javascript:setCookie('mymenu','o');show('mymenu');">[+]</a></div>
<div id='mymenu' style="{$mnu_mymenu}">
{if $feature_userPreferences eq 'y'}
&nbsp;<a href="tiki-user_preferences.php" class="linkmenu">{tr}Preferences{/tr}</a><br/>
{/if}
{if $feature_messages eq 'y' and $tiki_p_messages eq 'y'}
&nbsp;<a href="messu-mailbox.php" class="linkmenu">{tr}Messages{/tr}</a><br/>
{/if}
{if $feature_tasks eq 'y' and $tiki_p_tasks eq 'y'}
&nbsp;<a href="tiki-user_tasks.php" class="linkmenu">{tr}Tasks{/tr}</a><br/>
{/if}
{if $feature_user_bookmarks eq 'y' and $tiki_p_create_bookmarks eq 'y'}
&nbsp;<a href="tiki-user_bookmarks.php" class="linkmenu">{tr}Bookmarks{/tr}</a><br/>
{/if}
{if $user_assigned_modules eq 'y' and $tiki_p_configure_modules eq 'y'}
&nbsp;<a href="tiki-user_assigned_modules.php" class="linkmenu">{tr}Modules{/tr}</a><br/>
{/if}
{if $feature_newsreader eq 'y' and $tiki_p_newsreader eq 'y'}
&nbsp;<a href="tiki-newsreader_servers.php" class="linkmenu">{tr}Newsreader{/tr}</a><br/>
{/if}
{if $feature_webmail eq 'y' and $tiki_p_use_webmail eq 'y'}
&nbsp;<a href="tiki-webmail.php" class="linkmenu">{tr}Webmail{/tr}</a><br/>
{/if}
{if $feature_notepad eq 'y' and $tiki_p_notepad eq 'y'}
&nbsp;<a href="tiki-user_notepad.php" class="linkmenu">{tr}Notepad{/tr}</a><br/>
{/if}
{if $feature_userfiles eq 'y' and $tiki_p_userfiles eq 'y'}
&nbsp;<a href="tiki-userfiles.php" class="linkmenu">{tr}My files{/tr}</a><br/>
{/if}
</div>
{/if}
{if $feature_wiki eq 'y'}
<div class="separator"><a class='separator' href="javascript:setCookie('wikimenu','c');hide('wikimenu');">[-]</a> <a class='separator' href='tiki-index.php'>{tr}Wiki{/tr}</a> <a class='separator' href="javascript:setCookie('wikimenu','o');show('wikimenu');">[+]</a></div>
<div id="wikimenu" style="{$mnu_wikimenu}">
......@@ -274,6 +291,20 @@
</div>
{/if}
{if $feature_eph eq 'y'}
<div class="separator"><a class='separator' href="javascript:setCookie('ephmenu','c');hide('ephmenu');">[-]</a>
<a href="tiki-eph.php" class="separator">{tr}Ephemerides{/tr}</a>
<a class='separator' href="javascript:setCookie('ephmenu','o');show('ephmenu');">[+]</a></div>
<div id='ephmenu' style="{$mnu_ephmenu}">
{if $tiki_p_eph_admin eq 'y'}
&nbsp;<a href="tiki-eph_admin.php" class="linkmenu">{tr}Admin{/tr}</a><br/>
{/if}
</div>
{/if}
{if $tiki_p_admin eq 'y' or
$tiki_p_admin_chat eq 'y' or
$tiki_p_admin_categories eq 'y' or
......@@ -305,6 +336,7 @@
&nbsp;<a href="tiki-backup.php" class="linkmenu">{tr}Backups{/tr}</a><br/>
&nbsp;<a href="tiki-admin_notifications.php" class="linkmenu">{tr}Mail notifications{/tr}</a><br/>
&nbsp;<a href="tiki-search_stats.php" class="linkmenu">{tr}Search stats{/tr}</a><br/>
&nbsp;<a href="tiki-theme_control.php" class="linkmenu">{tr}Theme control{/tr}</a><br/>
{/if}
{if $tiki_p_admin_chat eq 'y'}
&nbsp;<a href="tiki-admin_chat.php" class="linkmenu">{tr}Chat{/tr}</a><br/>
......
{php}
include("lib/class_calendar.php");
include_once("lib/class_calendar.php");
//if(!isset($_SESSION["thedate"])) {
$day = date("d");
$mon = date("m");
$year = date("Y");
//}
//if(isset($_SESSION["thedate"])) {
// $day=date("d",$_SESSION["thedate"]);
// $mon=date("m",$_SESSION["thedate"]);
// $year=date("Y",$_SESSION["thedate"]);
//}
if(isset($_SESSION["thedate"])) {
$day=date("d",$_SESSION["thedate"]);
$mon=date("m",$_SESSION["thedate"]);
$year=date("Y",$_SESSION["thedate"]);
}
if(isset($_REQUEST["day"])) {
$day = $_REQUEST["day"];
}
......@@ -19,7 +19,6 @@ if(isset($_REQUEST["mon"])) {
if(isset($_REQUEST["year"])) {
$year = $_REQUEST["year"];
}
$thedate = mktime(23,59,59,$mon,$day,$year);