From 13d83e028419156648db4fea4dbead5014534a4f Mon Sep 17 00:00:00 2001 From: pradhuman1 Date: Fri, 10 Jul 2020 16:06:46 +0530 Subject: [PATCH] Data retrieve completed --- .DS_Store | Bin 10244 -> 10244 bytes data_game/admin.php | 7 ++++++ data_game/savemem.php | 2 +- getData/ann.php | 47 ++++++++++++++++++++++++++++++++++++ getData/blog.php | 31 ++++++++++++++++++++++++ getData/pastmem.php | 53 +++++++++++++++++++++++++++++++++++++++++ getData/project.php | 36 ++++++++++++++++++++++++++++ getData/wing.php | 33 ++++++++++++++++++++++++++ getData/wingMem.php | 54 ++++++++++++++++++++++++++++++++++++++++++ onstart.php | 2 ++ 10 files changed, 264 insertions(+), 1 deletion(-) create mode 100644 getData/ann.php create mode 100644 getData/blog.php create mode 100644 getData/pastmem.php create mode 100644 getData/project.php create mode 100644 getData/wing.php create mode 100644 getData/wingMem.php diff --git a/.DS_Store b/.DS_Store index 256ec3cc173a13bc8de03837105e91757695955f..91c6011ce42d949a289ca2d540dec3c735a12693 100644 GIT binary patch delta 455 zcmZn(XbG6$&uG0dU^hRb^<*9a$=CxCKNuJoSQzve(it)tN^S16wx4B6`o0-Y7VDft5eUoPh-k2OCvQ?IY zA%!84p#+GNfVh|;wJf+OFDE}Q9jJqGvV*ADW);!<%=PR*2c-g)xj+zN7d8-&!c|#Atj*0w_!pZph$<9cGbBv@ zFX6>}lVkT}A4wTjfoUbanv*9=3Qum3fq Dbv}7u delta 258 zcmZn(XbG6$&uFqSU^hRb$z&b@$=K~l*BBTWSQzve(it)tN^xK7C4ijB6*+^1&v#!{E=E@&d!i#VQg95{3eMvE(#SfSOj=o34 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) );";