From 29422fa55379aa61a61019b832c83dab6d450264 Mon Sep 17 00:00:00 2001 From: cweiske Date: Sat, 3 Oct 2009 14:00:33 +0000 Subject: move files to new locations git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@386 b3834d28-1941-0410-a4f8-b48e95affb8f --- tagrename.php | 78 ----------------------------------------------------------- 1 file changed, 78 deletions(-) delete mode 100644 tagrename.php (limited to 'tagrename.php') diff --git a/tagrename.php b/tagrename.php deleted file mode 100644 index bead5e7..0000000 --- a/tagrename.php +++ /dev/null @@ -1,78 +0,0 @@ -getCurrentObjectUser(); - -/* Managing path info */ -list ($url, $tag) = explode('/', $_SERVER['PATH_INFO']); -//$tag = isset($_GET['query']) ? $_GET['query'] : NULL; -$template = 'tagrename.tpl'; - -if (POST_CONFIRM) { - if (trim(POST_OLD) != '') { - $old = trim(POST_OLD); - } else { - $old = NULL; - } - - if (trim(POST_NEW) != '') { - $new = trim(POST_NEW); - } else { - $new = NULL; - } - - if ( - !is_null($old) && - !is_null($new) && - $tagservice->renameTag($currentUser->getId(), $old, $new) && - $b2tservice->renameTag($currentUser->getId(), $old, $new) && - $tag2tagservice->renameTag($currentUser->getId(), $old, $new) - ) { - $tplVars['msg'] = T_('Tag renamed'); - header('Location: '. createURL('bookmarks', $currentUser->getUsername())); - } else { - $tplVars['error'] = T_('Failed to rename the tag'); - $template = 'error.500.tpl'; - } -} elseif (POST_CANCEL) { - header('Location: '. createURL('bookmarks', $currentUser->getUsername() .'/'. $tags)); -} else { - $tplVars['subtitle'] = T_('Rename Tag') .': '. $tag; - $tplVars['formaction'] = $_SERVER['SCRIPT_NAME'] .'/'. $tag; - $tplVars['referrer'] = $_SERVER['HTTP_REFERER']; - $tplVars['old'] = $tag; -} -$templateservice->loadTemplate($template, $tplVars); -?> -- cgit v1.2.3