Browse Source

improve/add license headers

mxmehl 3 years ago
parent
commit
099d87e70a
6 changed files with 134 additions and 2 deletions
  1. 3
    2
      action.sh
  2. 26
    0
      adduser.py
  3. 26
    0
      changepw.py
  4. 26
    0
      index.php
  5. 26
    0
      lang.php
  6. 27
    0
      submit.php

+ 3
- 2
action.sh View File

@@ -1,5 +1,7 @@
1
+#!/bin/bash
2
+
1 3
 ########################################################################
2
-#  Copyright (C) 2015 Max Mehl <mail@mehl.mx>
4
+#  Copyright (C) 2016 Max Mehl <mail [at] mehl [dot] mx>
3 5
 ########################################################################
4 6
 #  
5 7
 #  This program is free software: you can redistribute it and/or modify 
@@ -24,7 +26,6 @@
24 26
 #   scripts
25 27
 #  
26 28
 ########################################################################
27
-#!/bin/bash
28 29
 
29 30
 # Test if config.cfg exists and set needed variables
30 31
 if [ ! -e config.cfg ]; then echo "Missing config.cfg file. Edit and rename config.cfg.sample"; exit 1; fi

+ 26
- 0
adduser.py View File

@@ -1,5 +1,31 @@
1 1
 #!/usr/bin/env python
2 2
 
3
+########################################################################
4
+#  Copyright (C) 2016 Max Mehl <mail [at] mehl [dot] mx>
5
+########################################################################
6
+#  
7
+#  This program is free software: you can redistribute it and/or modify 
8
+#  it under the terms of the GNU Affero General Public License as 
9
+#  published by the Free Software Foundation, either version 3 of the 
10
+#  License, or (at your option) any later version.
11
+#  
12
+#  This program is distributed in the hope that it will be useful, 
13
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
14
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
15
+#  GNU Affero General Public License for more details.
16
+#  
17
+#  You should have received a copy of the GNU Affero General Public 
18
+#  License along with this program.  If not, see 
19
+#  <http://www.gnu.org/licenses/>.
20
+#  
21
+########################################################################
22
+#  
23
+#  This script is responsible to add a user using vadduser. It is 
24
+#  needed because we need the expect function and using python we can 
25
+#  avoid potential password leaks when other users see the output of ps.
26
+#  
27
+########################################################################
28
+
3 29
 import sys
4 30
 import pexpect
5 31
 

+ 26
- 0
changepw.py View File

@@ -1,5 +1,31 @@
1 1
 #!/usr/bin/env python
2 2
 
3
+########################################################################
4
+#  Copyright (C) 2016 Max Mehl <mail [at] mehl [dot] mx>
5
+########################################################################
6
+#  
7
+#  This program is free software: you can redistribute it and/or modify 
8
+#  it under the terms of the GNU Affero General Public License as 
9
+#  published by the Free Software Foundation, either version 3 of the 
10
+#  License, or (at your option) any later version.
11
+#  
12
+#  This program is distributed in the hope that it will be useful, 
13
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of 
14
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
15
+#  GNU Affero General Public License for more details.
16
+#  
17
+#  You should have received a copy of the GNU Affero General Public 
18
+#  License along with this program.  If not, see 
19
+#  <http://www.gnu.org/licenses/>.
20
+#  
21
+########################################################################
22
+#  
23
+#  This script is responsible to change a password using vpasswd. It is 
24
+#  needed because we need the expect function and using python we can 
25
+#  avoid potential password leaks when other users see the output of ps.
26
+#  
27
+########################################################################
28
+
3 29
 import sys
4 30
 import pexpect
5 31
 

+ 26
- 0
index.php View File

@@ -1,3 +1,29 @@
1
+<?php 
2
+/***********************************************************************
3
+*  Copyright (C) 2016 Max Mehl <mail [at] mehl [dot] mx>
4
+************************************************************************
5
+*  
6
+*  This program is free software: you can redistribute it and/or modify 
7
+*  it under the terms of the GNU Affero General Public License as 
8
+*  published by the Free Software Foundation, either version 3 of the 
9
+*  License, or (at your option) any later version.
10
+*  
11
+*  This program is distributed in the hope that it will be useful, 
12
+*  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13
+*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
14
+*  GNU Affero General Public License for more details.
15
+*  
16
+*  You should have received a copy of the GNU Affero General Public 
17
+*  License along with this program.  If not, see 
18
+*  <http://www.gnu.org/licenses/>.
19
+*  
20
+************************************************************************
21
+*  
22
+*  This file is the index file for the whole application. It shows the 
23
+*  various forms and passes the users' inputs to submit.php
24
+*  
25
+***********************************************************************/
26
+?>
1 27
 <?php include_once 'lang.php'; ?>
2 28
 <!DOCTYPE html>
3 29
 <html lang="<?php echo $lang['LANG']; ?>">

+ 26
- 0
lang.php View File

@@ -1,3 +1,29 @@
1
+<?php 
2
+/***********************************************************************
3
+*  Copyright (C) 2016 Max Mehl <mail [at] mehl [dot] mx>
4
+************************************************************************
5
+*  
6
+*  This program is free software: you can redistribute it and/or modify 
7
+*  it under the terms of the GNU Affero General Public License as 
8
+*  published by the Free Software Foundation, either version 3 of the 
9
+*  License, or (at your option) any later version.
10
+*  
11
+*  This program is distributed in the hope that it will be useful, 
12
+*  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13
+*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
14
+*  GNU Affero General Public License for more details.
15
+*  
16
+*  You should have received a copy of the GNU Affero General Public 
17
+*  License along with this program.  If not, see 
18
+*  <http://www.gnu.org/licenses/>.
19
+*  
20
+************************************************************************
21
+*  
22
+*  This file detects the sessions language setting or the one which we 
23
+*  set in a cookie.
24
+*  
25
+***********************************************************************/
26
+?>
1 27
 <?php
2 28
 session_start();
3 29
 header('Cache-control: private'); // IE 6 FIX

+ 27
- 0
submit.php View File

@@ -1,3 +1,30 @@
1
+<?php 
2
+/***********************************************************************
3
+*  Copyright (C) 2016 Max Mehl <mail [at] mehl [dot] mx>
4
+************************************************************************
5
+*  
6
+*  This program is free software: you can redistribute it and/or modify 
7
+*  it under the terms of the GNU Affero General Public License as 
8
+*  published by the Free Software Foundation, either version 3 of the 
9
+*  License, or (at your option) any later version.
10
+*  
11
+*  This program is distributed in the hope that it will be useful, 
12
+*  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13
+*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
14
+*  GNU Affero General Public License for more details.
15
+*  
16
+*  You should have received a copy of the GNU Affero General Public 
17
+*  License along with this program.  If not, see 
18
+*  <http://www.gnu.org/licenses/>.
19
+*  
20
+************************************************************************
21
+*  
22
+*  This file get the input from index.php, sanitises the data and 
23
+*  forwards it to action.sh. The output of action.sh will be returned 
24
+*  in the end. 
25
+*  
26
+***********************************************************************/
27
+?>
1 28
 <?php include_once 'lang.php'; ?>
2 29
 <!DOCTYPE html>
3 30
 <html lang="<?php echo $lang['LANG']; ?>">

Loading…
Cancel
Save