foreach ($runs as $r) { $stats->passed_count += $r->passed_count; $stats->retest_count += $r->retest_count; $stats->failed_count += $r->failed_count; $stats->untested_count += $r->untested_count; $stats->blocked_count += $r->blocked_count; $stats->custom_status1_count += $r->custom_status1_count; $stats->custom_status2_count += $r->custom_status2_count; $stats->custom_status3_count += $r->custom_status3_count; $stats->custom_status4_count += $r->custom_status4_count; $stats->custom_status5_count += $r->custom_status5_count; $stats->custom_status6_count += $r->custom_status6_count; $stats->custom_status7_count += $r->custom_status7_count; tests::set_status_percents($r); } tests::set_status_percents($stats); ?> <?php $GI->load->view('report_plugins/charts/defaults'); ?> <?php $temp = array(); $temp['stats'] = $stats; $report_obj->render_view('index/charts/status', $temp); ?> <h1 class="top"><img class="right noPrint" src="%RESOURCE%:images/icons/help.png" width="16" height="16" alt="" title="<?php echo lang('reports_tpr_runs_header_info'); ?>
return false; } $spot->updateBanner("312312"); $spot = $spot->getSpotById($create); if ($oldBanner !== $spot->map_banner) { echo 'UPDATE BANNER: <font color="green">UDANE</font></br>'; } else { echo 'UPDATE BANNER: <font color="red">ERROR!</font></br>'; return false; } $spot->updateLocation("312312", "312312", "312312"); $spot = $spot->getSpotById($create); if ($oldLat !== $spot->lat && $oldLng !== $spot->lng && $oldAddress !== $spot->address) { echo 'UPDATE LOCATION: <font color="green">UDANE</font></br>'; } else { echo 'UPDATE LOCATION: <font color="red">ERROR!</font></br>'; return false; } $_POST["id"] = $create; $spot->deleteSpot(); if (($spot = $spot->getSpotById($create)) == NULL) { echo 'DELETE SPOT: <font color="green">UDANE</font></br>'; } else { echo 'DELETE SPOT: <font color="red">ERROR!</font></br>'; return false; } return true; } } tests::process();
if (session::global_is_set('_LAST_PAGE_REQUEST')) { session::global_set('_LAST_PAGE_REQUEST', time()); } // Get posted values $current_password = get_post('current_password'); $new_password = get_post('new_password'); $repeated_password = get_post('new_password_repeated'); // Get configuration flags for further input checks. $check_differ = $config->get_cfg_value("core", "passwordMinDiffer") != ""; $differ = $config->get_cfg_value("core", "passwordMinDiffer"); $check_length = $config->get_cfg_value("core", "passwordMinLength") != ""; $length = $config->get_cfg_value("core", "passwordMinLength"); // Once an error has occured it is stored here. $message = array(); // Perform GOsa password policy checks if (!tests::is_uid($uid)) { $message[] = msgPool::invalid(_("Login")); } elseif (empty($current_password)) { $message[] = _("You need to specify your current password in order to proceed."); } elseif ($new_password != $repeated_password) { $message[] = _("The passwords you've entered as 'New password' and 'Repeated new password' do not match."); } elseif ($new_password == "") { $message[] = _("The password you've entered as 'New password' is empty."); } elseif ($check_differ && substr($current_password, 0, $differ) == substr($new_password, 0, $differ)) { $message[] = _("The password used as new and current are too similar."); } elseif ($check_length && strlen($new_password) < $length) { $message[] = _("The password used as new is to short."); } elseif (!passwordMethod::is_harmless($new_password)) { $message[] = _("The password contains possibly problematic Unicode characters!"); } // Connect as the given user and load its ACLs
<?php } ?> <col style="width: 75px"></col> </colgroup> <tr class="header"> <th><?php echo h($header); ?> </th> <?php foreach ($statuses as $status) { ?> <th style="text-align: right"> <span class="statusBox" style="<?php echo tests::get_status_box_colors($status->color_dark); ?> "> </span> <?php echo h($status->label); ?> </th> <?php } ?> <th style="text-align: right"><?php echo lang('reports_tpr_table_total'); ?> </th> </tr> <?php