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.136
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_editinstitutetype_04-08-14.php
<!--created by joshi himanshu 06/08/12 main index.php!--> <?php include('arya_AdminInclude.php'); //header start include('arya_header.php'); //header over // link start include("arya_menu.php"); // link over //This is used for admin rights wise display field Start Added By Vaishali 22/01/2013 $admusrid=$_SESSION["adminuserid"]; $msgid=$_GET["lid"]; $pagesecid=$_GET['scid']; $logindate=date('Y-m-d h:i:s'); $curntdate=date('Y-m-d'); $curnttime= date('h:i:s'); $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); if($pagename== "arya_addinstitutetype.php" ) { $rightapprove=getFieldValue('admsecright_approve','arya_adminsectionrights','admsecright_pageid="'.$key.'" AND admuser_id="'.$admusrid.'" AND admcat_id="'.$dbusercatid.'"'); } } } // content start $instid=$_GET["instid"]; $selorgtype="SELECT * FROM arya_institutiontype WHERE insttype_id='".$instid."'"; $qryorgtype=mysql_query($selorgtype); $fetchorgtype=mysql_fetch_array($qryorgtype); $org_type_id=$fetchorgtype["insttype_id"]; $instlogo=$fetchorgtype['insttype_logo']; $logoinst=str_replace("./","",$instlogo); $officer1=$fetchorgtype["insttype_officer1"]; $officer2=$fetchorgtype["insttype_officer2"]; $officer3=$fetchorgtype["insttype_officer3"]; $officer4=$fetchorgtype["insttype_officer4"]; $officer5=$fetchorgtype["insttype_officer5"]; $officer6=$fetchorgtype["insttype_officer6"]; $officer7=$fetchorgtype["insttype_officer7"]; $officer8=$fetchorgtype["insttype_officer8"]; $officer9=$fetchorgtype["insttype_officer9"]; $officer10=$fetchorgtype["insttype_officer10"]; if($officer1!=""){ $value12[]=$officer1;} if($officer2!=""){ $value12[]=$officer2;} if($officer3!=""){ $value12[]=$officer3;} if($officer4!=""){ $value12[]=$officer4;} if($officer5!=""){ $value12[]=$officer5;} if($officer6!=""){ $value12[]=$officer6;} if($officer7!=""){ $value12[]=$officer7;} if($officer8!=""){ $value12[]=$officer8;} if($officer9!=""){ $value12[]=$officer9;} if($officer10!=""){ $value12[]=$officer10;} $txtname1=$value12; $arrayname=$value12; $count=count($value12); $org_type_seq=$fetchorgtype["insttype_sequence"]; $org_type_name=stripslashes($fetchorgtype["insttype_name"]); $org_visible=$fetchorgtype["insttype_visible"]; if($org_visible == 'Yes') { $visibleyes='checked="checked"'; } else { $visibleno='checked="checked"'; } if(isset($_POST["btnUpdate"])) { for($i=1;$i<=10;$i++) { $name='officer'.$i; $langtext[]=$_POST[$name]; } $posthidid=$_POST["hidid"]; if($rightapprove == 'Self' || $rightapprove == 'All') { $txtsequenceno=$_POST["txtsequenceno"]; $chkvisible=$_POST["chkvisible"]; } else { $txtsequenceno=$org_type_seq; $chkvisible=$org_visible; } $txtname=$_POST["txtname"]; $_SESSION['txtname']=$txtname; unset($_SESSION['yesvisible']); unset($_SESSION['novisible']); if($_POST["chkvisible"]=='Yes') { $_SESSION['yesvisible']='checked="checked" '; } if($_POST["chkvisible"]=='No') { $_SESSION['novisible']='checked="checked" '; } /*if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if(find_specialchar($txtname)=="Yes" || find_blankfield($txtname)=="Yes" || find_scripttags($txtname)=="Yes" || is_digits($txtsequenceno)=="Yes" || find_scripttags($txtsequenceno)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$instid.'&scid='.$pagesecid.'&msg=err'); } }*/ $_SESSION['txtsequenceno']=$txtsequenceno; $officer1=$_POST['officer1']; $_SESSION['officer1']=$officer1; if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if($txtname=="") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=emptype'); } if($officer1=="") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=empoff'); } } if($txtname!="") { $postoff2=$_POST['officer2']; $postoff3=$_POST['officer3']; $postoff4=$_POST['officer4']; $postoff5=$_POST['officer5']; $postoff6=$_POST['officer6']; $postoff7=$_POST['officer7']; $postoff8=$_POST['officer8']; $postoff9=$_POST['officer9']; $postoff10=$_POST['officer10']; if($postoff2!=""){ $pofflist[]=$postoff2;} if($postoff3!=""){ $pofflist[]=$postoff3;} if($postoff4!=""){ $pofflist[]=$postoff4;} if($postoff5!=""){ $pofflist[]=$postoff5;} if($postoff6!=""){ $pofflist[]=$postoff6;} if($postoff7!=""){ $pofflist[]=$postoff7;} if($postoff8!=""){ $pofflist[]=$postoff8;} if($postoff9!=""){ $pofflist[]=$postoff9;} if($postoff10!=""){ $pofflist[]=$postoff10;} $listofficername=$pofflist; $_SESSION['arrayname']=$listofficername; if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if(find_scripttags($txtname)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=typeerr'); } else if(find_scripttags($officer1)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=officer1'); } else if(find_scripttags($postoff2)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=officer2'); } else if(find_scripttags($postoff3)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=officer3'); } else if(find_scripttags($postoff4)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=officer4'); } else if(find_scripttags($postoff5)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=officer5'); } else if(find_scripttags($postoff6)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=officer6'); } else if(find_scripttags($postoff7)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=officer7'); } else if(find_scripttags($postoff8)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=officer8'); } else if(find_scripttags($postoff9)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=officer9'); } else if(find_scripttags($postoff10)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=officer10'); } else if(is_digits($txtsequenceno)=="Yes" || find_scripttags($txtsequenceno)=="Yes") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=seqerr'); } } $getorgtype=getFieldValue("insttype_name","arya_institutiontype","insttype_id!='".$posthidid."' AND insttype_name='".$txtname."'"); if($getorgtype!="") { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid'].'&msg=dupmsg'); } $updtusertype="UPDATE arya_institutiontype SET insttype_name='".addslashes($txtname)."',"; foreach($langtext as $k=>$value) { $m=$k+1; $updtusertype.="insttype_officer$m='".$value."',"; } $updtusertype.="insttype_sequence='".$txtsequenceno."',insttype_visible='".$chkvisible."' WHERE insttype_id='".$instid."'"; $qryupdtusertype=mysql_query($updtusertype); getadminactivity('title_editinsttype',$pagesecid,$_SESSION["adminuserid"],$_SERVER["REMOTE_ADDR"],$txtname,$curntdate,$curnttime);//activity profile query if($qryupdtusertype) { if($_FILES['txtlogo']['name'] != "") { $smallimage=getFieldValue('insttype_logo','arya_institutiontype','insttype_id="'.$instid.'"'); $mainimage=str_replace('SM_','',$smallimage); $mainphotimage=str_replace('media','photo',$mainimage); if($conditionvar=='2') { unlink($smallimage); unlink($mainphotimage); } else { $filesmallimage=getFieldValue('insttype_logo','arya_institutiontype','insttype_id="'.$instid.'"'); $image=str_replace("./","media/",$filesmallimage); unlink($image); } if($conditionvar=='1') { include('arya_ftpfile.php'); ftp_delete($srvconnect_id ,$smallimage); ftp_delete($srvconn_id ,$mainimage); } $ImageSource = $_FILES['txtlogo']['tmp_name']; $number = rand(); $imagenumber=strtoupper(base_convert($number, 10, 36)); $FileName = $imagenumber."_".str_replace(" ","_",$_FILES['txtlogo']['name']); $SmallFileName = $imagenumber."_SM_".str_replace(" ","_",$_FILES['txtlogo']['name']); $ext=substr(strtolower($FileName),strpos($FileName,'.')+1); if(strlen($ext) > 4) { $ext=substr(strtolower($ext),strpos($ext,'.')+1); } if($conditionvar=='2') { if($ext=="gif" || $ext=="GIF") { include('arya_makedirectory.php'); $Thumwidth = "150"; $Thumheight = ""; $filePath=$photomonthpath.$FileName; $d=copy($ImageSource,$filePath); if($d) { $ThumbtoPath=$mediamonthpath.$SmallFileName; $UploadImg=generate_image_thumbnail($ImageSource, $ThumbtoPath, $Thumwidth, $Thumheight); if($UploadImg== "true") { $qryUpdateInst = "UPDATE arya_institutiontype SET insttype_logo='".$ThumbtoPath."' WHERE insttype_id='".$instid."'"; $qUpdateInst = mysql_query($qryUpdateInst); } } }//extention condition over }//if($conditionvar=='2') else { $year=date('Y'); $month=date('m'); $mediaPath="media/"; $mediayearpath="media/".$year."/"; $mediamonthpath="media/".$year."/".$month."/"; $Thumwidth = "150"; $Thumheight = ""; if(!is_dir($mediaPath)) { mkdir($mediaPath); chmod($mediaPath,0777); } if(!is_dir($mediayearpath)) { mkdir($mediayearpath); chmod($mediayearpath,0777); } if(!is_dir($mediamonthpath)) { mkdir($mediamonthpath); chmod($mediamonthpath,0777); } $ThumbtoPath=$mediamonthpath.$SmallFileName; $UploadImg=generate_image_thumbnail($ImageSource, $ThumbtoPath, $Thumwidth, $Thumheight); } if($conditionvar=='1') { if($ext=="jpg" || $ext=="gif" || $ext=="png" || $ext=="jpeg" || $ext=="bmp" || $ext=="JPG" || $ext=="JPEG" || $ext=="GIF" ||$ext=="PNG" ||$ext=="BMP") { ob_start(); $myFile = $_FILES['txtlogo']; $srvfile = $myFile['tmp_name']; include('arya_ftpfile.php'); $destination_file =$destDirsrv.'/'.$FileName; $smalldestination_file =$destDirsrv.'/'.$SmallFileName; $srvupload = ftp_put($srvconn_id, $destination_file, $srvfile, FTP_BINARY); $srvthumbupload = ftp_put($srvconnect_id, $smalldestination_file, $srvfile, FTP_BINARY); $smupload = ftp_put($srvconnect_id, $smalldestination_file, "http://".$_SERVER['HTTP_HOST']."/aryaadmin/media/".$year."/".$month."/".$SmallFileName, FTP_BINARY); ftp_close($srvconn_id); ftp_close($srvconnect_id); $qryUpdateInst = "UPDATE arya_institutiontype SET insttype_logo='".$smalldestination_file."' WHERE insttype_id='".$instid."'"; $qUpdateInst = mysql_query($qryUpdateInst); } } getadminactivity('title_editinsttype',$pagesecid,$_SESSION["adminuserid"],$_SERVER["REMOTE_ADDR"],$txtname,$curntdate,$curnttime);//activity profile query //echo "<script language=javascript>location.href='arya_addinstitutetype.php?msg=update'; } } RedirecPage('arya_addinstitutetype.php?msg=update'); } else { $msg=$msgFillFormField; } } $classtype='class="txtbox"'; $classoff='class="txtbox"'; $ooficerclass='class="txtbox"'; $classseqerrnm='class="txtseq"'; if($_GET['msg']=="emptype") { $emtttle=$lbl_errmenmsg." ".$lbl_insttype; $msg=$emtttle; $org_type_name=""; $classtype='class="errtxtengbord"'; } else if($_GET['msg']=="typeerr") { $emtttle=$lbl_errvalidmsg." ".$lbl_insttype; $msg=$emtttle; $org_type_name=""; $classtype='class="errtxtengbord"'; } else if($_GET['msg']=="empoff") { $emtttle=$lbl_errmenmsg." Officer1"; $msg=$emtttle; $officer1=""; $classoff='class="errtxtengbord"'; } else if($_GET['msg']=="officer1") { $emtttle=$lbl_errvalidmsg." Officer1"; $msg=$emtttle; $officer1=""; $classoff='class="errtxtengbord"'; } else if($_GET['msg']=="officer2") { $emtttle=$lbl_errvalidmsg." Officer2"; $msg=$emtttle; $officer2=""; $ooficerclass='class="errtxtengbord"'; } else if($_GET['msg']=="officer3") { $emtttle=$lbl_errvalidmsg." Officer3"; $msg=$emtttle; $officer3=""; $ooficerclass='class="errtxtengbord"'; } else if($_GET['msg']=="officer4") { $emtttle=$lbl_errvalidmsg." Officer4"; $msg=$emtttle; $officer4=""; $ooficerclass='class="errtxtengbord"'; } else if($_GET['msg']=="officer5") { $emtttle=$lbl_errvalidmsg." Officer5"; $msg=$emtttle; $officer5=""; $ooficerclass='class="errtxtengbord"'; } else if($_GET['msg']=="officer6") { $emtttle=$lbl_errvalidmsg." Officer6"; $msg=$emtttle; $officer6=""; $ooficerclass='class="errtxtengbord"'; } else if($_GET['msg']=="officer7") { $emtttle=$lbl_errvalidmsg." Officer7"; $msg=$emtttle; $officer7=""; $ooficerclass='class="errtxtengbord"'; } else if($_GET['msg']=="officer8") { $emtttle=$lbl_errvalidmsg." Officer8"; $msg=$emtttle; $officer8=""; $ooficerclass='class="errtxtengbord"'; } else if($_GET['msg']=="officer9") { $emtttle=$lbl_errvalidmsg." Officer9"; $msg=$emtttle; $officer9=""; $ooficerclass='class="errtxtengbord"'; } else if($_GET['msg']=="officer10") { $emtttle=$lbl_errvalidmsg." Officer10"; $msg=$emtttle; $officer10=""; $ooficerclass='class="errtxtengbord"'; } else if($_GET['msg']=="seqerr") { $emtttle=$lbl_errvalidmsg." ".$lbl_sequence; $msg=$emtttle; $org_type_seq=""; $classseqerrnm='class="txtseqerr"'; } else if($_GET['msg']=='dupmsg') { $msg=$msgDuplicatRecord; } else { unset($_SESSION['txtname']); unset($_SESSION['officer1']); unset($_SESSION['arrayname']); unset($_SESSION['txtsequenceno']); unset($_SESSION['yesvisible']); unset($_SESSION['novisible']); $classtype='class="txtbox"'; $classoff='class="txtbox"'; $classseqerrnm='class="txtseq"'; $ooficerclass='class="txtbox"'; } if($_GET['msg']=="err") // php validation error message { $msg="Please Enter Valid Input"; } $btntype='type="reset"'; if($_GET['msg']=="emptype" || $_GET['msg']=="typeerr" || $_GET['msg']=="empoff" || $_GET['msg']=="officer1" || $_GET['msg']=="officer2" || $_GET['msg']=="officer3" || $_GET['msg']=="officer4" || $_GET['msg']=="officer5" || $_GET['msg']=="officer6" || $_GET['msg']=="officer7" || $_GET['msg']=="officer8" || $_GET['msg']=="officer9" || $_GET['msg']=="officer10" || $_GET['msg']=="seqerr" || $_GET['msg']=='dupmsg' ) { $btntype='type="submit"'; if(isset($_POST['btn_reset'])) { RedirecPage('arya_editinstitutetype.php?instid='.$_GET["instid"].'&scid='.$_GET['scid']); } } ?> <script language="JavaScript"> $(document).ready(function() { $("#txtlogo").change(function () { var size = 102400; var iSize = ($("#txtlogo")[0].files[0].size); if (iSize > size) { alert("Please Upload Only Less-Than 100 Kb Image."); this.value=''; document.frminsttype.txtlogo.focus(); } }); }); //image size validation end function addTExtboxForInstType1(val)//this function is used for add Institution Type Text Box in institution type { var iVal = document.getElementById('no_of_i').value; var test1 = document.getElementById('test').value; if(iVal=="-1") { iVal=0; } val = Number(test1) + Number(iVal); if(Number(val) == 10) { alert("You can add maximum 10 Officers."); } else { var divId = 'imagefile'+val; var element = document.getElementById(divId); element.style.display = "inline"; iVal ++; document.getElementById('no_of_i').value = iVal; } } </script> <form name="frminsttype" id="frminsttype" method="post" action="" enctype="multipart/form-data" onsubmit="return blankInsttype();"> <table border="0" width="100%" summary="" cellpadding="0" cellspacing="0"> <tr><td align="center" height="85"><h2 class="bigheader"><?php echo $title_editinsttype; ?></h2></td></tr> <?php echo SuccessMessage($msg);?> <tr> <td align="center"> <table cellpadding="0" cellspacing="0" border="0"> <?php ?> <tr><td colspan="2" height="5"></td></tr> <tr> <td align="right" width="40%"><?php echo $sign." ".$lbl_insttype;?> : </td> <td><input type="text" name="txtname" id="txtname" <?php echo $classtype; ?> value="<?php if($_SESSION['txtname']!=""){ echo $_SESSION['txtname']; }else{ echo $org_type_name; }?>" onkeypress="return isAlphabetic(event);" maxlength="200"/> <input type="hidden" name="hidid" id="hidid" value="<?php echo $org_type_id;?>" /></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="40%"><?php echo $sign." "?>Officer1 : </td> <td> <input type="text" name="officer1" id="officer1" <?php echo $classoff; ?> value="<?php if($_SESSION['officer1']!=""){ echo $_SESSION['officer1'];}else{ echo $officer1; }?>" maxlength="200"/> <?php $j=0;?><a href="javascript:addTExtboxForInstType1(<?php echo $j;?>);"> <img src="images/plus.png" height="13" width="13" border="0" /></a></td> </tr> <tr><td height="5" colspan="6"></td></tr> <?php $j=0; $k=0; ?> <input type="hidden" name="no_of_i" id="no_of_i" value="<?php echo $count;?>"> <input type="hidden" name="test" id="test" value="<?php echo $k; ?>"> <input type="hidden" name="sequence" id="sequence" value="<?php //echo $l; ?>"> <tr align="center" colspan="6"> <td align="center" colspan="6"> <?php $sesscount=count($_SESSION['arrayname']); $p=2; for($i=0;$i<=9;$i++) { $m=$i+2; ?> <?php if($sesscount<=0) { if($arrayname[$i+1]==""){ ?> <div class="divDisplayHide" id="imagefile<?php echo $i+1; ?>" > <?php }else { ?> <div id="imagefile<?php echo $i;?>"><?php } } else { if($_SESSION['arrayname'][$i]==""){ ?> <div class="divDisplayHide" id="imagefile<?php echo $i+1; ?>" > <?php }else { ?> <div id="imagefile<?php echo $i;?>"><?php } } ?> <table cellpadding="0" cellspacing="0" border="0" width="60%"> <tr colspan="6" align="center"> <td width="42%" align="right">Officer<?php echo $m; ?> : </td> <td><input type="text" name="officer<?php echo $m;?>" id="officer<?php echo $m;?>" <?php if($_GET['msg']=="officer".$p) { echo $ooficerclass='class="errtxtengbord"'; } else { echo $ooficerclass='class="txtbox"'; } ?> value="<?php if($_SESSION['arrayname'][$i]!=""){ echo $_SESSION['arrayname'][$i];}else{ echo $txtname1[$i+1]; } ?>" maxlength="200"/> </td> </tr> <tr><td height="5" colspan="6"></td></tr> </table> </div> <?php $k++; $p++; } ?> </td> </tr> <tr><td colspan="2" height="5"></td></tr> <tr> <td align="right" width="40%"><?php echo $sign." "."Default Logo";?> : </td> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" > <tr> <td><input type="file" name="txtlogo" id="txtlogo" value="" /></td> <td><img src="<?php echo $pathvar.$logoinst; ?>" width="80" alt="" title="" /></td> </tr> </table> </td> </tr> <tr><td colspan="2" height="5"></td></tr> <?php if($rightapprove == 'Self' || $rightapprove == 'All') { ?> <tr> <td align="right" width="30%"><?php echo $lbl_sequence?> : </td> <td> <input type="text" name="txtsequenceno" id="txtsequenceno" onkeypress='return checkInt(event);' value="<?php if($_SESSION['txtsequenceno']!=""){echo $_SESSION['txtsequenceno'];}else{ echo $org_type_seq; }?>" <?php echo $classseqerrnm; ?> size='1' maxlength='3' /> </td> </tr> <tr><td colspan="2" height="5"></td></tr> <tr> <td align="right" width="30%"><?php echo $lbl_visible;?> : </td> <td><input type="radio" name="chkvisible" id="chkvisible" value="Yes" <?php if($_SESSION['yesvisible']!=""){echo $_SESSION['yesvisible'];} else { echo $visibleyes; }?>/>Yes <input type="radio" name="chkvisible" id="chkvisible" value="No" <?php if($_SESSION['novisible']!=""){echo $_SESSION['novisible'];}else{ echo $visibleno; } ?>/>No </td> </tr><?php } ?> <tr><td colspan="2" height="5"></td></tr> <tr> <td align="right" width="40%"></td> <td> <input type="submit" name="btnUpdate" id="btnUpdate" value="<?php echo $btn_update;?>" class="button" /> <input <?php echo $btntype; ?> name="btn_reset" id="btn_reset" value="<?php echo $btn_reset; ?>" class="button"/> <input type="button" name="btnBack" id="btnBack" value="<?php echo $btn_back; ?>" class="button" onclick="history.back(-1);" /> </td> </tr> </table> </td></tr> </table> </form> <?php // content over // footer start include("arya_footer.php"); // footer over ?>
Close