aboutsummaryrefslogtreecommitdiff
path: root/modules/rudi
diff options
context:
space:
mode:
author3rd Infantry Division <thirdid@3rd-infantry-division.org>2011-04-18 18:41:57 -0400
committer3rd Infantry Division <thirdid@3rd-infantry-division.org>2011-04-18 18:41:57 -0400
commiteb5ec4457a826bf6edadc9fa1816fac94d4a5c6a (patch)
tree5d99f21c01f8ed598631456acf3e0f576b6e610b /modules/rudi
parent55111dfa67353632608240a13c0fcc7b47b1c843 (diff)
downloadbayonetcms-eb5ec4457a826bf6edadc9fa1816fac94d4a5c6a.tar.gz
Adjusted the Bayonet license (some files may have been missed)
Diffstat (limited to 'modules/rudi')
-rw-r--r--modules/rudi/admin/includes/admin.class.php20
-rw-r--r--modules/rudi/admin/index.php19
-rw-r--r--modules/rudi/admin/views/view.addsoldier.php19
-rw-r--r--modules/rudi/admin/views/view.admin.php18
-rw-r--r--modules/rudi/admin/views/view.deletesoldier.php20
-rw-r--r--modules/rudi/admin/views/view.modifysoldier.php21
-rw-r--r--modules/rudi/footer.php20
-rw-r--r--modules/rudi/header.php21
-rw-r--r--modules/rudi/includes/common.class.php20
-rw-r--r--modules/rudi/includes/debug.php20
-rw-r--r--modules/rudi/includes/information.class.php20
-rw-r--r--modules/rudi/includes/sql.class.php20
-rw-r--r--modules/rudi/index.php22
-rw-r--r--modules/rudi/views/view.awards.php22
-rw-r--r--modules/rudi/views/view.drills.php17
-rw-r--r--modules/rudi/views/view.information.php20
-rw-r--r--modules/rudi/views/view.platoon.php22
-rw-r--r--modules/rudi/views/view.points.php21
18 files changed, 343 insertions, 19 deletions
diff --git a/modules/rudi/admin/includes/admin.class.php b/modules/rudi/admin/includes/admin.class.php
index fee79c9..d0a50fe 100644
--- a/modules/rudi/admin/includes/admin.class.php
+++ b/modules/rudi/admin/includes/admin.class.php
@@ -1,4 +1,22 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
/*
class Rank
{
@@ -118,4 +136,4 @@ class AdminModify
}
}
-?> \ No newline at end of file
+?>
diff --git a/modules/rudi/admin/index.php b/modules/rudi/admin/index.php
index 33d9cd1..b6f88bc 100644
--- a/modules/rudi/admin/index.php
+++ b/modules/rudi/admin/index.php
@@ -1,4 +1,21 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
//include '../includes/debug.php';
//include '../includes/sql.class.php';
@@ -18,4 +35,4 @@ if(isset($_GET['soldier']) && $_GET['soldier'] == 'modify')
//include '../footer.php';
ob_flush();
-?> \ No newline at end of file
+?>
diff --git a/modules/rudi/admin/views/view.addsoldier.php b/modules/rudi/admin/views/view.addsoldier.php
index 370b232..c6e3ad1 100644
--- a/modules/rudi/admin/views/view.addsoldier.php
+++ b/modules/rudi/admin/views/view.addsoldier.php
@@ -1,3 +1,20 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
-?> \ No newline at end of file
+?>
diff --git a/modules/rudi/admin/views/view.admin.php b/modules/rudi/admin/views/view.admin.php
index d05e5b1..83e788b 100644
--- a/modules/rudi/admin/views/view.admin.php
+++ b/modules/rudi/admin/views/view.admin.php
@@ -1,4 +1,22 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
?>
<html>
diff --git a/modules/rudi/admin/views/view.deletesoldier.php b/modules/rudi/admin/views/view.deletesoldier.php
index 370b232..8d622fb 100644
--- a/modules/rudi/admin/views/view.deletesoldier.php
+++ b/modules/rudi/admin/views/view.deletesoldier.php
@@ -1,3 +1,21 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
-?> \ No newline at end of file
+?>
diff --git a/modules/rudi/admin/views/view.modifysoldier.php b/modules/rudi/admin/views/view.modifysoldier.php
index 83449b8..6fd2895 100644
--- a/modules/rudi/admin/views/view.modifysoldier.php
+++ b/modules/rudi/admin/views/view.modifysoldier.php
@@ -1,5 +1,22 @@
-
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
if(isset($_POST['id']))
{
$id = $_POST['id'];
@@ -32,4 +49,4 @@ if(isset($_POST['id']))
</table>
</form>
-<?php decho($_POST); decho($common->data[$id]); //decho($common->getRanks())?> \ No newline at end of file
+<?php decho($_POST); decho($common->data[$id]); //decho($common->getRanks())?>
diff --git a/modules/rudi/footer.php b/modules/rudi/footer.php
index f827d01..46db093 100644
--- a/modules/rudi/footer.php
+++ b/modules/rudi/footer.php
@@ -1,8 +1,26 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
$real = sprintf("%.2fkb", memory_get_usage() / 1024);
$peak = sprintf("%.2fkb", memory_get_peak_usage() / 1024);
?>
<center><?php echo "Connections: $db_connections | Queries: $db_queries | Fetches: $db_fetches | Released: $db_frees | Memory: (real): $real (peak): $peak"?></center>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/modules/rudi/header.php b/modules/rudi/header.php
index 7ea6723..eb5ef2b 100644
--- a/modules/rudi/header.php
+++ b/modules/rudi/header.php
@@ -1,3 +1,22 @@
+<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+?>
<?php OpenContent(); ?>
<div class="content" style="text-align:center">
<div class="inline" style="margin:0px 20px 0px 20px;"><?php echo LinkModule('rudi',NULL,'Roster'); ?></div>
@@ -7,4 +26,4 @@
<div class="clear"></div>
</div>
<?php CloseContent(); ?>
-<br /> \ No newline at end of file
+<br />
diff --git a/modules/rudi/includes/common.class.php b/modules/rudi/includes/common.class.php
index 0d5e63e..98d7c6d 100644
--- a/modules/rudi/includes/common.class.php
+++ b/modules/rudi/includes/common.class.php
@@ -1,4 +1,22 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
define('RUDI_PROFILE_SMALL', true);
define('RUDI_PROFILE_BIG', false);
@@ -1181,4 +1199,4 @@ class RUDI_Common
}
-?> \ No newline at end of file
+?>
diff --git a/modules/rudi/includes/debug.php b/modules/rudi/includes/debug.php
index 1f5f382..f0313c1 100644
--- a/modules/rudi/includes/debug.php
+++ b/modules/rudi/includes/debug.php
@@ -1,4 +1,22 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
if(!defined(NO_ACCESS))
{
@@ -77,4 +95,4 @@ function decho($message)
*/
-?> \ No newline at end of file
+?>
diff --git a/modules/rudi/includes/information.class.php b/modules/rudi/includes/information.class.php
index d34c4aa..94481b0 100644
--- a/modules/rudi/includes/information.class.php
+++ b/modules/rudi/includes/information.class.php
@@ -1,4 +1,22 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
class RUDI_Information extends RUDI_Common
{
@@ -31,4 +49,4 @@ class RUDI_Information extends RUDI_Common
}
}
-?> \ No newline at end of file
+?>
diff --git a/modules/rudi/includes/sql.class.php b/modules/rudi/includes/sql.class.php
index 4066684..720181c 100644
--- a/modules/rudi/includes/sql.class.php
+++ b/modules/rudi/includes/sql.class.php
@@ -1,4 +1,22 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
static $db_queries = 0;
static $db_connections = 0;
@@ -87,4 +105,4 @@ class RUDI_SQL
}
}
-?> \ No newline at end of file
+?>
diff --git a/modules/rudi/index.php b/modules/rudi/index.php
index 4550ad7..8c103a1 100644
--- a/modules/rudi/index.php
+++ b/modules/rudi/index.php
@@ -1,8 +1,24 @@
<link rel="stylesheet" type="text/css" href="modules/rudi/includes/rudi.css" media="screen"/>
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
- include 'header.php';
-
+include 'header.php';
//include 'includes/debug.php';
//require 'includes/sql.class.php';
include_once 'includes/common.class.php';
@@ -113,4 +129,4 @@ CloseContent();
//decho($test->foo[0]->member_id);
//$test1 = new Test();
//$test2 = new Test();
-?> \ No newline at end of file
+?>
diff --git a/modules/rudi/views/view.awards.php b/modules/rudi/views/view.awards.php
index 0a17005..6ecd097 100644
--- a/modules/rudi/views/view.awards.php
+++ b/modules/rudi/views/view.awards.php
@@ -1,3 +1,23 @@
+<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+?>
<?php define('BLOCK_RIGHT_DISABLE','block_right_disable'); ?>
<?php $medals_path = $this->images_path . "/medals/"; ?>
@@ -78,4 +98,4 @@ td.rudi {
</table>
-->
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/modules/rudi/views/view.drills.php b/modules/rudi/views/view.drills.php
index aa4b30a..498f5f5 100644
--- a/modules/rudi/views/view.drills.php
+++ b/modules/rudi/views/view.drills.php
@@ -1,4 +1,21 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
function back()
{
diff --git a/modules/rudi/views/view.information.php b/modules/rudi/views/view.information.php
index d017564..0a6ed31 100644
--- a/modules/rudi/views/view.information.php
+++ b/modules/rudi/views/view.information.php
@@ -1,4 +1,22 @@
<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
$unit_id = $_GET['unit_id'];
$platoon_id = $_GET['platoon_id'];
switch($_GET['info'])
@@ -17,4 +35,4 @@ switch($_GET['info'])
ReportError('Invalid info entry');
return;
}
-?> \ No newline at end of file
+?>
diff --git a/modules/rudi/views/view.platoon.php b/modules/rudi/views/view.platoon.php
index 4ee60dc..bd90a66 100644
--- a/modules/rudi/views/view.platoon.php
+++ b/modules/rudi/views/view.platoon.php
@@ -1,3 +1,23 @@
+<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+?>
<?php $data = $info->Platoon($unit_id, $platoon_id); ?>
<table align="center">
@@ -19,4 +39,4 @@
</tr>
</table>
-<?php decho($data); ?> \ No newline at end of file
+<?php decho($data); ?>
diff --git a/modules/rudi/views/view.points.php b/modules/rudi/views/view.points.php
index bf6c2b6..be1f90e 100644
--- a/modules/rudi/views/view.points.php
+++ b/modules/rudi/views/view.points.php
@@ -1,3 +1,22 @@
+<?php
+/**
+ * Bayonet Content Management System - RUDI
+ * Copyright (C) 2008-2011 Joseph Hunkeler & Evan O'Connell
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+?>
<h3>Points Ticker:</h3>
<table width="100%" class="rudi" cellspacing="0">
@@ -32,4 +51,4 @@
}
?>
-</table> \ No newline at end of file
+</table>