* and any express or implied warranties, including, but not limited to, the * * implied warranties of merchantability and fitness for a particular purpose * * are disclaimed. In no event shall the copyright owner or contributors be * * liable for any direct, indirect, incidental, special, exemplary, or * * consequential damages (including, but not limited to, procurement of * * substitute goods or services; loss of use, data, or profits; or business * * interruption) however caused and on any theory of liability, whether in * * contract, strict liability, or tort (including negligence or otherwise) * * arising in any way out of the use of this software, even if advised of the * * possibility of such damage. * * * ********************************************************************************/ /** Author: Michelle Bachler, KMi, The Open University **/ require_once $_SERVER['DOCUMENT_ROOT'] . '/config.php'; require_once $HUB_FLM->getCodeDirPath("ui/headerstats.php"); $nodeset = getNodesByGlobal(0, -1, 'date', 'ASC', 'Map,Challenge,Issue,Solution,Pro,Con,Argument,Idea', 'shortactivity'); $nodes = $nodeset->nodes; $data = getActivityAnalysisData($nodes); ?> <script type='text/javascript'> var NODE_ARGS = new Array(); Event.observe(window, 'load', function() { NODE_ARGS['data'] = <?php echo json_encode($data); ?> ; $('messagearea').update(getLoadingLine("<?php echo $LNG->LOADING_DATA; ?> "));
$connectionfilter = optional_param('filterbyconnection', '', PARAM_ALPHA); $response = getNodesByUser($userid, $start, $max, $o, $s, $filternodetypes, $style, $query, $connectionfilter, $status); break; case "getnodesbygroup": $groupid = required_param('groupid', PARAM_ALPHANUMEXT); $filterusers = optional_param('filterusers', '', PARAM_TEXT); $query = optional_param('q', "", PARAM_TEXT); $connectionfilter = optional_param('filterbyconnection', '', PARAM_ALPHA); $response = getNodesByGroup($groupid, $start, $max, $o, $s, $filterusers, $filternodetypes, $style, $query, $connectionfilter, $status); break; case "getnodesbyglobal": $query = optional_param('q', "", PARAM_TEXT); $scope = optional_param('scope', 'all', PARAM_TEXT); $tagsonly = optional_param('tagsonly', false, PARAM_BOOL); $connectionfilter = optional_param('filterbyconnection', '', PARAM_ALPHA); $response = getNodesByGlobal($start, $max, $o, $s, $filternodetypes, $style, $query, $scope, $tagsonly, $connectionfilter, $status); break; case "getmostconnectednodes": $scope = optional_param('scope', 'my', PARAM_TEXT); $response = getMostConnectedNodes($scope, $start, $max, $style, $status); break; case "getnodesbyfirstcharacters": $query = required_param('q', PARAM_TEXT); $scope = optional_param('scope', 'my', PARAM_TEXT); $response = getNodesByFirstCharacters($query, $scope, $start, $max, "name", "ASC", $filternodetypes, $style, $status); break; case "getmultinodes": $nodeids = required_param('nodeids', PARAM_TEXT); $response = getMultiNodes($nodeids, $start, $max, $o, $s, $style); break; /** RESOURCE **/
} else { if ($len == 3) { $id = check_param($parts[2], PARAM_TEXT); $url = getURL($id); $url->cipher = $cipher; if (isset($unobfuscationid) && $unobfuscationid != "") { $users = $url->userid; setObfuscationUsers($unobfuscationid, $users); } $response = $url; } } break; case "nodes": if ($len == 2) { $nodeset = getNodesByGlobal(0, -1, 'date', 'ASC'); $nodeset->cipher = $cipher; if (isset($unobfuscationid) && $unobfuscationid != "") { $nodeset->unobfuscationid = $unobfuscationid; } $response = $nodeset; break; } else { if ($len == 3) { $id = check_param($parts[2], PARAM_TEXT); $node = getNode($id); $node->cipher = $cipher; if (isset($unobfuscationid) && $unobfuscationid != "") { $node->unobfuscationid = $unobfuscationid; } $response = $node;
* and any express or implied warranties, including, but not limited to, the * * implied warranties of merchantability and fitness for a particular purpose * * are disclaimed. In no event shall the copyright owner or contributors be * * liable for any direct, indirect, incidental, special, exemplary, or * * consequential damages (including, but not limited to, procurement of * * substitute goods or services; loss of use, data, or profits; or business * * interruption) however caused and on any theory of liability, whether in * * contract, strict liability, or tort (including negligence or otherwise) * * arising in any way out of the use of this software, even if advised of the * * possibility of such damage. * * * ********************************************************************************/ /** Author: Michelle Bachler, KMi, The Open University **/ include_once $_SERVER['DOCUMENT_ROOT'] . '/config.php'; require_once $HUB_FLM->getCodeDirPath("core/io/catalyst/analyticservices.php"); $nodeSet = getNodesByGlobal(0, -1, 'date', 'ASC', 'Issue,Solution,Pro,Con', 'mini'); $nodes = $nodeSet->nodes; $count = count($nodes); $data = array(); $usersCheck = array(); $users = array(); $countUsers = 1; for ($i = 0; $i < $count; $i++) { $node = $nodes[$i]; $activitieSet = getAllNodeActivity($node->nodeid, 0, 0, -1); $activities = $activitieSet->activities; foreach ($activities as $activity) { if (isset($activity)) { $date = $activity->modificationdate; $type = $activity->type; $changetype = $activity->changetype;
* This software is provided by the copyright holders and contributors "as is" * * and any express or implied warranties, including, but not limited to, the * * implied warranties of merchantability and fitness for a particular purpose * * are disclaimed. In no event shall the copyright owner or contributors be * * liable for any direct, indirect, incidental, special, exemplary, or * * consequential damages (including, but not limited to, procurement of * * substitute goods or services; loss of use, data, or profits; or business * * interruption) however caused and on any theory of liability, whether in * * contract, strict liability, or tort (including negligence or otherwise) * * arising in any way out of the use of this software, even if advised of the * * possibility of such damage. * * * ********************************************************************************/ include_once $_SERVER['DOCUMENT_ROOT'] . '/config.php'; include_once $HUB_FLM->getCodeDirPath("ui/headerstats.php"); $nodeSet = getNodesByGlobal(0, -1, 'date', 'ASC', 'Map,Challenge,Issue,Solution,Pro,Con', 'mini'); $nodes = $nodeSet->nodes; $data = getStreamGraphData($nodes); ?> <script type='text/javascript'> var NODE_ARGS = new Array(); Event.observe(window, 'load', function() { NODE_ARGS['data'] = <?php echo json_encode($data); ?> ; var bObj = new JSONscriptRequest('<?php echo $HUB_FLM->getCodeWebPath("ui/networkmaps/stats-streamgraph.js.php");
* interruption) however caused and on any theory of liability, whether in * * contract, strict liability, or tort (including negligence or otherwise) * * arising in any way out of the use of this software, even if advised of the * * possibility of such damage. * * * ********************************************************************************/ include_once $_SERVER['DOCUMENT_ROOT'] . '/config.php'; include_once $HUB_FLM->getCodeDirPath("core/formats/json.php"); include_once $HUB_FLM->getCodeDirPath("ui/headerstats.php"); global $CFG; $userHashtable = array(); $userCheck = array(); $usersToDebates = array(); $nodeCheck = array(); $totalnodes = 0; $mapNodes = getNodesByGlobal(0, -1, 'date', 'DESC', 'Map', '', 'mini'); $nodes = $mapNodes->nodes; $count = count($nodes); for ($i = 0; $i < $count; $i++) { $node = $nodes[$i]; if (!$node instanceof Error) { if (!array_key_exists($node->nodeid, $nodeCheck)) { $nodeCheck[$node->nodeid] = $node; } if (!array_key_exists($node->users[0]->userid, $userHashtable)) { $globaluser = clone $node->users[0]; $globaluser->procount = 0; $globaluser->concount = 0; $globaluser->ideacount = 0; $globaluser->debatecount = 0; $globaluser->mapcount = 1;
if (count($nodes) > 0) { $nextMessage .= $nextSet; } // con $nodeSet = getNodesByGlobal(0, 5, 'date', 'DESC', 'Con'); $nodes = $nodeSet->nodes; $nextSet = ""; $nextSet .= '<br><b><img width="20" border="0" src="' . $CFG->conicon . '" /> ' . $LNG->CONS_NAME . '</b><br>'; foreach ($nodes as $node) { $nextSet .= '<a style="font-size:8pt;" href="' . $CFG->homeAddress . 'explore.php?id=' . $node->nodeid . '">' . $node->name . '</a><br />'; } if (count($nodes) > 0) { $nextMessage .= $nextSet; } // comments $nodeSet = getNodesByGlobal(0, 5, 'date', 'DESC', "Idea"); $nodes = $nodeSet->nodes; $nextSet = ""; $nextSet .= '<br><b><img width="20" border="0" src="' . $CFG->commenticon . '" /> ' . $LNG->COMMENTS_NAME . '</b><br>'; foreach ($nodes as $node) { $nextSet .= '<a style="font-size:8pt;" href="' . $CFG->homeAddress . 'index.php?q=' . urlencode($node->name) . '">' . $node->name . '</a><br />'; } if (count($nodes) > 0) { $nextMessage .= $nextSet; } // user $userSet = getUsersByGlobal(false, 0, 5); $innerusers = $userSet->users; $nextSet = ""; $nextSet .= '<br><b>' . $LNG->USERS_NAME . '</b><br>'; foreach ($innerusers as $inneruser) {
} else { array_push($errors, $LNG->ADMIN_NEWS_MISSING_NAME_ERROR); } } else { if (isset($_POST["deletenews"])) { if ($nodeid != "") { if (!adminDeleteNews($nodeid)) { array_push($errors, $LNG->ADMIN_MANAGE_NEWS_DELETE_ERROR . ' ' . $nodeid); } } else { array_push($errors, $LNG->ADMIN_NEWS_ID_ERROR); } } } } $ns = getNodesByGlobal(0, -1, 'name', 'ASC', 'News', '', 'long'); $nodes = $ns->nodes; ?> <script type="text/javascript"> function init() { $('dialogheader').insert('<?php echo $LNG->ADMIN_NEWS_TITLE; ?> '); } function editNews(objno){ cancelAddNews(); cancelAllEdits();
* interruption) however caused and on any theory of liability, whether in * * contract, strict liability, or tort (including negligence or otherwise) * * arising in any way out of the use of this software, even if advised of the * * possibility of such damage. * * * ********************************************************************************/ include_once $_SERVER['DOCUMENT_ROOT'] . '/config.php'; include_once $HUB_FLM->getCodeDirPath("core/formats/json.php"); include_once $HUB_FLM->getCodeDirPath("ui/headerstats.php"); global $CFG; $userHashtable = array(); $userCheck = array(); $usersToDebates = array(); $nodeCheck = array(); $totalnodes = 0; $issueNodes = getNodesByGlobal(0, -1, 'date', 'DESC', 'Issue', 'mini'); $nodes = $issueNodes->nodes; $count = count($nodes); for ($i = 0; $i < $count; $i++) { $node = $nodes[$i]; if (!array_key_exists($node->nodeid, $nodeCheck)) { $nodeCheck[$node->nodeid] = $node; } if (!array_key_exists($node->users[0]->userid, $userHashtable)) { $globaluser = clone $node->users[0]; $globaluser->procount = 0; $globaluser->concount = 0; $globaluser->ideacount = 0; $globaluser->debatecount = 1; $userHashtable[$node->users[0]->userid] = $globaluser; } else {
$node->unobfuscationid = $unobfuscationid; } $response = $node; } } break; case "views": $checkNodes = array(); // All Isses Grouped and not grouped if ($len == 2) { $viewSet = new ViewSet(); $viewSet->cipher = $cipher; if (isset($unobfuscationid) && $unobfuscationid != "") { $viewSet->unobfuscationid = $unobfuscationid; } $allIssues = getNodesByGlobal(0, -1, 'date', 'ASC', "Issue"); if (!$allIssues instanceof Error) { $count = count($allIssues->nodes); for ($i = 0; $i < $count; $i++) { $issue = $allIssues->nodes[$i]; if (!$issue instanceof Error) { $conSet = getDebate($issue->nodeid, 'cif'); if (!$conSet instanceof Error) { $view = new View($issue->nodeid); $countj = count($conSet->connections); for ($j = 0; $j < $countj; $j++) { $con = $conSet->connections[$j]; $view->addConnection($con); $from = $con->from; if (in_array($from->nodeid, $checkNodes) === FALSE) { $checkNodes[$from->nodeid] = $from->nodeid;