diff --git a/.DS_Store b/.DS_Store index 256ec3c..91c6011 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/data_game/admin.php b/data_game/admin.php index 3f7698d..c051106 100644 --- a/data_game/admin.php +++ b/data_game/admin.php @@ -9,6 +9,13 @@ $admin_value = $_POST['admin_value']; if($admin_value=='0'||$admin_value=='1'||$admin_value=='2'){ $query = "UPDATE credentials SET `admin_value`='$admin_value' WHERE `credentialsID`='$credID'"; + if($admin_value=='0') + $query = "UPDATE member SET `post`='Member' WHERE `cred_id`='$credID'"; + else if($admin_value=='1') + $query = "UPDATE member SET `post`='Coordinator' WHERE `cred_id`='$credID'"; + else if($admin_value=='2') + $query = "UPDATE member SET `post`='Overall Coordinator' WHERE `cred_id`='$credID'"; + $query_run = mysqli_query($connection,$query); header('location:../geekhaven/makeAdmin.php'); }else{ diff --git a/data_game/savemem.php b/data_game/savemem.php index 7e21beb..a801de6 100644 --- a/data_game/savemem.php +++ b/data_game/savemem.php @@ -29,7 +29,7 @@ }else{ $query = "INSERT INTO social_handles VALUES('$social_handle_id','','','','','','','','','','')"; $query_run = mysqli_query($connection,$query); - $query = "INSERT INTO member VALUES ('$username', '', '', '', '$member_id', '0', '$social_handle_id', '$cred_id', '$mem_post', '$wing', '$sess')"; + $query = "INSERT INTO member VALUES ('$username', '', '', '', '$member_id', '0', '$social_handle_id', '$cred_id', 'member', '$wing', '$sess')"; $query_run = mysqli_query($connection,$query); $query = "INSERT INTO credentials VALUES('$cred_id','$username','$pass','0','$member_id')"; $query_run = mysqli_query($connection,$query); diff --git a/getData/ann.php b/getData/ann.php new file mode 100644 index 0000000..cbe6fa4 --- /dev/null +++ b/getData/ann.php @@ -0,0 +1,47 @@ + + + + + + + + + +
+ Name : ''
+ + Organiser : ''
+ Venue : ''
+ + date: ''
+ time: ''
+ topic: ''
+ details: ''
+ date: ''
+ + Image : '; ?>
+ Link : ''
+
+
+ + + diff --git a/getData/blog.php b/getData/blog.php new file mode 100644 index 0000000..b36fce1 --- /dev/null +++ b/getData/blog.php @@ -0,0 +1,31 @@ + + + + + + + + + +
+ Title : ''
+ des: ''
+ Image : '; ?>
+ Link : ''
+
+
+ + + diff --git a/getData/pastmem.php b/getData/pastmem.php new file mode 100644 index 0000000..093711c --- /dev/null +++ b/getData/pastmem.php @@ -0,0 +1,53 @@ + + + + + + + + + +
+ Name : ''
+ Roll: ''
+ Image : '; ?>
+ Des : ''
+ HOf : ''
+ social handles : ''
+ Sess : ''
+ post : ''
+
+
+ + + diff --git a/getData/project.php b/getData/project.php new file mode 100644 index 0000000..485dce5 --- /dev/null +++ b/getData/project.php @@ -0,0 +1,36 @@ + + + + + + + + + +
+ Name : ''
+ project link : ''
+ Source Code : ''
+ + des: ''
+ Image : '; ?>
+ Link : ''
+
+
+ + + diff --git a/getData/wing.php b/getData/wing.php new file mode 100644 index 0000000..3fa9922 --- /dev/null +++ b/getData/wing.php @@ -0,0 +1,33 @@ + + + + + + + + + +
+ Name : ''
+ Info: ''
+ Logo: '; ?>
+ Image : '; ?>
+ Link : ''
+
+
+ + + diff --git a/getData/wingMem.php b/getData/wingMem.php new file mode 100644 index 0000000..61ddd77 --- /dev/null +++ b/getData/wingMem.php @@ -0,0 +1,54 @@ + + + + + + + + + +
+ Name : ''
+ Roll: ''
+ Image : '; ?>
+ Des : ''
+ HOf : ''
+ social handles : ''
+ Sess : ''
+ post : ''
+
+
+ + + diff --git a/onstart.php b/onstart.php index a27a672..13cf9f3 100644 --- a/onstart.php +++ b/onstart.php @@ -71,6 +71,8 @@ `wing` varchar(255), `info` varchar(255), `logo`blob, + `image`blob, + `web_link`varchar(255), PRIMARY KEY (wing_id) );";