mysql_query($sql, $db);
write_to_log(AT_ADMIN_LOG_DELETE, 'member_track', mysql_affected_rows($db), $sql);
- $msg->addFeedback('USER_DELETED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
if (isset($_POST['ml']) && $_REQUEST['ml']) {
header('Location: '.$_base_href.'admin/master_list.php');
} else {
$Backup =& new Backup($db, $_POST['course']);\r
$Backup->delete($_POST['backup_id']);\r
\r
- $msg->addFeedback('BACKUP_DELETED');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: index.php');\r
exit;\r
} else if (isset($_POST['submit_no'])) {\r
$Backup =& new Backup($db, $_POST['in_course']);
$Backup->restore($_POST['material'], $_POST['action'], $_POST['backup_id'], $_POST['course']);
- $msg->addFeedBack('IMPORT_SUCCESS');
+ $msg->addFeedBack('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: index.php');
exit;
}
}
}
- $msg->addFeedback('SYSTEM_PREFS_SAVED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
// special case: disabling the mail queue should flush all queued mail:
if (!$_POST['enable_mail_queue'] && $_POST['old_enable_mail_queue']) {
$errors = add_update_course($_POST, TRUE);
if ($errors !== FALSE) {
- $msg->addFeedback('COURSE_CREATED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: '.$_base_href.'admin/courses.php');
exit;
}
}
$result = mysql_query($sql, $db);
- $msg->addFeedback('SECTIONS_SAVED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: '.$_SERVER['PHP_SELF']);
exit;
}
}
$result = mysql_query($sql, $db);
- $msg->addFeedback('SECTIONS_SAVED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location:'. $_SERVER[PHP_SELF]);
exit;
}
fclose($f);\r
}\r
\r
- $msg->addFeedback('FEED_SAVED');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: index.php');\r
exit;\r
} \r
@unlink(AT_CONTENT_DIR.'/feeds/'.$feed_id.'_rss_title.cache');\r
@unlink(AT_CONTENT_DIR.'/feeds/'.$feed_id.'_rss.inc.php');\r
\r
- $msg->addFeedback('FEED_DELETED');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: index.php');\r
exit;\r
}\r
//delete old cache file\r
@unlink(AT_CONTENT_DIR.'/feeds/'.$feed_id.'_rss.cache');\r
\r
- $msg->addFeedback('FEED_SAVED');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: index.php');\r
exit;\r
} \r
\r
if(isset($_POST['import'])) {\r
import_theme();\r
- $msg->addFeedback('THEME_IMPORT_SUCCESS');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: index.php');\r
exit;\r
}\r
$sql = "UPDATE ".TABLE_PREFIX."assignments SET title='$title', assign_to=$assign_to, date_due='$date_due', date_cutoff='$date_cutoff' WHERE assignment_id='$id' AND course_id=$_SESSION[course_id]";
$result = mysql_query($sql,$db);
- $msg->addFeedback('ASSIGNMENT_UPDATED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
}
header('Location: index_instructor.php');
exit;
require(AT_INCLUDE_PATH.'lib/file_storage.inc.php');\r
fs_delete_workspace(WORKSPACE_ASSIGNMENT, $_POST['assignment_id']);\r
\r
- $msg->addFeedback('ASSIGNMENT_DELETED');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: index_instructor.php');\r
exit;\r
}\r
$sql = "INSERT INTO ".TABLE_PREFIX."faq_topics VALUES (0, $_SESSION[course_id], '$_POST[name]')";
$result = mysql_query($sql,$db);
- $msg->addFeedback('TOPIC_ADDED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: index_instructor.php');
exit;
}
$result = mysql_query($sql, $db);\r
}\r
\r
- $msg->addFeedback('TOPIC_DELETED');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: index_instructor.php');\r
exit;\r
}\r
$sql = "UPDATE ".TABLE_PREFIX."faq_topics SET name='$_POST[name]' WHERE topic_id=$id AND course_id=$_SESSION[course_id]";
$result = mysql_query($sql,$db);
- $msg->addFeedback('TOPIC_UPDATED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: index_instructor.php');
exit;
}
}
if ($ppid) {
- $msg->addFeedback('MESSAGE_DELETED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: view.php?fid='.$fid.SEP.'pid='.$ppid);
exit;
} else {
- $msg->addFeedback('THREAD_DELETED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: index.php?fid='.$fid);
exit;
}
}
if ($_REQUEST['fid'] == $_REQUEST['new_fid']) {
- $msg->addFeedback('THREAD_MOVED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: index.php?fid='.$_REQUEST['fid']);
exit;
}
$sql = "UPDATE ".TABLE_PREFIX."forums_threads SET forum_id=$_REQUEST[new_fid] WHERE (parent_id=$_REQUEST[pid] OR post_id=$_REQUEST[pid]) AND forum_id=$_REQUEST[fid]";
$result = mysql_query($sql, $db);
- $msg->addFeedback('THREAD_MOVED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: index.php?fid='.$_REQUEST['fid']);
exit;
}
if ($_POST['parent_id'] == 0) {
$sql = "UPDATE ".TABLE_PREFIX."forums SET num_topics=num_topics+1, last_post='$now' WHERE forum_id=$_POST[fid]";
$result = mysql_query($sql, $db);
- $msg->addFeedback('THREAD_STARTED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: ./index.php?fid='.$fid);
exit;
}
- $msg->addFeedback('THREAD_REPLY');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: view.php?fid='.$fid.SEP.'pid='.$_POST['parent_id']);
exit;
}
$sql = "UPDATE ".TABLE_PREFIX."forums_threads SET sticky=ABS(sticky-1) WHERE post_id=$pid";
$result = mysql_query($sql, $db);
-$msg->addFeedback('STICKY_UPDATED');
+$msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: '.$_base_href.'forum/index.php?fid='.intval($_GET['fid']));
exit;
$result = mysql_query($sql, $db);\r
write_to_log(AT_ADMIN_LOG_UPDATE, 'themes', mysql_affected_rows($db), $sql);\r
} \r
- $feedback = array('THEME_ENABLED', $theme_dir);\r
- $msg->addFeedback($feedback);\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
}\r
\r
function disable_theme ($theme_dir) {\r
$sql = "UPDATE ".TABLE_PREFIX."themes SET status = '2' WHERE dir_name = '$theme_dir'";\r
$result = mysql_query($sql, $db);\r
\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
$feedback = array('THEME_DEFAULT', $theme_dir);\r
$msg->addFeedback($feedback);\r
$_SESSION['prefs']['PREF_THEME'] = $theme_dir;\r
require (AT_INCLUDE_PATH . 'lib/filemanager.inc.php'); /* for clr_dir() */\r
if ($status != 0) {\r
disable_theme($theme_dir);\r
- $msg->deleteFeedback(THEME_DISABLED);\r
+ $msg->deleteFeedback('THEME_DISABLED');\r
}\r
\r
$dir = '../../themes/' . $theme_dir;\r
\r
write_to_log(AT_ADMIN_LOG_DELETE, 'themes', mysql_affected_rows($db), $sql);\r
\r
- $msg->addFeedback('THEME_DELETED');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
return TRUE;\r
}\r
}\r
// index to new URL resource
$id_new = mysql_insert_id($db);
- $msg->addFeedback('RL_URL_ADDED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
} else { // modifying an existing URL resource
$sql = "UPDATE ".TABLE_PREFIX."external_resources SET title='$_POST[title]', author='$_POST[author]', url='$_POST[url]', comments='$_POST[comments]', id='$_POST[isbn]' WHERE resource_id='$id' AND course_id=$_SESSION[course_id]";
// index to URL resource
$id_new = $id;
- $msg->addFeedback('RL_RESOURCE_UPDATED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
}
if (trim($_POST['page_return']) != ''){
$result = mysql_query($sql,$db);
- $msg->addFeedback('URL_EDITED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: index_instructor.php');
exit;
}
)";
$result = mysql_query($sql,$db);
- $msg->addFeedback('URL_ADDED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: index_instructor.php');
exit;
}
\r
$Backup =& new Backup($db, $_SESSION['course_id']);\r
$Backup->delete($_POST['backup_id']);\r
- $msg->addFeedback('BACKUP_DELETED');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: index.php');\r
exit;\r
}\r
} else {
$Backup->restore($_POST['material'], $_POST['action'], $_POST['backup_id']);
- $msg->addFeedback('IMPORT_SUCCESS');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: index.php');
exit;
}
writeAdminSettings($admin);
}
- $msg->addFeedback('TRAN_DELETED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
Header('Location: index.php');
exit;
}
$sql_delete= "delete from ".TABLE_PREFIX."g_click_data where course_id='$_SESSION[course_id]'";
if ($result_delete_track=mysql_query($sql_delete, $db)){
- $msg->addFeedback('TRACKING_DELETED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
} else {
$msg->addError('TRACKING_NOT_DELETED');
require(AT_INCLUDE_PATH.'footer.inc.php');
$sql = substr($sql, 0, -1);\r
mysql_query($sql, $db);\r
\r
- $msg->addFeedback('STUDENT_ADDED_GROUP');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: index.php');\r
exit;\r
}\r
if ($ids) {\r
$sql = "DELETE FROM ".TABLE_PREFIX."groups_members WHERE group_id=$gid AND member_id IN ($ids)";\r
mysql_query($sql, $db);\r
- $msg->addFeedback('STUDENT_REMOVE_GROUP');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
}\r
\r
header('Location: index.php');\r
//Mark student as a member of the group\r
group($_POST['id'],$_POST['gid']);\r
\r
- $msg->addFeedback('STUDENT_ADDED_GROUP');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: index.php?current_tab=');\r
exit;\r
} else if (isset($_POST['submit_yes']) && $_POST['func'] =='group_remove' ) {\r
// Remove student as a member of the group\r
group_remove($_POST['id'],$_POST['gid']);\r
\r
- $msg->addFeedback('STUDENT_REMOVE_GROUP');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: index.php?current_tab='.$_POST['current_tab']);\r
exit;\r
}\r
$sql = "UPDATE ".TABLE_PREFIX."courses SET home_links='$home_links', main_links='$main_links' WHERE course_id=$_SESSION[course_id]";
$result = mysql_query($sql, $db);
- $msg->addFeedback('SECTIONS_SAVED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: modules.php');
exit;
}
$result = mysql_query($sql, $db);
}
- $msg->addFeedback('TEST_SAVED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: ../tools/my_tests.php');
exit;
}
$result = mysql_query($sql, $db);
}
- $msg->addFeedback('TEST_ADDED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: index.php');
exit;
}
}
}
- $msg->addFeedback('TEST_DELETED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: '.$_base_href.'tools/tests/index.php');
exit;
}
}
- $msg->addFeedback('TEST_UPDATED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: index.php');
exit;
$sql = "DELETE FROM ".TABLE_PREFIX."member_track WHERE course_id=$_SESSION[course_id]";\r
$result = mysql_query($sql, $db);\r
\r
- $msg->addFeedback('TRACKING_DELETED');\r
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');\r
header('Location: ./index.php');\r
exit;\r
}\r
$errors = add_update_course($_POST);
if ($errors !== FALSE) {
- $msg->addFeedback('COURSE_CREATED');
+ $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
header('Location: '.$_base_href.'bounce.php?course='.$addslashes($errors).SEP.'p='.urlencode('index.php'));
exit;
}