diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-06-14 19:30:48 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-06-14 19:30:48 +0000 |
| commit | 1f3d6e56694637387cc03dab6812c73042ab9463 (patch) | |
| tree | d35f8046e120338a6141fa11abd3d74669552c38 /modules | |
| parent | ab96491249e1e40cf8b32b973dcc4bddf72b6051 (diff) | |
| download | users-1f3d6e56694637387cc03dab6812c73042ab9463.tar.gz users-1f3d6e56694637387cc03dab6812c73042ab9463.tar.bz2 users-1f3d6e56694637387cc03dab6812c73042ab9463.zip | |
move more crud to shitbits and remove a couple of anciet tikiwiki modules
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_user_bookmarks.php | 89 | ||||
| -rw-r--r-- | modules/mod_user_bookmarks.tpl | 24 | ||||
| -rw-r--r-- | modules/mod_user_image_galleries.php | 17 | ||||
| -rw-r--r-- | modules/mod_user_image_galleries.tpl | 19 | ||||
| -rw-r--r-- | modules/mod_user_tasks.php | 47 | ||||
| -rw-r--r-- | modules/mod_user_tasks.tpl | 23 |
6 files changed, 0 insertions, 219 deletions
diff --git a/modules/mod_user_bookmarks.php b/modules/mod_user_bookmarks.php deleted file mode 100644 index 2b32216..0000000 --- a/modules/mod_user_bookmarks.php +++ /dev/null @@ -1,89 +0,0 @@ -<?php -/** - * $Header: /cvsroot/bitweaver/_bit_users/modules/Attic/mod_user_bookmarks.php,v 1.6 2006/04/11 13:10:19 squareing Exp $ - * - * Copyright (c) 2004 bitweaver.org - * Copyright (c) 2003 tikwiki.org - * Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. - * All Rights Reserved. See copyright.txt for details and a complete list of authors. - * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details - * - * $Id: mod_user_bookmarks.php,v 1.6 2006/04/11 13:10:19 squareing Exp $ - * @package users - * @subpackage modules - */ - -if( $gBitSystem->isFeatureActive( 'user_bookmarks' ) && $gBitUser->isRegistered() && $gBitUser->hasPermission( 'p_tidbits_create_bookmarks' ) ) { - /** - * required setup - */ - require_once( USERS_PKG_PATH.'bookmark_lib.php' ); - global $bookmarklib; - if (!is_object($bookmarklib)) { - bt(); - } - - $setup_parsed_uri = parse_url($_SERVER["REQUEST_URI"]); - if (isset($setup_parsed_uri["query"])) { - parse_str($setup_parsed_uri["query"], $setup_query_data); - } else { - $setup_query_data = array(); - } - - // check the session to get the parent or create parent =0 - $gBitSmarty->assign('ownurl', httpPrefix(). $_SERVER["REQUEST_URI"]); - if (!isset($_SESSION["bookmarks_parent"])) { - $_SESSION["bookmarks_parent"] = 0; - } - if (isset($_REQUEST["bookmarks_parent"])) { - $_SESSION["bookmarks_parent"] = $_REQUEST["bookmarks_parent"]; - } - $ownurl = httpPrefix(). $_SERVER["REQUEST_URI"]; - // Now build urls - if (strstr($ownurl, '?')) { - $modb_sep = '&'; - } else { - $modb_sep = '?'; - } - $gBitSmarty->assign('modb_sep', $modb_sep); - if (isset($_REQUEST["bookmark_removeurl"])) { - $bookmarklib->remove_url($_REQUEST["bookmark_removeurl"], $gBitUser->mUserId ); - header( 'Location: '.$_SERVER['HTTP_REFERER'] ); - die; - } elseif (isset($_REQUEST["bookmark_create_folder"])) { - $bookmarklib->add_folder($_SESSION["bookmarks_parent"], $_REQUEST['bookmark_urlname'], $gBitUser->mUserId ); - } elseif (isset($_REQUEST["bookmark_mark"])) { - if (empty($_REQUEST["bookmark_urlname"])) { - global $gContent, $gBitSystem; - if( $gContent && $gContent->getTitle() ) { - $_REQUEST["bookmark_urlname"] = $gContent->getTitle(); - } elseif( $gBitSystem->getBrowserTitle() ) { - $_REQUEST["bookmark_urlname"] = $gBitSystem->getBrowserTitle(); - } else { - $_REQUEST["bookmark_urlname"] = basename( $_SERVER['REQUEST_URI'] ); - } - } - if (!empty($_REQUEST["bookmark_urlname"])) { - $bookmarklib->replace_url(0, $_SESSION["bookmarks_parent"], $_REQUEST["bookmark_urlname"], $ownurl, $gBitUser->mUserId ); - } - } - $modb_p_info = $bookmarklib->get_folder($_SESSION["bookmarks_parent"], $gBitUser->mUserId ); - $modb_father = $modb_p_info["parent_id"]; - // get folders for the parent - $modb_urls = $bookmarklib->list_folder($_SESSION["bookmarks_parent"], 0, -1, 'name_asc', '', $gBitUser->mUserId ); - $gBitSmarty->assign('modb_urls', $modb_urls["data"]); - $modb_folders = $bookmarklib->get_child_folders($_SESSION["bookmarks_parent"], $gBitUser->mUserId ); - $modb_pf = array( - "name" => "..", - "folder_id" => $modb_father, - "parent_id" => 0, - "user_id" => $gBitUser->mUserId - ); - $modb_pfs = array($modb_pf); - if ($_SESSION["bookmarks_parent"]) { - $modb_folders = array_merge($modb_pfs, $modb_folders); - } - $gBitSmarty->assign('modb_folders', $modb_folders); -// get urls for the parent -} -?> diff --git a/modules/mod_user_bookmarks.tpl b/modules/mod_user_bookmarks.tpl deleted file mode 100644 index 4aea9f9..0000000 --- a/modules/mod_user_bookmarks.tpl +++ /dev/null @@ -1,24 +0,0 @@ -{* $Header: /cvsroot/bitweaver/_bit_users/modules/Attic/mod_user_bookmarks.tpl,v 1.5 2006/09/03 20:14:58 squareing Exp $ *} -{if $gBitSystem->isFeatureActive( 'user_bookmarks' ) and $gBitUser->isRegistered() and $gBitUser->hasPermission( 'p_tidbits_create_bookmarks' )} - {bitmodule title="$moduleTitle" name="user_bookmarks"} - <table class="module box"> - {section name=ix loop=$modb_folders} - <tr><td valign="bottom"> - <a href="{$ownurl}{$modb_sep}bookmarks_parent={$modb_folders[ix].folder_id}">{biticon ipackage="icons" iname="folder" iexplain="folder"}</a>{$modb_folders[ix].name} - </td></tr> - {/section} - {section name=ix loop=$modb_urls} - <tr><td> - <a href="{$modb_urls[ix].url}">{$modb_urls[ix].name}</a> - {if $gBitUser->hasPermission( 'p_tidbits_cache_bookmarks' ) and $urls[ix].datalen > 0} - (<a href="{$smarty.const.USERS_PKG_URL}cached_bookmark.php?urlid={$modb_urls[ix].url_id}">{tr}cache{/tr}</a>) - {/if} - <a href="{$ownurl}{$modb_sep}bookmark_removeurl={$modb_urls[ix].url_id}">{biticon ipackage="icons" iname="edit-delete" iexplain="remove"}</a> - </td></tr> - {/section} - </table><br /> - {form action=$ownurl} - <input type="submit" name="bookmark_mark" value="{tr}mark{/tr}" /> - {/form} - {/bitmodule} -{/if} diff --git a/modules/mod_user_image_galleries.php b/modules/mod_user_image_galleries.php deleted file mode 100644 index 70410ee..0000000 --- a/modules/mod_user_image_galleries.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php -/** - * $Header: /cvsroot/bitweaver/_bit_users/modules/Attic/mod_user_image_galleries.php,v 1.3 2005/08/01 18:42:03 squareing Exp $ - * - * Copyright (c) 2004 bitweaver.org - * Copyright (c) 2003 tikwiki.org - * Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. - * All Rights Reserved. See copyright.txt for details and a complete list of authors. - * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details - * - * $Id: mod_user_image_galleries.php,v 1.3 2005/08/01 18:42:03 squareing Exp $ - * @package users - * @subpackage modules - */ -$ranking = $gBitSystem->get_user_galleries($user, $module_rows); -$gBitSmarty->assign('modUserG', $ranking); -?> diff --git a/modules/mod_user_image_galleries.tpl b/modules/mod_user_image_galleries.tpl deleted file mode 100644 index f770552..0000000 --- a/modules/mod_user_image_galleries.tpl +++ /dev/null @@ -1,19 +0,0 @@ -{* $Header: /cvsroot/bitweaver/_bit_users/modules/Attic/mod_user_image_galleries.tpl,v 1.3 2005/08/07 17:46:48 squareing Exp $ *} -{if $user} - {if $gBitSystem->isFeatureActive( 'feature_galleries' )} - {bitmodule title="$moduleTitle" name="user_image_galleries"} - <table class="module box"> - {section name=ix loop=$modUserG} - <tr> - {if $nonums != 'y'} - <td valign="top">{$smarty.section.ix.index_next})</td> - {/if} - <td> - <a href="{$smarty.const.IMAGEGALS_PKG_URL}browse_gallery.php?gallery_id={$modUserG[ix].gallery_id}">{$modUserG[ix].name}</a> - </td> - </tr> - {/section} - </table> - {/bitmodule} - {/if} -{/if} diff --git a/modules/mod_user_tasks.php b/modules/mod_user_tasks.php deleted file mode 100644 index e26c4fe..0000000 --- a/modules/mod_user_tasks.php +++ /dev/null @@ -1,47 +0,0 @@ -<?php -/** - * $Header: /cvsroot/bitweaver/_bit_users/modules/Attic/mod_user_tasks.php,v 1.6 2006/04/11 13:10:19 squareing Exp $ - * - * Copyright (c) 2004 bitweaver.org - * Copyright (c) 2003 tikwiki.org - * Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. - * All Rights Reserved. See copyright.txt for details and a complete list of authors. - * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details - * - * $Id: mod_user_tasks.php,v 1.6 2006/04/11 13:10:19 squareing Exp $ - * @package users - * @subpackage modules - */ - -/** - * required setup - */ -require_once(USERS_PKG_PATH."task_lib.php"); -global $gBitUser, $gBitSystem, $tasklib; - -if ($gBitUser->getUserId() > 0 && $gBitSystem->isFeatureActive('feature_tasks') && $gBitUser->hasPermission( 'p_tidbits_use_tasks' )) { - if (isset($_SESSION['thedate'])) { - $pdate = $_SESSION['thedate']; - } else { - $pdate = $gBitSystem->getUTCTime(); - } - if (isset($_REQUEST["modTasksDel"])) { - foreach (array_keys($_REQUEST["modTasks"])as $task) { - $tasklib->remove_task($gBitUser->getUserId(), $task); - } - } - if (isset($_REQUEST["modTasksCom"])) { - foreach (array_keys($_REQUEST["modTasks"])as $task) { - $tasklib->complete_task($gBitUser->getUserId(), $task); - } - } - if (isset($_REQUEST["modTasksSave"])) { - $tasklib->replace_task($gBitUser->getUserId(), 0, $_REQUEST['modTasksTitle'], $_REQUEST['modTasksTitle'], $gBitSystem->getUTCTime(), 'o', 3, 0, 0); - } - $ownurl =/*httpPrefix().*/ $_SERVER["REQUEST_URI"]; - $gBitSmarty->assign('ownurl', $ownurl); - $tasks_use_dates = $gBitUser->getPreference('tasks_use_dates'); - $modTasks = $tasklib->list_tasks($gBitUser->getUserId(), 0, -1, 'priority_desc', '', $tasks_use_dates, $pdate); - $gBitSmarty->assign('modTasks', $modTasks['data']); -} -?> diff --git a/modules/mod_user_tasks.tpl b/modules/mod_user_tasks.tpl deleted file mode 100644 index 74af9b3..0000000 --- a/modules/mod_user_tasks.tpl +++ /dev/null @@ -1,23 +0,0 @@ -{* $Header: /cvsroot/bitweaver/_bit_users/modules/Attic/mod_user_tasks.tpl,v 1.5 2006/03/25 20:54:40 squareing Exp $ *} -{if $gBitSystem->isFeatureActive( 'feature_tasks' ) and $gBitUser->getUserId() > 0} - {bitmodule title="$moduleTitle" name="user_tasks"} - {form action=$ownurl} - <input type="text" name="modTasksTitle" /> - <input type="submit" name="modTasksSave" value="{tr}add{/tr}" /> - {/form} - {form action=$ownurl} - <table class="module box"> - {section name=ix loop=$modTasks} - <tr><td> - <input type="checkbox" name="modTasks[{$modTasks[ix].task_id}]" /> - <a {if $modTasks[ix].status eq 'c'}style="text-decoration:line-through;"{/if} href="{$smarty.const.USERS_PKG_URL}tasks.php?task_id={$modTasks[ix].task_id}">{$modTasks[ix].title|escape}</a> ({$modTasks[ix].percentage}%) - </td></tr> - {sectionelse} - <tr><td> </td></tr> - {/section} - </table> - <input type="submit" name="modTasksCom" value="{tr}Done{/tr}" /> - <input type="submit" name="modTasksDel" value="{tr}Delete{/tr}" /> - {/form} - {/bitmodule} -{/if} |
