Example #1
0
} elseif ($_GET['project_id']) {
    $project_id = $_REQUEST['project_id'];
    require_once 'edit_project.php';
} elseif ($_POST['action'] == 'edit_project') {
    $project_id = $_REQUEST['project_id'];
    $new_name = $_POST['project_name'];
    $new_url = $_POST['project_url'];
    $new_parked = $_POST['parked'];
    edit_project($project_id, $new_name, $new_url, $new_parked);
} elseif ($_GET['person_id']) {
    $person_id = $_REQUEST['person_id'];
    require_once 'edit_person.php';
} elseif ($_POST['action'] == 'add_person') {
    $person_name = $_REQUEST['person_name'];
    $person_long_name = $_REQUEST['person_long_name'];
    $person_role = $_REQUEST['person_role'];
    add_person($person_name, $person_long_name, $person_role);
} elseif ($_POST['action'] == 'edit_person') {
    $person_id = $_REQUEST['person_id'];
    $new_name = $_POST['person_name'];
    $new_long_name = $_POST['person_long_name'];
    $new_role = $_POST['person_role'];
    edit_person($person_id, $new_name, $new_long_name, $new_role);
} elseif ($_GET['action'] == 'list_latest_changes') {
    list_latest_changes(get_changes());
} else {
    require_once 'trac.php';
    require_once 'display.php';
}
/* close MySQL connection */
mysql_close();
Example #2
0
"><?php 
    echo $person['person_name'];
    ?>
</li>
  <?php 
}
?>
</ul>

<hr />

<a id="show-log" href="#">Activity Log</a>
<div id="log" style="display: none">
<h2>Latest Changes</h2>
<?php 
list_latest_changes($changes);
?>
</div>

<br />

<a id="show-admin" href="#">Admin</a>
<div id="admin" style="display: none">
<h2>Admin</h2>
<!--
<div class="edit-widget">
  <h3>Add a new project:</h3>
  <form action="<?php 
HOME;
?>
" method="post">