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.28
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_addinstitution_09-10-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 vaishali //changed by navneet date:17/10/2012 //header start include('arya_header.php'); //header over // link start include("arya_menu.php"); // link over //unset for add photo pop-up unset($_SESSION['photoinstsid']); unset($_SESSION['mngnewsphoto']); //unset for add photo pop-up $msgid=$_SESSION["adminuserid"]; $logindate=date('Y-m-d h:i:s'); //this is use for select institution type then display logo start if($_POST["insttypelogoid"] > 0) { $_SESSION["logoses"]=$_POST["insttypelogoid"]; } $newinsttplogo=getFieldValue('insttype_logo','arya_institutiontype','insttype_id="'.$_SESSION["logoses"].'"'); $insttplogo=str_replace("./","",$newinsttplogo); //this is use for select institution type then display logo end //This is used for click on back button in aryasama-instprofile.php file then display data start $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.'"'); if ($_GET['bid']>0) { $bid=1; $_SESSION['type']=$insttypeid; } else { $bid=0; unset($_SESSION['type']); } if($_GET['inid']==0 || $_GET['inid']=="") { $checkever=''; $stylvalue='disabled="true"'; } else { $checkever='checked=checked'; } $qrypostinst="SELECT * FROM arya_institution WHERE inst_id = '".$_GET['inid']."'"; $qpostinst=mysql_query($qrypostinst); $qFetchpostinst=mysql_fetch_array($qpostinst); if($_GET['inid'] > 0) { $insttypeid=$qFetchpostinst["insttype_id"]; $instparid=$qFetchpostinst["inst_parentid"]; $instname=$qFetchpostinst["inst_name"]; $insthinname=$qFetchpostinst["inst_namehindi"]; $instothername=$qFetchpostinst["inst_nameother"]; $fetchinstlogo=$qFetchpostinst["inst_image"]; $fetchinstlogo=str_replace("./","",$fetchinstlogo); if($fetchinstlogo=="") { $newinstlogo=getFieldValue('insttype_logo','arya_institutiontype','insttype_id="'.$insttypeid.'" '); } else { $newinstlogo=$fetchinstlogo; } $instlogo=str_replace("./","",$newinstlogo); $instwebadd1=$qFetchpostinst["inst_webadd"]; $instbriefinfo=$qFetchpostinst["inst_briefinfo"]; $cntid=$qFetchpostinst["cnt_id"]; $defaultcnt=getFieldValue('cnt_name','arya_country','cnt_id="'.$cntid.'" '); $sttid=$qFetchpostinst["state_id"]; $cityid=$qFetchpostinst["city_id"]; $instaddress=$qFetchpostinst["inst_address"]; $instpincode=$qFetchpostinst["inst_pincode"]; $instconno=$qFetchpostinst["inst_contactno"]; $instemail=$qFetchpostinst["inst_email"]; $instwebsite=$qFetchpostinst["inst_offwebsite"]; $instmagazine=$qFetchpostinst["inst_magazine"]; $instlat=$qFetchpostinst["inst_latitude"]; $instlong=$qFetchpostinst["inst_longitude"]; $instlevel=$qFetchpostinst["inst_typelevel"]; $getcityid=getFieldValue('city_id','arya_institution','inst_id="'.$instparid.'" '); $fetchapp=$qFetchpostinst["inst_approve"]; if($_SERVER['HTTP_HOST']=="www.thearyasamaj.org" || $_SERVER['HTTP_HOST']=="thearyasamaj.org") { $_SERVER['HTTP_HOST']=="www.thearyasamaj.org"; $instwebadd = substr($instwebadd1, 21); } else { $instwebadd = substr($instwebadd1, 22); } if($fetchapp == 'Yes') { $approveyes='checked="checked"'; } else { $approveNo='checked="checked"'; } } if($instlevel=="") { $instlevel=2; } //This is used for click on back button in aryasama-instprofile.php file then display data start //===============Start Find Country Using Ip Address Added By Navneet================== function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy { $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip=$_SERVER['REMOTE_ADDR']; } return $ip; } if($_SERVER['SERVER_NAME']=='www.aryasamajdelhi.pb') { $defaultcnt = "India"; //this is use for local site. $cntid=getFieldValue('cnt_id','arya_country','cnt_name="'.$defaultcnt.'"'); } else { $IP=getRealIpAddr(); $json_url = "http://api.ipinfodb.com/v3/ip-country/?key=dccada161968283466392e7937ed6c1e753717bf99e71b41058a1a0f013ef29a&ip=".$IP."&format=json"; $json = file_get_contents($json_url); $data = json_decode($json,true); $defaultcnt = $data["countryName"]; //get country name this is use for live site. $cntid=getFieldValue('cnt_id','arya_country','cnt_name="'.$defaultcnt.'"'); } //=================== End Find Country Using Ip Address================== if($_GET['msg']=='err') { $msg="Please Enter Valid Input."; } if($_SERVER['HTTP_HOST'] =='thearyasamaj.org') { $_SERVER['HTTP_HOST']='www.thearyasamaj.org'; } $curntdate=date('Y-m-d'); $curnttime= date('h:i:s'); if(isset($_POST["btnsubmit"]))//update start { $userid=$_SESSION["adminuserid"]; //login user id $fetchlanguage=explode(",",$_POST["instlngid"]); $postlangname=$fetchlanguage[0]; $postlangid=$fetchlanguage[1]; $_SESSION['instlngid']=$postlangid; $_SESSION['hidlngid']=$_POST['hidlngid']; $postinsttypeid = $_POST["cmbInstType"]; $_SESSION['cmbInstType']=$postinsttypeid; $postinstparentid = $_POST["cmbparentinst"]; $_SESSION['cmbparentinst']=$postinstparentid; $postcmdid = $_POST["cmbcountry"]; $_SESSION['cmbcountry']=$postcmdid; $poststateid = $_POST['cmbstate']; $_SESSION['cmbstate']=$poststateid; $postcityid = $_POST["cmbcity"]; $_SESSION['cmbcity']=$postcityid; if($rightapprove == 'Self' || $rightapprove == 'All') { $tresurapprove=$_POST["txtapprove"]; } else { $tresurapprove="No"; } $postinstnm = addslashes($_POST['txtinstname']); $_SESSION["txtinstname"]=$postinstnm; $txthindiinstnm = addslashes($_POST['txtinsthindiname']); $_SESSION["txtinsthindiname"]=$txthindiinstnm; $othertxtinstnm = addslashes($_POST['txtinstothername']); $_SESSION["txtinstothername"]=$othertxtinstnm; unset($_SESSION['yesapprove']); unset($_SESSION['noapprove']); if($_POST["txtapprove"]=='Yes') { $_SESSION['yesapprove']='checked="checked" '; } if($_POST["txtapprove"]=='No') { $_SESSION['noapprove']='checked="checked" '; } if($_GET['inid'] > 0) { $postwebadd =$_SERVER['HTTP_HOST']."/".addslashes($_POST["txtwebadd"]); $updateduplicate = getFieldValue('inst_webadd','arya_institution','inst_webadd="'.$postwebadd.'" AND inst_id!="'.$_GET["inid"].'"'); } else { $postwebadd =$_SERVER['HTTP_HOST']."/".addslashes($_POST["txtwebadd"]); $duplicate=getFieldValue('inst_webadd','arya_institution','inst_webadd="'.$postwebadd.'"'); } $postwebaddress=$_POST['txtwebadd']; $postbrief=addslashes($_POST["FckContent"]); $_SESSION['FckContent']=$postbrief; // $postbrief = addslashes($_POST['txtbrief']); // $_SESSION['txtbrief']=$postbrief; $postinstitutelevel=$_POST["cmbinstitutionlevel"]; $_SESSION['cmbinstitutionlevel']=$postinstitutelevel; $txtinstadd = addslashes($_POST["txtaddress"]); $_SESSION["txtaddress"]=$txtinstadd; $txtpincode = addslashes($_POST["txtpincode"]); $_SESSION['txtpincode']=$txtpincode; $txtconno= addslashes($_POST["txtconno"]); $_SESSION['txtconno']=$txtconno; $txtoffemail = addslashes($_POST["txtoffemail"]); $_SESSION['txtoffemail']=$txtoffemail; $postwebsite= addslashes($_POST["txtwebsite"]); $_SESSION['txtwebsite']=$postwebsite; $postmagazine = addslashes($_POST["txtmagazine"]); $postlatitude= addslashes($_POST["lat"]); $_SESSION['lat']=$postlatitude; $postlongitude =addslashes($_POST["lng"]); $_SESSION['lng']=$postlongitude; $ip = $_SERVER['REMOTE_ADDR']; $todaydate=date('Y-m-d H:i:s'); $posttermcond=$_POST["txtcondition"]; $pagesequence=getFieldValueWithoutWhere("MAX(inst_sequence)","arya_institution"); if($pagesequence ==""){$nvsquence=1;} else {$nvsquence=$pagesequence+1;} $filename ='../.htaccess'; $contents = file_get_contents($filename); // escape special characters in the query $ruleurl='RewriteRule ^'.$_POST["txtwebadd"].'$'.' /aryasamaj-institutionwebpage.php'; $searchthis = $_POST["txtwebadd"]; $_SESSION['txtwebadd']=$searchthis; $pattern = preg_quote($searchthis, '/'); // finalise the regular expression, matching the whole line $pattern = "/^.*$pattern.*\$/m"; // search, and store all matching occurences in $matches if($_SESSION['instlngid'] > 0) { //$_SESSION['nlnid']; $sellngid='sellng='.$_SESSION['instlngid'].'&'; } else { $sellngid=''; } if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if($_GET['inid'] > 0) { if($postinsttypeid<=0) { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=emptype'); } else if($postinstnm=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=empengname'); } else if($_SESSION['instlngid']==2 && $txthindiinstnm=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=emphndname'); } else if($_SESSION['instlngid']>2 && $othertxtinstnm=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=empothrname'); } else if($_POST["txtwebadd"]=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=empwebadd'); } else if($postcmdid<=0) { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=empcnt'); } else if($poststateid<=0) { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=empstate'); } else if($txtinstadd=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=empadd'); } else if($txtoffemail=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=empemail'); } } else { if($postinsttypeid<=0) { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=emptype'); } else if($postinstnm=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=empengname'); } else if($_SESSION['instlngid']==2 && $txthindiinstnm=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=emphndname'); } else if($_SESSION['instlngid']>2 && $othertxtinstnm=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=empothrname'); } else if($_POST["txtwebadd"]=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=empwebadd'); } else if($postcmdid<=0) { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=empcnt'); } else if($poststateid<=0) { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=empstate'); } else if($txtinstadd=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=empadd'); } else if($txtoffemail=="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=empemail'); } } } if($postinstnm!="") { if($postwebsite!="") { $advresult = substr($postwebsite, 0, 7); $advresults = substr($postwebsite, 0, 8); if($advresult=="http://") { $checktxtlink=$postwebsite; } else if($advresults=="https://") { $checktxtlink=$postwebsite; } else { $checktxtlink="http://".$postwebsite; } } if($_GET['inid'] > 0) { if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if(find_scripttags($postinstnm)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=engnmerr'); } else if(find_scripttags($txthindiinstnm)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=hndnmerr'); } else if(find_scripttags($othertxtinstnm)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=otrnmerr'); } else if(find_scripttags($searchthis)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=weberr'); } /*else if(find_scripttags($postbrief)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=brieferr'); }*/ else if(find_scripttags($txtinstadd)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=adderr'); } else if(is_digits($txtpincode)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=pinerr'); } else if(find_scripttags($txtconno)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=contacterr'); } else if(find_scripttags($txtoffemail)=="Yes" || ValidEmailCheck($txtoffemail)==false) { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=emailerr'); } else if(find_scripttags($postwebsite)=="Yes") { if($postwebsite!="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=siteweberr'); } } else if(find_scripttags($postlatitude)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=laterr'); } else if(find_scripttags($postlongitude)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=longerr'); } } //$dupdbdiscvwebadd=getFieldValue("webadd_name","arya_webaddresses","webadd_name='".$discvrlink."'"); $dtime=time(); $curdate=date('Y-m-d'); $updtime=date('H:i:s A',$dtime); $webaddinstime=date('h:i A',$dtime); $upddiscoverlink="discover.thearyasamaj.org/".$_POST['txtwebadd']; //$updtdupdbwebadd=getFieldValue("webadd_name","arya_webaddresses","webadd_name LIKE '%$postwebaddress%' AND inst_id!=".$_GET['inid'].""); $updtdupdbwebadd=getFieldValue('webadd_name','arya_webaddresses','webadd_name="'.$_POST['txtwebadd'].' " AND inst_id!="'.$_GET['inid'].'"'); $updtdupdbdiscvwebadd=getFieldValue('webadd_name','arya_webaddresses','webadd_name="'.$upddiscoverlink.'" AND inst_id!="'.$_GET['inid'].'"'); if($_SERVER['HTTP_HOST']=="www.thearyasamaj.org" || $_SERVER['HTTP_HOST']=="thearyasamaj.org") { $_SERVER['HTTP_HOST']=="www.thearyasamaj.org"; $updaprmrywebname=substr($updtdupdbwebadd, 21); $updadiscvrwbnm=substr($updtdupdbdiscvwebadd, 26); } if($_SERVER['HTTP_HOST']=="www.aryasamajdelhi.pb") { $updaprmrywebname=substr($updtdupdbwebadd, 22); $updadiscvrwbnm=substr($updtdupdbdiscvwebadd, 26); } /*if($updateduplicate!='') { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=dupweb'); }*/ if($updtdupdbwebadd!="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=dupweb'); } else { $qryInsnewreg="UPDATE arya_institution SET `lang_id`='".$postlangid."',`login_id`='".$userid."',`cnt_id`='".$postcmdid."',`state_id`='".$poststateid."',`city_id`='".$postcityid."',`insttype_id`='".$postinsttypeid."',`inst_parentid`='".$postinstparentid."',`inst_name`='".$postinstnm."',`inst_namehindi`='".$txthindiinstnm."',`inst_nameother`='".$othertxtinstnm."',`inst_address`='".$txtinstadd."',`inst_pincode`='".$txtpincode."',`inst_email`='".$txtoffemail."',`inst_offwebsite`='".$checktxtlink."',`inst_magazine`='".$postmagazine."',`inst_webadd`='".$postwebadd."',`inst_briefinfo`='".$postbrief."',`inst_contactno`='".$txtconno."',`inst_latitude`='".$postlatitude."',`inst_longitude`='".$postlongitude."',`inst_sequence`='".$nvsquence."',`inst_date`='".$todaydate."',inst_approve='".$tresurapprove."',inst_typelevel='".$postinstitutelevel."',`inst_ip`='".$ip."' where inst_id='".$_GET['inid']."'"; $newRegInsert = mysql_query($qryInsnewreg); $dnId = $_GET['inid']; $numar=getArrayFieldValue('webadd_id','arya_webaddresses','inst_id="'.$dnId.'"'); $updtwebaddrss="UPDATE arya_webaddresses SET webadd_name='".$_POST['txtwebadd']."' WHERE webadd_id='".$numar[0]."'"; $qrywebaddrss=mysql_query($updtwebaddrss); getadminactivity('title_addinstitution',$pagesecid,$_SESSION["adminuserid"],$_SERVER["REMOTE_ADDR"],$postinstnm,$curntdate,$curnttime);//activity profile query } } else { if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if(find_scripttags($postinstnm)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=engnmerr'); } else if(find_scripttags($txthindiinstnm)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=hndnmerr'); } else if(find_scripttags($othertxtinstnm)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=otrnmerr'); } else if(find_scripttags($searchthis)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=weberr'); } /*else if(find_scripttags($postbrief)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=brieferr'); }*/ else if(find_scripttags($txtinstadd)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=adderr'); } else if(is_digits($txtpincode)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=pinerr'); } else if(find_scripttags($txtconno)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=contacterr'); } else if(find_scripttags($txtoffemail)=="Yes" || ValidEmailCheck($txtoffemail)==false) { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=emailerr'); } else if(find_scripttags($postwebsite)=="Yes") { if($postwebsite!="" && $checktxtlink!="") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=siteweberr'); } } else if(find_scripttags($postlatitude)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=laterr'); } else if(find_scripttags($postlongitude)=="Yes") { RedirecPage('arya_addinstitution.php?'.$sellngid.'msg=longerr'); } } //$dupdbdiscvwebadd=getFieldValue("webadd_name","arya_webaddresses","webadd_name='".$discvrlink."'"); $dtime=time(); $curdate=date('Y-m-d'); $updtime=date('H:i:s A',$dtime); $webaddinstime=date('h:i A',$dtime); $discoverlink="discover.thearyasamaj.org/".$_POST['txtwebadd']; $dupdbwebadd=getFieldValue('webadd_name','arya_webaddresses','webadd_name="'.$_POST['txtwebadd'].'"'); //$dupdbwebadd=getFieldValue("webadd_name","arya_webaddresses","webadd_name LIKE '%$postwebaddress%'"); $dupdbdiscvwebadd=getFieldValue('webadd_name','arya_webaddresses','webadd_name="'.$discoverlink.'"'); if($_SERVER['HTTP_HOST']=="www.thearyasamaj.org" || $_SERVER['HTTP_HOST']=="thearyasamaj.org") { $_SERVER['HTTP_HOST']=="www.thearyasamaj.org"; $prmrywebname=substr($dupdbwebadd, 21); $discvrwbnm=substr($dupdbdiscvwebadd, 26); } if($_SERVER['HTTP_HOST']=="www.aryasamajdelhi.pb") { $prmrywebname=substr($dupdbwebadd, 22); $discvrwbnm=substr($dupdbdiscvwebadd, 26); } if($dupdbwebadd != "") { RedirecPage('arya_addinstitution.php?'.$sellngid.'inid='.$_GET['inid'].'&bid='.$_GET['bid'].'&msg=dupweb'); } else { getadminactivity('title_addinstitution',$pagesecid,$_SESSION["adminuserid"],$_SERVER["REMOTE_ADDR"],$postinstnm,$curntdate,$curnttime);//activity profile query //admin activity end $qryInsnewreg="INSERT INTO arya_institution(`lang_id`, `login_id`, `cnt_id`, `state_id`, `city_id`, `insttype_id`, `inst_parentid`, `inst_name`, `inst_namehindi`, `inst_nameother`, `inst_address`, `inst_pincode`, `inst_email`, `inst_offwebsite`, `inst_magazine`,`inst_webadd`, `inst_briefinfo`,`inst_contactno`, `inst_latitude`, `inst_longitude`, `inst_sequence`,`inst_date`,`inst_time`,`user_id`,`inst_ip`,inst_approve,inst_typelevel) VALUES('".$postlangid."','".$userid."','".$postcmdid."','".$poststateid."','".$postcityid."','".$postinsttypeid."','".$postinstparentid."','".$postinstnm."','".$txthindiinstnm."','".$othertxtinstnm."','".$txtinstadd."','".$txtpincode."','".$txtoffemail."','".$checktxtlink."','".$postmagazine."','".$postwebadd."','".$postbrief."','".$txtconno."','".$postlatitude."','".$postlongitude."','".$nvsquence."','".$todaydate."','".$updtime."','".$msgid."','".$ip."','".$tresurapprove."','".$postinstitutelevel."')"; $newRegInsert = mysql_query($qryInsnewreg); $dnId = mysql_insert_id(); $inswebaddrss="INSERT INTO arya_webaddresses (inst_id,webadd_name,webadd_instdate,webadd_time) VALUES ('".$dnId."','".$_POST['txtwebadd']."','".$curdate."','".$webaddinstime."')"; $qrywebaddrss=mysql_query($inswebaddrss); $qryInsChk="INSERT INTO arya_institutecheck(`login_id`) VALUES('".$dnId."')"; $qInsChk=mysql_query($qryInsChk); if($tresurapprove=="Yes") { $instupdradmid=getFieldValue('user_id','arya_institution','inst_id='.$dnId.''); $instupdr=getFieldValue('inst_clientuserid','arya_institution','inst_id='.$dnId.''); $rughtsinstid=getFieldValue('inst_id','arya_instwebpagecheck','inst_id='.$dnId.''); $rughtsuserid=getFieldValue('clientuser_id','arya_instwebpagecheck','inst_id='.$dnId.''); $rughtsadmuserid=getFieldValue('user_id','arya_instwebpagecheck','inst_id='.$dnId.''); if($dnId!=0 && $dnId!=$rughtsinstid && $instupdr!=$rughtsuserid || $dnId!=0 && $dnId!=$rughtsinstid && $instupdradmid!=$rughtsadmuserid) { if($instupdradmid>0) { $userid=$instupdradmid; $usrname='user_id'; } if($instupdr>0) { $userid=$instupdr; $usrname='clientuser_id'; } //fetch record from arya_instwebpagerights table display check box rights wise start $selwebpage="SELECT * FROM arya_instwebpagerights ORDER BY instlbl_id"; //$selwebpage="SELECT * FROM arya_instwebpagerights WHERE inst_id='191' order by instlbl_id"; $reswebpage=mysql_query($selwebpage); $numwebpage=mysql_num_rows($reswebpage); $fetchrighs=""; while($fetchwebpagerqe=mysql_fetch_array($reswebpage)) { $fetchrighs[]=$fetchwebpagerqe["instlbl_appyn"]; } $insterinstweb="INSERT INTO arya_instwebpagecheck(inst_id,webpgcheck_lng,webpgcheck_type,webpgcheck_parent,webpgcheck_name,webpgcheck_logo,webpgcheck_webadd,webpgcheck_binfo,webpgcheck_cntid,webpgcheck_stateid,webpgcheck_cityid,webpgcheck_address,webpgcheck_pincode,webpgcheck_conno,webpgcheck_offemail,webpgcheck_website,webpgcheck_map,webpgcheck_genactvs,webpgcheck_seravlbl,webpgcheck_notice,webpgcheck_resource,webpgcheck_webpgadmin,webpgcheck_officer,webpgcheck_news,webpgcheck_cmngevts,webpgcheck_magazines,webpgcheck_photos,webpgcheck_videos,webpgcheck_officername,webpgcheck_officeremail,webpgcheck_officerphoto,webpgcheck_officermob,webpgcheck_pastevents,webpgcheck_delstatus,$usrname)VALUES('".$dnId."',"; foreach($fetchrighs as $instrghtval) { if($instrghtval=='User Defined') { $insterinstweb.="'No',"; } else { $insterinstweb.="'".$instrghtval."',"; } } $insterinstweb.="'No','".$userid."')"; $resinsterinstweb=mysql_query($insterinstweb); //fetch record from arya_instwebpagerights table display check box rights wise end }//if($instid!=0) } //this is user privacy check insert in arya_institutecheck table End //read the entire string // get the file contents, assuming the file to be readable (and exist) //echo "No matches found"; //read the entire string $str=implode(" ",file($filename)); $fp=fopen($filename,'a+'); //replace something in the file string - this is a VERY simple example //$str=str_replace($mgztitlewebadd,$_POST["txtwebadd"],$str); $b=$ruleurl."\n"; //now, TOTALLY rewrite the file fwrite($fp,$b); fclose($fp); //code for copy .htaccess file put by nitesh $today = date('Y-m-d'); $randno=rand(); $nvrndnumber=strtoupper(base_convert($randno, 10, 36)); $abcd ='../.htaccess'; $nvfilePath='../htaccessfile/addinst_'.$today.'_'.$nvrndnumber.'_usid '.$admusrid.'_htaccess'; copy($abcd ,$nvfilePath); } } if($newRegInsert) { if($_FILES['txtlogo']['name'] != "") { $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=="jpg" || $ext=="gif" || $ext=="png" || $ext=="jpeg" || $ext=="bmp" || $ext=="JPG" || $ext=="JPEG" || $ext=="GIF" ||$ext=="PNG" ||$ext=="BMP") { 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_institution SET inst_image='".$ThumbtoPath."' WHERE inst_id='".$dnId."'"; $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_institution SET inst_image='".$smalldestination_file."' WHERE inst_id='".$dnId."'"; $qUpdateInst = mysql_query($qryUpdateInst); } } } else if($insttplogo!="") { $qryUpdateInst = "UPDATE arya_institution SET inst_image='' WHERE inst_id='".$dnId."'"; $qUpdateInst = mysql_query($qryUpdateInst); } //$_SESSION['instautoid']=$dnId; unset($_SESSION["logoses"]); //RedirecPage('arya_addinstituteprofile.php?inid='.$dnId.'&bid='.$bid); if($_GET['inid'] > 0) { RedirecPage('arya_addinstituteprofile.php?inid='.$dnId.'&bid='.$bid); } else { ?> <script type="text/javascript"> <!-- $(document).ready(function(){ setTimeout(function() { //$.colorbox({iframe:true, href:'master',height:800,width:1000, open:true}); $.colorbox({iframe:true, href:"arya_instphotoupload.php?inid=<?php echo $dnId; ?>&bid=<?php echo $bid; ?>&name=<?php echo '0'; ?>", width:"850px", height:"650px", }); }, 500 ); }); //--> </script> <?php } }//if($_FILES['txtlogo']['name'] != "") }// } if($_GET['inid'] > 0) { $lang=$qFetchpostinst["lang_id"]; $lngname=getFieldValue('lang_name','arya_language','lang_id="'.$lang.'"'); } if($_GET['sellng'] > 0) { $lngname=getFieldValue('lang_name','arya_language','lang_id="'.$_GET['sellng'].'"'); $lang=$_GET['sellng']; } if($_GET['sellng']=="" && $_GET['inid']=="") { $lngname="Hindi"; $lang=2; $approveNo='checked="checked"'; } function getParentInsttype1($insttypeid,$cityid)//this function is used to display the institute with district name 20-Mar-2013 { $qry="select * from arya_institution order by inst_name asc"; $sel_query=mysql_query($qry) or GoToErrorPage(); while($sel_row=mysql_fetch_array($sel_query)) { $selected=($sel_row['inst_id'] == $insttypeid)?" selected":""; $selected=($sel_row['city_id'] == $cityid)?" selected":""; if($getcityid > 0) { $cityname=getFieldValue("city_name","arya_city","city_id='".$getcityid."'"); //login user name } else { $cityname=getFieldValue("city_name","arya_city","city_id='".$sel_row['city_id']."'"); //login user name } if($cityname != "") { $varct="(".$cityname.")"; } $select_box .="<option value='".$sel_row['inst_id']."'".$selected.">".$sel_row["inst_name"]."".$varct."</option>"; } return $select_box; } ?> <style> .brieftexs{ width:400px; border: solid 1px #CCCCCC; vertical-align: middle; padding: 3px; /*-moz-border-radius: 5px; /*border-radius: 5px;*/ margin: 0 5px 0 0; } .errbrief{ border:1px solid red; margin:0pt 5px 0pt 0pt; padding:3px; vertical-align:middle; width:400px; } </style> <?php $classinsttype='class="selbox"'; $classengname='class="txtbox"'; $classhndname='class="txtbox"'; $classothrname='class="txtbox"'; $classwebadd='class="txtbox"'; $classbrief='class="brieftexs"'; $classcnt='class="selbox"'; $classstate='class="selbox"'; $classadd='class="txtbox"'; $classpin='class="txtbox"'; $classcontact='class="txtbox"'; $classemail='class="txtbox"'; $classwebsite='class="txtbox"'; $classlat='class="txtbox"'; $classlong='class="txtbox"'; if($_GET['msg']=="emptype") { $emtttle="Please"." ".$lbl_selectinsttype; $msg=$emtttle; $insttypeid=""; $classinsttype='class="errtxtengbord"'; } else if($_GET['msg']=='empengname') { $emtttle=$lbl_errmenmsg." ".$lbl_instname." English"; $msg=$emtttle; $instname=""; $classengname='class="errtxtengbord"'; } else if($_GET['msg']=='engnmerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_instname." English"; $msg=$emtttle; $instname=""; $classengname='class="errtxtengbord"'; } else if($_GET['msg']=='emphndname') { $emtttle=$lbl_errmenmsg." ".$lbl_instname." Hindi"; $msg=$emtttle; $insthinname=""; $classhndname='class="errtxtengbord"'; } else if($_GET['msg']=='hndnmerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_instname." Hindi"; $msg=$emtttle; $insthinname=""; $classhndname='class="errtxtengbord"'; } else if($_GET['msg']=='empothrname') { $emtttle=$lbl_errmenmsg." ".$lbl_instname." Other"; $msg=$emtttle; $instothername=""; $classothrname='class="errtxtengbord"'; } else if($_GET['msg']=='otrnmerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_instname." Other"; $msg=$emtttle; $instothername=""; $classothrname='class="errtxtengbord"'; } else if($_GET['msg']=='empwebadd') { $emtttle=$lbl_errmenmsg." Web Address"; $msg=$emtttle; $instwebadd=""; $classwebadd='class="errtxtengbord"'; } else if($_GET['msg']=='weberr') { $emtttle=$lbl_errvalidmsg." Web Address"; $msg=$emtttle; $instwebadd=""; $classwebadd='class="errtxtengbord"'; } else if($_GET['msg']=='brieferr') { $emtttle=$lbl_errvalidmsg." Brief Information"; $msg=$emtttle; $instbriefinfo=""; $classbrief='class="errbrief"'; } else if($_GET['msg']=='empcnt') { $emtttle="Please"." ".$lbl_selectcountry; $msg=$emtttle; $cntid=""; $classcnt='class="errtxtengbord"'; } else if($_GET['msg']=='empstate') { $emtttle="Please"." ".$lbl_selectstate; $msg=$emtttle; $sttid=""; $classstate='class="errtxtengbord"'; } else if($_GET['msg']=='empadd') { $emtttle=$lbl_errmenmsg." ".$lbl_address; $msg=$emtttle; $instaddress=""; $classadd='class="errtxtengbord"'; } else if($_GET['msg']=='adderr') { $emtttle=$lbl_errvalidmsg." ".$lbl_address; $msg=$emtttle; $instaddress=""; $classadd='class="errtxtengbord"'; } else if($_GET['msg']=='pinerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_pincode; $msg=$emtttle; $instpincode=""; $classpin='class="errtxtengbord"'; } else if($_GET['msg']=='contacterr') { $emtttle=$lbl_errvalidmsg." ".$lbl_conno; $msg=$emtttle; $instconno=""; $classcontact='class="errtxtengbord"'; } else if($_GET['msg']=='empemail') { $emtttle=$lbl_errmenmsg." ".$lbl_offficialemail; $msg=$emtttle; $instemail=""; $classemail='class="errtxtengbord"'; } else if($_GET['msg']=='emailerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_offficialemail; $msg=$emtttle; $instemail=""; $classemail='class="errtxtengbord"'; } else if($_GET['msg']=='siteweberr') { $emtttle=$lbl_errvalidmsg." ".$lbl_officialwebsite; $msg=$emtttle; $instwebsite=""; $classwebsite='class="errtxtengbord"'; } else if($_GET['msg']=='laterr') { $emtttle=$lbl_errvalidmsg." ".$lbl_latitude; $msg=$emtttle; $instlat=""; $classlat='class="errtxtengbord"'; } else if($_GET['msg']=='longerr') { $emtttle=$lbl_errvalidmsg." ".$lbl_longotude; $msg=$emtttle; $instlong=""; $classlong='class="errtxtengbord"'; } else if($_GET['msg']=='dupweb') { $msg=$lbl_dupwebaddress; $classwebadd='class="errtxtengbord"'; } else { unset($_SESSION['instlngid']); unset($_SESSION['hidlngid']); unset($_SESSION['cmbInstType']); unset($_SESSION['cmbinstitutionlevel']); unset($_SESSION['cmbparentinst']); unset($_SESSION["txtinstname"]); unset($_SESSION["txtinsthindiname"]); unset($_SESSION["txtinstothername"]); unset($_SESSION['txtwebadd']); unset($_SESSION['FckContent']); unset($_SESSION['cmbcountry']); unset($_SESSION['cmbstate']); unset($_SESSION['cmbcity']); unset($_SESSION["txtaddress"]); unset($_SESSION['txtpincode']); unset($_SESSION['txtconno']); unset($_SESSION['txtoffemail']); unset($_SESSION['txtwebsite']); unset($_SESSION['lat']); unset($_SESSION['lng']); unset($_SESSION['yesapprove']); unset($_SESSION['noapprove']); $classinsttype='class="selbox"'; $classengname='class="txtbox"'; $classhndname='class="txtbox"'; $classothrname='class="txtbox"'; $classwebadd='class="txtbox"'; $classbrief='class="brieftexs"'; $classcnt='class="selbox"'; $classstate='class="selbox"'; $classadd='class="txtbox"'; $classpin='class="txtbox"'; $classcontact='class="txtbox"'; $classemail='class="txtbox"'; $classwebsite='class="txtbox"'; $classlat='class="txtbox"'; $classlong='class="txtbox"'; } if($_SESSION['yesapprove']!="" || $_SESSION['noapprove']!="") { $approveyes=""; $approveNo=""; } if($_GET['inid']>0) { $btntype='type="reset"'; if($_GET['msg']=="emptype" || $_GET['msg']=='empengname' || $_GET['msg']=='engnmerr' || $_GET['msg']=='emphndname' || $_GET['msg']=='hndnmerr' || $_GET['msg']=='empothrname' || $_GET['msg']=='otrnmerr' || $_GET['msg']=='empwebadd' || $_GET['msg']=='weberr' || $_GET['msg']=='brieferr' || $_GET['msg']=='empcnt' || $_GET['msg']=='empstate' || $_GET['msg']=='empadd' || $_GET['msg']=='adderr' || $_GET['msg']=='pinerr' || $_GET['msg']=='contacterr' || $_GET['msg']=='empemail' || $_GET['msg']=='emailerr' || $_GET['msg']=='weberr' || $_GET['msg']=='laterr' || $_GET['msg']=='longerr' || $_GET['msg']=='dupweb') { $btntype='type="submit"'; if(isset($_POST['btn_reset'])) { RedirecPage('arya_addinstitution.php?inid='.$_GET['inid'].'&bid='.$_GET['bid']); } } } if($_POST['txtapprove']!='Yes' || $_POST['txtapprove']!='No') { $_SESSION['noapprove']='checked="checked" '; } ?> <!--<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"> </script>--> <?php if($_GET['inid']>0) { ?> <script type="text/javascript"> $(document).ready(function(){ //newly added $("#txtwebadd").blur(function(){ var webadd = $("#txtwebadd").val(); // assuming this is a input text field var hdnmgtid=$("#hdnmgtid").val(); if(webadd.length>0) { $.ajax({ type: 'POST', data: 'txtwebadd='+webadd+'&prid='+hdnmgtid, url: 'arya_checkwebadd.php', success: function(data){ if(data==0) { $("#errlink").html(""); } else { //alert("Please Don't Insert Duplicate Web Address"); $("#errlink").html("<font color='red'>This Web Address is not available</font>"); document.frmnewinstreg.txtwebadd.focus(); return false; } //alert("ok"); //alert("call suc") } /*,error: function(){ //console.log(data); alert('There was an error in call'); }*/ }); return false; } else { $("#errlink").html(""); } }); }); </script> <?php } else { ?> <script type="text/javascript"> $(document).ready(function(){ //newly added $("#txtwebadd").blur(function(){ var webadd = $("#txtwebadd").val(); // assuming this is a input text field if(webadd.length>0) { $.ajax({ type: 'POST', data: 'txtwebadd='+webadd, url: 'arya_checkwebadd.php', success: function(data){ if(data==0) { $("#errlink").html(""); } else { //alert("Please Don't Insert Duplicate Web Address"); $("#errlink").html("<font color='red'>This Web Address is not available</font>"); document.frmnewinstreg.txtwebadd.focus(); return false; } //alert("ok"); //alert("call suc") } /*,error: function(){ //console.log(data); alert('There was an error in call'); }*/ }); return false; } else { $("#errlink").html(""); } }); }); </script> <?php } ?> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <!-- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> --> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script> <script type="text/javascript"> var map; function initialize() { var myLatlng = new google.maps.LatLng('28.44906145175422','77.14599612500001'); var myOptions = { zoom: 7, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var infowindow = new google.maps.InfoWindow({ //content: "Drag marker to position <br /> or click to place" }); //infowindow.open(map); google.maps.event.addListener(map, 'click', function(event) { var clickedLocation = new google.maps.LatLng(event.latLng); var marker = new google.maps.Marker({ position: event.latLng, title:"Marker position", draggable: true, map: map }); infowindow.open(map,marker); map.setCenter(event.latLng); google.maps.event.addListener(map, 'click', function(event) { marker.setMap(null); }); google.maps.event.addListener(marker, 'dragend', function(event) { var point = event.latLng; var lat = point.lat(); var lng = point.lng(); document.getElementById("frmLat").value = lat; document.getElementById("frmLon").value = lng; }); var point = event.latLng; var lat = point.lat(); var lng = point.lng(); document.getElementById("frmLat").value = lat; document.getElementById("frmLon").value = lng; }); } </script> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <body onLoad="initialize()"> <form action="" method="post" name="frmissue" id="frmissue" > <input type="hidden" name="insttypelogoid" id="insttypelogoid" value="" /> </form> <script language="javascript" type="text/javascript"> function ChangeInstDetail(instid)//this function is used to to submit form in magazine issue { document.frmissue.insttypelogoid.value=instid; document.frmissue.submit(); } </script> <form name="frmnewinstreg" id="frmnewinstreg" class="styleThese" method="POST" action="" enctype="multipart/form-data" onSubmit="return blankNewregister('add');" /> <table width="100%" summary="" border="0" cellpadding="0" cellspacing="0"> <tr><td align="center" height="85"><h2 class="bigheader"><?php echo $title_addinstitution; ?></h2></td></tr> <?php echo SuccessMessage($msg);?> <tr align="center"> <td> <table summary="" align="center" width="100%" cellpadding="0" cellspacing="0" border="0"> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"> <?php echo $lbl_selectlanguage; ?> : </td> <td align="left" colspan="3"> <select name="instlngid" id="instlngid" class="selbox" onchange="return ChangeSelectLanguage(this.value,'addinst','','','','<?php echo $_GET['inid'];?>','<?php echo $bid; ?>'); "> <!--<option value="0"><?php //echo $lbl_selectlanguage; ?></option>--> <?php echo GetAllLanguage($lang);?> <input type="hidden" name="hidlngid" id="hidlngid" value="<?php echo $_SESSION['instlngid'];?>"/> <input type="hidden" name="hdnmgtid" id="hdnmgtid" value="<?php echo $_GET['inid'];?>"/> </select> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_selectinsttype; ?> : </td> <td align="left"> <select name="cmbInstType" id="cmbInstType" <?php echo $classinsttype; ?> onChange="return ChangeInstDetail(this.value);"> <option value="0"><?php echo $lbl_selectinsttype; ?></option> <?php if($_POST["insttypelogoid"] > 0) { echo getInstitutiontype($_POST["insttypelogoid"]); } else if($_SESSION['cmbInstType']>0) { echo getInstitutiontype($_SESSION['cmbInstType']); } else { echo getInstitutiontype($insttypeid); } ?> </select></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_selectinstlevel; ?> : </td> <td align="left"> <select name="cmbinstitutionlevel" id="cmbinstitutionlevel" class="selbox"> <?php if($_SESSION['cmbinstitutionlevel']!="") { echo getInstLevel($_SESSION['cmbinstitutionlevel']); } else { echo getInstLevel($instlevel); } ?> </select></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_selectinst; ?> : </td> <td align="left"> <select name="cmbparentinst" id="cmbparentinst" class="selbox"> <option value="0"><?php echo $lbl_selectinst; ?></option> <?php echo getParentInsttype1($instparid,$cityid); ?> </select></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr align="right"> <td align="right" width="15%"><?php echo $sign." ".$lbl_instname." English";?> : </td> <td align="left" ><input type="text" name="txtinstname" id="txtinstname" <?php echo $classengname; ?> value="<?php if($_SESSION['txtinstname']!=""){ echo $_SESSION['txtinstname']; }else { echo $instname; } ?>" maxlength="200"/> </td> <td align="right" width="13%"><?php if($lngname=="Hindi") { echo $sign." "; } echo $lbl_instname." Hindi";?> : </td> <td align="left"><input type="text" name="txtinsthindiname" id="txtinsthindiname" onFocus="changeLanguage('txtinsthindiname', 'devanagari')" <?php echo $classhndname; ?> value="<?php if($_SESSION['txtinsthindiname']!=""){ echo $_SESSION['txtinsthindiname']; }else { echo $insthinname; } ?>" maxlength="300"/> </td> <?php if($lngname=='English' || $lngname == "Hindi") { ?> <td align="right" width="13%"> </td> <td align="left"> </td> <?php } else { ?> <td align="right" width="13%"><?php echo $lbl_instname." Other";?> : </td> <td align="left"><input type="text" name="txtinstothername" id="txtinstothername" <?php echo $classothrname; ?> value="<?php if($_SESSION['txtinstothername']!=""){ echo $_SESSION['txtinstothername']; }else { echo $instothername; } ?>" maxlength="300"/> </td> <?php } ?> </tr> <tr><td height="3" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo "Logo"; ?> : </td> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" > <tr> <td> <?php if($_POST["insttypelogoid"] > 0) { ?> <input type="file" name="txtlogo" id="txtlogo" size="15" maxlength="100" class="skipThese txtbox" value="" /> <img src="<?php echo $pathvar.$insttplogo; ?>" width="51" alt="" title="" align="top" class="skipThese"/> <?php } else { ?> <input type="file" name="txtlogo" id="txtlogo" value="" /> </td> <td> <img src="<?php echo $pathvar.$instlogo; ?>" width="80" alt="" title="" /> <?php } ?> </td> </tr> </table> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." "."Web Address"; ?> : </td> <td colspan="3">www.thearyasamaj.org/<input type="text" name="txtwebadd" id="txtwebadd" <?php echo $classwebadd; ?> maxlength="30" value="<?php if($_SESSION['txtwebadd']!=""){ echo $_SESSION['txtwebadd']; }else { echo $instwebadd; } ?>" onKeyPress="return isAlphawebadd(event)" onpaste="return false;"/><span id='errlink'></span></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php //echo $lbl_dispagelink; ?>Brief Information : </td> <td> <?php $longtxt1=$_SESSION['FckContent']; include_once("arya_ckeditor.php"); /*include_once("FCK/fckeditor.php"); $oFCKeditor = new FCKeditor('FckContent'); $oFCKeditor->BasePath = "FCK/" ; $oFCKeditor->Value = "$longtxt1"; $oFCKeditor->Width = 650; $oFCKeditor->Height= 300; $oFCKeditor->Create() ;*/ ?> </td> </tr> <!-- <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php //echo "Brief Information"; ?> : </td> <td><textarea name="txtbrief" id="txtbrief" <?php //echo $classbrief; ?> cols="30" rows="10"><?php //if($_SESSION['txtbrief']!=""){ echo $_SESSION['txtbrief'];}else{ echo $instbriefinfo; }?></textarea></td> </tr>--> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_selectcountry;?> : </td> <td align="left" > <select name="cmbcountry" id="cmbcountry" onChange="findselectstate(this.value);findselcity(this.value)" <?php echo $classcnt; ?>> <option value="0"><?php echo $lbl_selectcountry;?></option> <?php if($_SESSION['cmbcountry']>0) { echo GetCountry($_SESSION['cmbcountry']); } else { echo GetCountry($cntid); } ?> </select></td> </tr> <tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_selectstate;?> : </td> <td align="left"> <?php if($_SESSION['cmbcountry']>0 && $_SESSION['cmbstate']>0) { ?><select name="cmbstate" id="cmbstate" onChange="return findselcity(this.value);" <?php echo $classstate; ?>> <option value="0"><?php echo $lbl_selectstate;?></option> <?php echo GetState($_SESSION['cmbstate'],$_SESSION['cmbcountry']); ?> </select> <?php } else { ?> <div id="FetchAjaxDatastate"> <select name="cmbstate" id="cmbstate" onChange="return findselcity(this.value);" <?php echo $classstate; ?>> <option value="0"><?php echo $lbl_selectstate;?></option> <?php echo GetState($sttid,$cntid); ?> </select> </div> <?php } ?> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo "Select District"; ?> : </td> <td align="left"> <?php if($_SESSION['cmbcountry']>0 && $_SESSION['cmbstate']>0) { ?><select name="cmbcity" id="cmbcity" class="selbox"> <option value="0"><?php echo "Select District"?></option> <?php echo GetCity($_SESSION['cmbcity'],$_SESSION['cmbstate'],$_SESSION['cmbcountry']); ?> </select> <?php } else { ?> <div id="FetchAjaxDataCity"> <select name="cmbcity" id="cmbcity" class="selbox"> <option value="0"><?php echo "Select District"?></option> <?php echo GetCity($cityid,$sttid,$cntid); ?> </select> </div><?php } ?></td> </tr><tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_address; ?> : </td> <td align="left"> <textarea name="txtaddress" id="txtaddress" <?php echo $classadd; ?>><?php if($_SESSION["txtaddress"]!=""){ echo $_SESSION["txtaddress"];}else{ echo $instaddress; } ?></textarea></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_pincode; ?> : </td> <td><input type="text" name="txtpincode" id="txtpincode" <?php echo $classpin; ?> onKeyPress="return checkInt(event);" value="<?php if($_SESSION['txtpincode']!=""){ echo $_SESSION['txtpincode'];}else { echo $instpincode; } ?>" /></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_conno; ?> : </td> <td><input type="text" name="txtconno" id="txtconno" <?php echo $classcontact; ?> value="<?php if($_SESSION['txtconno']!=""){ echo $_SESSION['txtconno'];}else { echo $instconno; } ?>" /></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_offficialemail;?> : </td> <td colspan="3"> <input type="text" name="txtoffemail" id="txtoffemail" <?php echo $classemail; ?> onBlur="return blurEmailCheck('txtoffemail',1);" value="<?php if($_SESSION['txtoffemail']!=""){ echo $_SESSION['txtoffemail'];}else { echo $instemail; } ?>" maxlength="200"/> <div style="display:inline-block"><font color="Red"><b id="emailDupErrId" style="display:none;"><?php echo $dupemail; ?></b></font></div> <input id="emailDupId" type="hidden" name="hidval"></div> </td> </tr> <tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_officialwebsite; ?> : </td> <td align="left" colspan="3"><input type="text" name="txtwebsite" id="txtwebsite" <?php echo $classwebsite; ?> value="<?php if($_SESSION['txtwebsite']!=""){ echo $_SESSION['txtwebsite'];}else{ echo $instwebsite;} ?>"/></td> </tr> <!--<tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php //echo $lbl_officialmagazine; ?> : </td> <td align="left" colspan="3"><input type="text" name="txtmagazine" id="txtmagazine" class="txtbox" value="<?php //echo $instmagazine; ?>" /></td> </tr>--> <tr><td height="5" colspan="6"></td></tr> <script language="javascript"> var geocoder = new google.maps.Geocoder(); function geocode () { geocoder.geocode({ 'address': document.getElementById('search').value }, function(results, status) { if(status == google.maps.GeocoderStatus.OK) { new google.maps.Marker({ position: results[0].geometry.location, map: map, icon: 'images/marker.png', cursor: 'images/' }); map.setZoom(7); map.setCenter(results[0].geometry.location); } }); } </script> <tr> <td align="right" colspan="3"><?php echo $lbl_fndlocation; ?> : </td> <td align="left" colspan="3"><input type="text" id="search"><input type="button" onClick="geocode();" value="Search"></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" colspan="3"><?php echo $lbl_locationmap; ?> : </td> <td align="left" colspan="3"><div id="map_canvas" style="width: 650px; height: 400px"></div></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" colspan="3"><?php echo $lbl_latitude;?> : </td> <td><input type="text" name="lat" id="frmLat" <?php echo $classlat; ?> value="<?php if($_SESSION['lat']!=""){ echo $_SESSION['lat']; }else{ echo $instlat; } ?>" /></td> </tr> <tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" colspan="3"><?php echo $lbl_longotude;?> : </td> <td><input type="text" name="lng" id="frmLon" <?php echo $classlong; ?> value="<?php if($_SESSION['lng']!=""){ echo $_SESSION['lng']; }else{ echo $instlong; } ?>" /></td> </tr> <?php if($rightapprove == 'Self' || $rightapprove == 'All') { ?> <tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_approve; ?> : </td><td><input type="radio" name="txtapprove" id="txtapprove" value="Yes"<?php if($_SESSION['yesapprove']!=""){ echo $_SESSION['yesapprove'];}else{ echo $approveyes;} ?> />Yes <input type="radio" name="txtapprove" id="txtapprove" value="No"<?php if($_SESSION['noapprove']!=""){ echo $_SESSION['noapprove'];}else{ echo $approveNo; } ?> />No</td> </tr> <?php } ?> <!--<tr><td colspan="6" height="5"></td></tr> <tr> <td align="right" width="45%" colspan="3"> </td> <td colspan="3"><input type="checkbox" name="txtcondition" id="txtcondition" class="skipThese" value="Yes"<?php //echo $checkever;?> onChange="enable()" />I hereby affirm that all details given above are true to best of my knowledge & belief.</td> </tr>--> <tr><td height="5" colspan="6"></td></tr> <tr> <td colspan="3"></td> <td align="left" colspan="3"> <input type="submit" name="btnsubmit" id="btnsubmit" <?php //echo $stylvalue; ?> value="Next" class="button" /> <?php if($_GET['inid'] > 0){ ?><input <?php echo $btntype; ?> name="btn_reset" id="btn_reset" value="<?php echo $btn_reset; ?>"/> <?php } ?> </td> </td> </table> </td> </tr> </table> </form> <script language="javascript" type="text/javascript"> pph = new PramukhPhoneticHandler(); pph.convertToIndicIME("txtinsthindiname", document.getElementById('txtinsthindiname'),'devanagari'); <?php if($lngname=="Hindi") { ?> pph.convertToIndicIME("txtinsthindiname", document.getElementById('txtinsthindiname'),'devanagari'); <?php } else { ?> pph.convertToIndicIME("txtinstothername", document.getElementById('txtinstothername'),'<?php echo $lngname; ?>'); <?php } ?> </script> <?php // content over // footer start include("arya_footer.php"); // footer over ?>
Close