"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "views_view.php" between
ganglia-web-3.7.1.tar.gz and ganglia-web-3.7.2.tar.gz

About: Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and grids (Ganglia Web UI).

views_view.php  (ganglia-web-3.7.1):views_view.php  (ganglia-web-3.7.2)
skipping to change at line 31 skipping to change at line 31
} else { } else {
$view_name = $_GET['vn']; $view_name = $_GET['vn'];
} }
function viewFileName($view_name) { function viewFileName($view_name) {
global $conf; global $conf;
$view_suffix = str_replace(" ", "_", $view_name); $view_suffix = str_replace(" ", "_", $view_name);
return $conf['views_dir'] . return $conf['views_dir'] .
"/view_" . "/view_" .
preg_replace('/[^a-zA-Z0-9_-]/', '', $view_suffix) . ".json"; preg_replace('/[^a-zA-Z0-9_\-]/', '', $view_suffix) . ".json";
} }
$viewList = new ViewList(); $viewList = new ViewList();
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Create new view // Create new view
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
if (isset($_GET['create_view'])) { if (isset($_GET['create_view'])) {
if(! checkAccess(GangliaAcl::ALL_VIEWS, GangliaAcl::EDIT, $conf)) { if(! checkAccess(GangliaAcl::ALL_VIEWS, GangliaAcl::EDIT, $conf)) {
$output = "You do not have access to edit views."; $output = "You do not have access to edit views.";
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS