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_editmagazinetitle_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 //header start include('arya_header.php'); //header over // link start include("arya_menu.php"); // link over // content start //This is used for admin rights wise display field Start Added By Nitesh 06/02/2013 if($_GET['pending']=='1') { $_SESSION['pendmgntit']=$_GET['pending']; } $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']; if($pagename=="arya_addmagazinetitle.php") { $rightapprove=getFieldValue('admsecright_approve','arya_adminsectionrights','admsecright_pageid="'.$key.'" AND admuser_id="'.$admusrid.'" AND admcat_id="'.$dbusercatid.'"'); } } }//admin rights code over $logindate=date('Y-m-d h:i:s'); $curntdate=date('Y-m-d'); $curnttime= date('h:i:s'); $mgid=$_GET["svid"]; $_SESSION['svid']=$mgid; $cityId = $_GET['ctid']; $pagesecid=$_GET['scid']; if($_GET['scid']!="") { $_SESSION['pgsecid']=$_GET['scid']; } $_SESSION['instid']=$_GET['instid']; $cntsnid=$_SESSION['cntsnid']; $stsnid=$_SESSION['stsnid']; $freqid=$_SESSION['frqid']; $cmbnwsid=$_SESSION['nwsid']; if($cntsnid > 0){$cntval='cid='.$cntsnid;} else {$cntval="";} if($stsnid > 0){$sidval='&sid='.$stsnid.'&';} else {$sidval="";} if($freqid > 0){$fidval='&fid='.$freqid.'&';} else {$fidval="";} if($cmbnwsid > 0){$cmbnwstypval='pendid='.$cmbnwsid;}else{$cmbnwstypval="";} if($cntsnid > 0 || $stsnid > 0 || $freqid > 0 || $cmbnwsid>0){$msgval='&msg=update';} else {$msgval='msg=update';} $qrySelMagazines="SELECT * FROM arya_magazines WHERE mgzn_id='".$mgid."'"; $qSelMagazines=mysql_query($qrySelMagazines); $qFetchMagazines=mysql_fetch_array($qSelMagazines); $id=$qFetchMagazines["mgzn_id"]; $lngsel11=$qFetchMagazines["lang_id"]; if($_GET['instid']!="") { $mgzn_instid=$_GET['instid']; } else { $mgzn_instid=$qFetchMagazines["inst_id"]; } $mtitle=stripslashes($qFetchMagazines["mgzn_title"]); $mhindititle=stripslashes($qFetchMagazines["mgzn_titlehindi"]); $mothertitle=stripslashes($qFetchMagazines["mgzn_titleother"]); $titleselid=$qFetchMagazines["mgzn_titlelngid"]; $mtagline=stripslashes($qFetchMagazines["mgzn_tagline"]); $mhinditagline=stripslashes($qFetchMagazines["mgzn_taglinehindi"]); $mothertagline=stripslashes($qFetchMagazines["mgzn_taglineother"]); $mgzwebadd=stripslashes($qFetchMagazines["mgzn_webadd"]); if($_SERVER['HTTP_HOST']=="www.thearyasamaj.org" || $_SERVER['HTTP_HOST']=="thearyasamaj.org") { $_SERVER['HTTP_HOST']=="www.thearyasamaj.org"; $mgztitlewebadd=substr($mgzwebadd,21); } if($_SERVER['HTTP_HOST']=="www.aryasamajdelhi.pb") { $mgztitlewebadd=substr($mgzwebadd,22); } $titlngname=getFieldValue("lang_name","arya_language","lang_id='".$titleselid."'"); $taglineselid=$qFetchMagazines["mgzn_taglinelngid"]; $taglinename=getFieldValue("lang_name","arya_language","lang_id='".$taglineselid."'"); $instcntid = $qFetchMagazines['cnt_id']; $inststateid = $qFetchMagazines['state_id']; $instcityid = $qFetchMagazines['city_id']; $linktitle1=stripslashes($qFetchMagazines["mgzn_link1title"]); $newlink1=stripslashes($qFetchMagazines["mgzn_link1link"]); $advresult = substr($newlink1, 0, 7); $advresults = substr($newlink1, 0, 8); if($advresult=="http://") { $link1=str_replace("http://","",$newlink1); } else if($advresults=="https://") { $link1=str_replace("https://","",$newlink1); } else { $link1=$newlink1; } $linktitle2=stripslashes($qFetchMagazines["mgzn_link2title"]); $newlink2=stripslashes($qFetchMagazines["mgzn_link2link"]); $advresult = substr($newlink2, 0, 7); $advresults = substr($newlink2, 0, 8); if($advresult=="http://") { $link2=str_replace("http://","",$newlink2); } else if($advresults=="https://") { $link2=str_replace("https://","",$newlink2); } else { $link2=$newlink2; } $linktitle3=stripslashes($qFetchMagazines["mgzn_link3title"]); $newlink3=stripslashes($qFetchMagazines["mgzn_link3link"]); $advresult = substr($newlink3, 0, 7); $advresults = substr($newlink3, 0, 8); if($advresult=="http://") { $link3=str_replace("http://","",$newlink3); } else if($advresults=="https://") { $link3=str_replace("https://","",$newlink3); } else { $link3=$newlink3; } $mpublisher=stripslashes($qFetchMagazines["mgzn_publisher"]); $mhindipublisher=stripslashes($qFetchMagazines["mgzn_publisherhindi"]); $motherpublisher=stripslashes($qFetchMagazines["mgzn_publisherother"]); $publisherselid=$qFetchMagazines["mgzn_publisherlngid"]; $taglinename=getFieldValue("lang_name","arya_language","lang_id='".$publisherselid."'"); $magazinelang=stripslashes($qFetchMagazines["mgzn_lng"]); $city=stripslashes($qFetchMagazines["mgzn_city"]); $email=stripslashes($qFetchMagazines["mgzn_email"]); $address=stripslashes($qFetchMagazines["mgzn_address"]); $sequence=$qFetchMagazines["mgzn_sequence"]; $mgzn_showhome=$qFetchMagazines["mgzn_showportal"]; $showhome=$qFetchMagazines["mgzn_showhome"]; $mgzn_frequency=$qFetchMagazines["mgzn_frequency"]; $mgzn_approve=$qFetchMagazines['mgzn_approve']; if($showhome == 'Yes') { $homeyes='checked="checked"'; } else { $homeno='checked="checked"'; } if($mgzn_showhome == 'Yes') { $shwhomeyes='checked="checked"'; } else { $shwhomeno='checked="checked"'; } $visible=$qFetchMagazines["mgzn_visible"]; if($visible == 'Yes') { $visibleyes='checked="checked"'; } else { $visibleno='checked="checked"'; } if($_SERVER['HTTP_HOST'] =='thearyasamaj.org') { $_SERVER['HTTP_HOST']='www.thearyasamaj.org'; } if(isset($_POST["submitmagazines"]))//insert record start { $magazinetitle=addslashes($_POST["txtmagazinetitle"]); $_SESSION['txtmagazinetitle']=$magazinetitle; $magazinehindititle=addslashes($_POST["hindimagazinetitle"]); $_SESSION['hindimagazinetitle']=$magazinehindititle; $magazineothertitle=addslashes($_POST["othermagazinetitle"]); $_SESSION['othermagazinetitle']=$magazineothertitle; $title=explode(",",$_POST["cmbtitle"]); $titlename=$title[0]; $titleid=$title[1]; $magazinepublisher=addslashes($_POST["txtpublisher"]); $_SESSION['txtpublisher']=$magazinepublisher; $hindipublisher=addslashes($_POST["hindipublisher"]); $_SESSION['hindipublisher']=$hindipublisher; $otherpublisher=addslashes($_POST["otherpublisher"]); $_SESSION['otherpublisher']=$otherpublisher; $publisher=explode(",",$_POST["cmbpublisher"]); $publishername=$publisher[0]; $publisherlngid=$publisher[1]; $magazinetagline=$_POST["txttaglinetext"]; $_SESSION['txttaglinetext']=$magazinetagline; $hinditagline=$_POST["txthinditaglinetext"]; $_SESSION['txthinditaglinetext']=$hinditagline; $othertagline=$_POST["othertaglinetext"]; $_SESSION['othertaglinetext']=$othertagline; $_SESSION['txtwebadd']=$_POST["txtwebadd"]; $postwebadd=$_POST["txtwebadd"]; if($_POST["txtwebadd"]!="") { $mgzwebadd=$_SERVER['HTTP_HOST']."/".addslashes($_POST["txtwebadd"]); } else { $mgzwebadd=""; } $tagline=explode(",",$_POST["cmbtaglinetext"]); $taglinename=$tagline[0]; $taglineid=$tagline[1]; $fetchlanguage=explode(",",$_POST["cmblanguage"]); $languagename=$fetchlanguage[0]; $languageid=$fetchlanguage[1]; $_SESSION['instlngid']=$languageid; $magazinelng=addslashes($_POST["txtmagazinelng"]); $newscountryid = $_POST['cmbCountry']; $_SESSION['cmbCountry']=$newscountryid; $newsstateid = $_POST['cmbstate']; $_SESSION['cmbstate']=$newsstateid; $link1title=addslashes($_POST["txtlink1title"]); $_SESSION['txtlink1title']=$link1title; $link1link=addslashes($_POST["txtlink1link"]); $_SESSION['txtlink1link']=$link1link; $link2title=addslashes($_POST["txtlink2title"]); $_SESSION['txtlink2title']=$link2title; $link2link=addslashes($_POST["txtlink2link"]); $_SESSION['txtlink2link']=$link2link; $link3title=addslashes($_POST["txtlink3title"]); $_SESSION['txtlink3title']=$link3title; $link3link=addslashes($_POST["txtlink3link"]); $_SESSION['txtlink3link']=$link3link; $city=$_POST["cmbcity"]; $_SESSION['cmbcity']=$city; $postemail=addslashes($_POST["txtemail"]); $_SESSION['txtemail']=$postemail; $postaddress=$_POST["txtaddress"]; $_SESSION['txtaddress']=$postaddress; $sequence=$_POST["txtsequence"]; $postcmbinst=$_POST['cmbinst']; $postfrequency=$_POST['cmbfreq']; $_SESSION['cmbfreq']=$postfrequency; $posthidtxtwebadd=addslashes($_POST['hidtxtwebadd']); if($_SERVER['HTTP_HOST']=="www.aryasamajdelhi.pb") { $mgznwebname=substr($mgztitlewebadd, 22); } if($_SERVER['HTTP_HOST']=="www.thearyasamaj.org" || $_SERVER['HTTP_HOST']=="thearyasamaj.org") { $_SERVER['HTTP_HOST']=="www.thearyasamaj.org"; $mgznwebname=substr($mgztitlewebadd, 18); } unset($_SESSION['yeschkhome']); unset($_SESSION['nochkhome']); if($_POST["chkshowhome"]=='Yes') { $_SESSION['yeschkhome']='checked=checked'; } if($_POST["chkshowhome"]=='No') { $_SESSION['nochkhome']='checked=checked'; } unset($_SESSION['yeshome']); unset($_SESSION['nohome']); if($_POST["showhome"]=='Yes') { $_SESSION['yeshome']='checked=checked'; } if($_POST["showhome"]=='No') { $_SESSION['nohome']='checked=checked'; } if($_SESSION['instlngid'] > 0) { //$_SESSION['nlnid']; $sellngid='sellng='.$_SESSION['instlngid'].'&'; } else { $sellngid=''; } if($_GET['instid']>0) { $getinstid=$_GET['instid']; $_SESSION['getinstid']=$getinstid; $instid='instid='.$_SESSION['getinstid'].'&'; } else { $instid=''; } if($link1link!="") { $advresult = substr($link1link, 0, 7); $advresults = substr($link1link, 0, 8); if($advresult=="http://") { $checktxtlink1=$link1link; } else if($advresults=="https://") { $checktxtlink1=$link1link; } else { $checktxtlink1="http://".$link1link; } } if($link2link!="") { $advresult = substr($link2link, 0, 7); $advresults = substr($link2link, 0, 8); if($advresult=="http://") { $linkchk2=$link2link; } else if($advresults=="https://") { $linkchk2=$link2link; } else { $linkchk2="http://".$link2link; } } if($link3link!="") { $advresult = substr($link3link, 0, 7); $advresults = substr($link3link, 0, 8); if($advresult=="http://") { $lnk3check=$link3link; } else if($advresults=="https://") { $lnk3check=$link3link; } else { $lnk3check="http://".$link3link; } } if($rightapprove=='Self' || $rightapprove=='All') { $chkshowhome=$_POST["chkshowhome"]; $postshowhome=$_POST["showhome"]; $postqueryselfall="mgzn_showhome='".$postshowhome."',mgzn_showportal='".$chkshowhome."'"; } else { $postqueryselfall="mgzn_showhome='".$showhome."',mgzn_showportal='".$mgzn_showhome."'"; } if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { /*if($languageid<=0) { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=emplang'); } else if($magazinetitle=="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=empengtitle'); } else if($languageid==2 && $magazinehindititle=="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=emphndtitle'); } else if($languageid > 2 && $magazineothertitle=="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=empotrtitle'); } else if($magazinetagline=="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=empengtagline'); } else if($languageid==2 && $hinditagline=="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=emphndtagline'); } else if($languageid > 2 && $othertagline=="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=empotrtagline'); } else if($_POST["txtwebadd"]=="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=empwebadd'); } else if($postfrequency<=0) { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=empfre'); } else if($magazinepublisher=="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=empengpub'); } else if($languageid==2 && $hindipublisher=="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=emphndpub'); } else if($languageid > 2 && $otherpublisher=="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=empotrpub'); } else if($newscountryid<=0) { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=empcnt'); } else if($newsstateid<=0) { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=empstate'); } else if($city <=0) { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=empcity'); }*/ } $userid=getFieldValue("admuser_id","arya_adminuser","admuser_email='".$_SESSION["uname"]."'"); if($magazinetitle != "" && $mgzwebadd!="") { if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { /*if(find_specialchar($magazinetitle)=="Yes" || find_scripttags($magazinetitle)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errengtitle'); } else if(find_scripttags($magazinehindititle)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errhndtitle'); } else if(find_scripttags($magazineothertitle)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errotrtitle'); } else if(find_scripttags($magazinetagline)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errengtagline'); } else if(find_scripttags($hinditagline)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errhndtagline'); } else if(find_scripttags($othertagline)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errotrtagline'); } else if(find_specialchar($_POST["txtwebadd"])=="Yes" || find_scripttags($_POST["txtwebadd"])=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errwebadd'); } else if(find_specialchar($magazinepublisher)=="Yes" || find_scripttags($magazinepublisher)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errengpub'); } else if(find_scripttags($hindipublisher)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errhndpub'); } else if(find_scripttags($otherpublisher)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errotrpub'); } else if(find_scripttags($postemail)=="Yes" || ValidEmailCheck($postemail)==false) { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=erremail'); } else if(find_scripttags($postaddress)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=erradd'); } else if(find_specialchar($link1title)=="Yes" || find_scripttags($link1title)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errtitle1'); } else if(find_specialchar($link2title)=="Yes" || find_scripttags($link2title)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errtitle2'); } else if(find_specialchar($link3title)=="Yes" || find_scripttags($link3title)=="Yes") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errtitle3'); } else if(CheckWebUrl($checktxtlink1)=="Yes" || find_specialchar($link1link)=="Yes" || find_scripttags($link1link)=="Yes") { if($checktxtlink1!="" && $link1link!="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errlink1'); } } else if(CheckWebUrl($linkchk2)=="Yes" || find_specialchar($link2link)=="Yes" || find_scripttags($link2link)=="Yes") { if($linkchk2!="" && $link2link!="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errlink2'); } } else if(CheckWebUrl($lnk3check)=="Yes" || find_specialchar($link3link)=="Yes" || find_scripttags($link3link)=="Yes") { if($lnk3check!="" && $link3link!="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=errlink3'); } }*/ } //$dupmagazine=getFieldValue("mgzn_title","arya_magazines","mgzn_title='".$magazinetitle."' AND mgzn_id!='".$mgid."' AND mgzn_delstatus='No'"); $dupmgzWeb=getFieldValue("mgzn_webadd","arya_magazines","mgzn_webadd='".$mgzwebadd."' AND mgzn_id!='".$mgid."'"); $mgznwebdupname=getNumrowsValue('inst_id','arya_institution','inst_webadd="'.$mgzwebadd.'"'); $discvrlink="discover.thearyasamaj.org/".addslashes($_POST["txtwebadd"]); $dupdbwebadd=getFieldValue("webadd_name","arya_webaddresses","webadd_name='".$_POST["txtwebadd"]." ' AND mgzn_id!='".$mgid."'"); //$dupdbwebadd=getFieldValue("webadd_name","arya_webaddresses","webadd_name LIKE '%$postwebadd%' AND mgzn_id!='".$mgid."'"); $dupdbdiscvwebadd=getFieldValue("webadd_name","arya_webaddresses","webadd_name='".$_POST["txtwebadd"]."' AND mgzn_id!='".$mgid."'"); 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($dupmagazine!="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=dupmsg'); }*/ if($dupdbwebadd!="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=dupweb'); } else if($discvrwbnm!="") { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=dupweb'); } /*if($mgznwebdupname>0) { RedirecPage('arya_editmagazinetitle.php?'.$sellngid.$instid.'svid='.$_GET['svid'].'&scid='.$_GET['scid'].'&msg=dupweb'); }*/ $filename ='../.htaccess'; $ruleurl='RewriteRule ^'.$posthidtxtwebadd.'$'.' /aryasamaj-magazinetitlewebpage.php'; $lines =file($filename); foreach($lines as $line_num => $line) { $nvremovefirst=explode(" ",substr($line,13)); //echo "<br>--->".$nvremovefirst[0]; display the webaddress in htaccess if($_POST["txtwebadd"]!=$posthidtxtwebadd) { //echo "<Br>-->".$ruleurl; display perticular line in htaccess //read the entire string $str=implode("",file($filename)); $fp=fopen($filename,'w'); //replace something in the file string - this is a VERY simple example $str=str_replace($ruleurl,'',$str); //now, TOTALLY rewrite the file fwrite($fp,$str,strlen($str)); } } $qryUpdmagazine="UPDATE arya_magazines SET lang_id='".$languageid."',mgzn_title='".$magazinetitle."',mgzn_titlehindi='".$magazinehindititle."',mgzn_titleother='".$magazineothertitle."',mgzn_titlelngid='".$titleid."',mgzn_tagline='".$magazinetagline."',mgzn_taglinehindi='".$hinditagline."',mgzn_taglineother='".$othertagline."',mgzn_webadd='".$mgzwebadd."',mgzn_taglinelngid='".$taglineid."',mgzn_lng='".$magazinelng."',mgzn_publisher='".$magazinepublisher."',mgzn_publisherhindi='".$hindipublisher."',mgzn_publisherother='".$otherpublisher."',mgzn_publisherlngid='".$publisherlngid."',mgzn_link1title='".$link1title."',mgzn_link1link='".$checktxtlink1."',mgzn_link2title='".$link2title."',mgzn_link2link='".$linkchk2."',mgzn_link3title='".$link3title."',mgzn_link3link='".$lnk3check."',mgzn_sequence='".$sequence."',".$postqueryselfall.",cnt_id='".$newscountryid."',state_id='".$newsstateid."',city_id='".$city."',mgzn_email='".$postemail."',mgzn_address='".$postaddress."',inst_id='".$postcmbinst."',mgzn_frequency='".$postfrequency."',mgzn_approve='".$mgzn_approve."' WHERE mgzn_id='".$mgid."'"; $qUpdmagazine=mysql_query($qryUpdmagazine); if($qUpdmagazine) { getadminactivity('title_editmagazinetitle',$pagesecid,$_SESSION["adminuserid"],$_SERVER["REMOTE_ADDR"],$magazinetitle,$curntdate,$curnttime); $numar=getArrayFieldValue('webadd_id','arya_webaddresses','mgzn_id="'.$mgid.'"'); $updtwebaddrss="UPDATE arya_webaddresses SET webadd_name='".$_POST["txtwebadd"]."' WHERE webadd_id='".$numar[0]."'"; $qrywebaddrss=mysql_query($updtwebaddrss); $filename ='../.htaccess'; $ruleurl='RewriteRule ^'.$_POST["txtwebadd"].'$'.' /aryasamaj-magazinetitlewebpage.php'; $lines = file($filename); if($mgztitlewebadd!="") { //read the entire string // get the file contents, assuming the file to be readable (and exist) $contents = file_get_contents($filename); // escape special characters in the query $pattern = preg_quote($ruleurl, '/'); // finalise the regular expression, matching the whole line $pattern = "/^.*$pattern.*\$/m"; // search, and store all matching occurences in $matches if(preg_match_all($pattern, $contents, $matches)){ //echo "Found matches:\n"; //echo implode("\n", $matches[0]); } else{ //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); } } else if($mgztitlewebadd=="") { // get the file contents, assuming the file to be readable (and exist) $contents = file_get_contents($filename); // escape special characters in the query $pattern = preg_quote($ruleurl, '/'); // finalise the regular expression, matching the whole line $pattern = "/^.*$pattern.*\$/m"; // search, and store all matching occurences in $matches if(preg_match_all($pattern, $contents, $matches)){ //echo "Found matches:\n"; //echo implode("\n", $matches[0]); } else{ //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/editmgz_'.$today.'_'.$nvrndnumber.'_usid '.$admusrid.'_htaccess'; copy($abcd ,$nvfilePath); if($_SESSION['pendmgntit']=='1') { //echo "<script language=JavaScript>location.href='arya_mgzntitlependlist.php?".$msgval."'; RedirecPage('arya_mgzntitlependlist.php?'.$msgval); } else { //echo "<script language=JavaScript>location.href='arya_mngmagazinetitle.php?".$cntval.$sidval.$fidval.$msgval."'; RedirecPage('arya_mngmagazinetitle.php?'.$cntval.$sidval.$fidval.$msgval); } } } //if($title != "") else { $msg=$msgFillFormField; } }//insert record end /*$_SESSION['nlnid']=$_GET['sellng']; if($_SESSION['nlnid'] > 0) { /*if($_SESSION['nlnid'] > 0) { $lngsel=getFieldValue('lang_id','arya_language','lang_id="'.$_GET['sellng'].'"'); }*/ /*$lngname=getFieldValue('lang_name','arya_language','lang_id="'.$lngsel.'"'); $lngsel=getFieldValue('lang_id','arya_language','lang_id="'.$_GET['sellng'].'"'); } else { $lngname="English"; }*/ /*if($_SESSION['instid'] > 0 ) { $instname=getFieldValue('inst_name','arya_institution','inst_id="'.$_SESSION['instid'].'"'); $instlngid=getFieldValue('lang_id','arya_institution','inst_id="'.$_SESSION['instid'].'"'); } */ if(isset($_GET['instid']) && $_GET['instid']>0) { $instarray=getFieldValueArray('lang_id,cnt_id,state_id,inst_name,inst_namehindi,inst_nameother,city_id','arya_institution','inst_id="'.$_GET['instid'].'"'); $instlangid=$instarray[0]; $instcntid=$instarray[1]; $inststateid=$instarray[2]; $instname=$instarray[3]; $instnamehindi=$instarray[4]; $instnameother=$instarray[5]; $instcityid=$instarray[6]; } else if(isset($_GET['instid']) && $_GET['instid']==0) { $selmgzqry="SELECT * FROM arya_magazines WHERE mgzn_id='".$mgid."'"; $resmgzqry=mysql_query($selmgzqry); $fetchmgz=mysql_fetch_array($resmgzqry); $instlangid=$fetchmgz['lang_id']; $instcntid=$fetchmgz['cnt_id']; //$instid=$fetchmgz["inst_id"]; $inststateid=$fetchmgz['state_id']; $instcityid=$fetchmgz['city_id']; } if($_GET['sellng']!="") { $lngsel=$_GET['sellng']; $lngname=getFieldValue('lang_name','arya_language','lang_id="'.$lngsel.'"'); } else if($_GET['instid']!="") { $lngsel=$instlangid; $lngname=getFieldValue('lang_name','arya_language','lang_id="'.$lngsel.'"'); } else { $lngsel=$lngsel11; $lngname=getFieldValue('lang_name','arya_language','lang_id="'.$lngsel.'"'); } //} $lngname=getFieldValue('lang_name','arya_language','lang_id="'.$lngsel.'"'); $classlang='class="selbox"'; $classengtit='class="txtbox"'; $classhndtit='class="txtbox"'; $classotrtit='class="txtbox"'; $classengtag='class="txtbox"'; $classhndtag='class="txtbox"'; $classotrtag='class="txtbox"'; $classwebadd='class="txtbox"'; $classfreq='class="selbox"'; $classengpub='class="txtbox"'; $classhndpub='class="txtbox"'; $classotrpub='class="txtbox"'; $classcnt='class="selbox"'; $classstate='class="selbox"'; $classcity='class="selbox"'; $classemail='class="txtbox"'; $classadd='class="txtbox"'; $classtitle1='class="txtbox"'; $classlink1='class="txtbox"'; $classtitle2='class="txtbox"'; $classlink2='class="txtbox"'; $classtitle3='class="txtbox"'; $classlink3='class="txtbox"'; if($_GET['msg']=="emplang") { $emtttle="Please"." ".$lbl_selectlanguage; $msg=$emtttle; $classlang='class="errtxtengbord"'; } else if($_GET['msg']=="empengtitle") { $emtttle=$lbl_errmenmsg." ".$lbl_englishtitle; $msg=$emtttle; $mtitle=""; $classengtit='class="errtxtengbord"'; } else if($_GET['msg']=="errengtitle") { $emtttle=$lbl_errvalidmsg." ".$lbl_englishtitle; $msg=$emtttle; $mtitle=""; $classengtit='class="errtxtengbord"'; } else if($_GET['msg']=="emphndtitle") { $emtttle=$lbl_errmenmsg." ".$lbl_hindititle; $msg=$emtttle; $mhindititle=""; $classhndtit='class="errtxtengbord"'; } else if($_GET['msg']=="errhndtitle") { $emtttle=$lbl_errvalidmsg." ".$lbl_hindititle; $msg=$emtttle; $mhindititle=""; $classhndtit='class="errtxtengbord"'; } else if($_GET['msg']=="empotrtitle") { $emtttle=$lbl_errmenmsg." ".$lbl_othertitle; $msg=$emtttle; $mothertitle=""; $classotrtit='class="errtxtengbord"'; } else if($_GET['msg']=="errotrtitle") { $emtttle=$lbl_errvalidmsg." ".$lbl_othertitle; $msg=$emtttle; $mothertitle=""; $classotrtit='class="errtxtengbord"'; } else if($_GET['msg']=="empengtagline") { $emtttle=$lbl_errmenmsg." ".$lbl_englishtagline; $msg=$emtttle; $mtagline=""; $classengtag='class="errtxtengbord"'; } else if($_GET['msg']=="errengtagline") { $emtttle=$lbl_errvalidmsg." ".$lbl_englishtagline; $msg=$emtttle; $mtagline=""; $classengtag='class="errtxtengbord"'; } else if($_GET['msg']=="emphndtagline") { $emtttle=$lbl_errmenmsg." ".$lbl_hinditagline; $msg=$emtttle; $mhinditagline=""; $classhndtag='class="errtxtengbord"'; } else if($_GET['msg']=="errhndtagline") { $emtttle=$lbl_errvalidmsg." ".$lbl_hinditagline; $msg=$emtttle; $mhinditagline=""; $classhndtag='class="errtxtengbord"'; } else if($_GET['msg']=="empotrtagline") { $emtttle=$lbl_errmenmsg." ".$lbl_othertagline; $msg=$emtttle; $mothertagline=""; $classotrtag='class="errtxtengbord"'; } else if($_GET['msg']=="errotrtagline") { $emtttle=$lbl_errvalidmsg." ".$lbl_othertagline; $msg=$emtttle; $mothertagline=""; $classotrtag='class="errtxtengbord"'; } else if($_GET['msg']=="empwebadd") { $emtttle=$lbl_errmenmsg." "."Web Address"; $msg=$emtttle; $mgztitlewebadd=""; $classwebadd='class="errtxtengbord"'; } else if($_GET['msg']=="errwebadd") { $emtttle=$lbl_errvalidmsg." "."Web Address"; $msg=$emtttle; $mgztitlewebadd=""; $classwebadd='class="errtxtengbord"'; } else if($_GET['msg']=="empfre") { $emtttle=$lbl_errmenmsg." ".$lbl_frequency; $msg=$emtttle; $mgzn_frequency=""; $classfreq='class="errtxtengbord"'; } else if($_GET['msg']=="empengpub") { $emtttle=$lbl_errmenmsg." ".$lbl_englishpublisher; $msg=$emtttle; $mpublisher=""; $classengpub='class="errtxtengbord"'; } else if($_GET['msg']=="errengpub") { $emtttle=$lbl_errvalidmsg." ".$lbl_englishpublisher; $msg=$emtttle; $mpublisher=""; $classengpub='class="errtxtengbord"'; } else if($_GET['msg']=="emphndpub") { $emtttle=$lbl_errmenmsg." ".$lbl_hindipublisher; $msg=$emtttle; $mhindipublisher=""; $classhndpub='class="errtxtengbord"'; } else if($_GET['msg']=="errhndpub") { $emtttle=$lbl_errvalidmsg." ".$lbl_hindipublisher; $msg=$emtttle; $mhindipublisher=""; $classhndpub='class="errtxtengbord"'; } else if($_GET['msg']=="empotrpub") { $emtttle=$lbl_errmenmsg." ".$lbl_otherpublisher; $msg=$emtttle; $motherpublisher=""; $classotrpub='class="errtxtengbord"'; } else if($_GET['msg']=="errotrpub") { $emtttle=$lbl_errvalidmsg." ".$lbl_otherpublisher; $msg=$emtttle; $motherpublisher=""; $classotrpub='class="errtxtengbord"'; } else if($_GET['msg']=="empcnt") { $emtttle="Please"." ".$lbl_selectcountry; $msg=$emtttle; $instcntid=""; $classcnt='class="errtxtengbord"'; } else if($_GET['msg']=="empstate") { $emtttle="Please"." ".$lbl_selectstate; $msg=$emtttle; $inststateid=""; $classstate='class="errtxtengbord"'; } else if($_GET['msg']=="empcity") { $emtttle="Please"." ".$lbl_selectcity; $msg=$emtttle; $instcityid=""; $classcity='class="errtxtengbord"'; } else if($_GET['msg']=="erremail") { $emtttle=$lbl_errvalidmsg." ".$lbl_offemail; $msg=$emtttle; $email=""; $classemail='class="errtxtengbord"'; } else if($_GET['msg']=="erradd") { $emtttle=$lbl_errvalidmsg." ".$lbl_address; $msg=$emtttle; $address=""; $classadd='class="errtxtengbord"'; } else if($_GET['msg']=="errtitle1") { $emtttle=$lbl_errvalidmsg." ".$lbl_linktitle1; $msg=$emtttle; $linktitle1=""; $classtitle1='class="errtxtengbord"'; } else if($_GET['msg']=="errlink1") { $emtttle=$lbl_errvalidmsg." ".$lbl_lnklink1; $msg=$emtttle; $link1=""; $classlink1='class="errtxtengbord"'; } else if($_GET['msg']=="errtitle2") { $emtttle=$lbl_errvalidmsg." ".$lbl_linktitle2; $msg=$emtttle; $linktitle2=""; $classtitle2='class="errtxtengbord"'; } else if($_GET['msg']=="errlink2") { $emtttle=$lbl_errvalidmsg." ".$lbl_lnklink2; $msg=$emtttle; $link2=""; $classlink2='class="errtxtengbord"'; } else if($_GET['msg']=="errtitle3") { $emtttle=$lbl_errvalidmsg." ".$lbl_linktitle3; $msg=$emtttle; $linktitle3=""; $classtitle3='class="errtxtengbord"'; } else if($_GET['msg']=="errlink3") { $emtttle=$lbl_errvalidmsg." ".$lbl_lnklink3; $msg=$emtttle; $link3=""; $classlink3='class="errtxtengbord"'; } else if($_GET['msg']=='dupmsg') { $msg=$msgDuplicatRecord; } else if($_GET['msg']=='dupweb') { $msg=$lbl_dupwebaddress; $classwebadd='class="errtxtengbord"'; } else { unset($_SESSION['txtmagazinetitle']); unset($_SESSION['hindimagazinetitle']); unset($_SESSION['othermagazinetitle']); unset($_SESSION['instlngid']); unset($_SESSION['getinstid']); unset($_SESSION['txttaglinetext']); unset($_SESSION['txthinditaglinetext']); unset($_SESSION['othertaglinetext']); unset($_SESSION['txtwebadd']); unset($_SESSION['cmbfreq']); unset($_SESSION['txtpublisher']); unset($_SESSION['hindipublisher']); unset($_SESSION['otherpublisher']); unset($_SESSION['cmbCountry']); unset($_SESSION['cmbstate']); unset($_SESSION['cmbcity']); unset($_SESSION['txtaddress']); unset($_SESSION['txtemail']); unset($_SESSION['txtlink1title']); unset($_SESSION['txtlink1link']); unset($_SESSION['txtlink2title']); unset($_SESSION['txtlink2link']); unset($_SESSION['txtlink3title']); unset($_SESSION['txtlink3link']); unset($_SESSION['yeschkhome']); unset($_SESSION['nochkhome']); unset($_SESSION['yeshome']); unset($_SESSION['nohome']); $classlang='class="selbox"'; $classengtit='class="txtbox"'; $classhndtit='class="txtbox"'; $classotrtit='class="txtbox"'; $classengtag='class="txtbox"'; $classhndtag='class="txtbox"'; $classotrtag='class="txtbox"'; $classwebadd='class="txtbox"'; $classfreq='class="selbox"'; $classengpub='class="txtbox"'; $classhndpub='class="txtbox"'; $classotrpub='class="txtbox"'; $classcnt='class="selbox"'; $classstate='class="selbox"'; $classcity='class="selbox"'; $classemail='class="txtbox"'; $classadd='class="txtbox"'; $classtitle1='class="txtbox"'; $classlink1='class="txtbox"'; $classtitle2='class="txtbox"'; $classlink2='class="txtbox"'; $classtitle3='class="txtbox"'; $classlink3='class="txtbox"'; } if($_SESSION['yeschkhome']!="" || $_SESSION['nochkhome']!="") { $shwhomeyes=""; $shwhomeno=""; } if($_SESSION['yeshome']!="" || $_SESSION['nohome']!="") { $homeyes=""; $homeno=""; } $btntype='type="reset"'; if($_GET['msg']=="emplang" || $_GET['msg']=="empengtitle" || $_GET['msg']=="errengtitle" || $_GET['msg']=="emphndtitle" || $_GET['msg']=="errhndtitle" || $_GET['msg']=="empotrtitle" || $_GET['msg']=="errotrtitle" || $_GET['msg']=="empengtagline" || $_GET['msg']=="errengtagline" || $_GET['msg']=="emphndtagline" || $_GET['msg']=="errhndtagline" || $_GET['msg']=="empotrtagline" || $_GET['msg']=="errotrtagline" || $_GET['msg']=="empwebadd" || $_GET['msg']=="errwebadd" || $_GET['msg']=="empfre" || $_GET['msg']=="empengpub" || $_GET['msg']=="errengpub" || $_GET['msg']=="emphndpub" || $_GET['msg']=="errhndpub" || $_GET['msg']=="empotrpub" || $_GET['msg']=="errotrpub" || $_GET['msg']=="empcnt" || $_GET['msg']=="empstate" || $_GET['msg']=="empcity" || $_GET['msg']=="erremail" || $_GET['msg']=="erradd" || $_GET['msg']=="errtitle1" || $_GET['msg']=="errlink1" || $_GET['msg']=="errtitle2" || $_GET['msg']=="errlink2" || $_GET['msg']=="errtitle3" || $_GET['msg']=="errlink3" || $_GET['msg']=='dupmsg' || $_GET['msg']=='dupweb') { $btntype='type="submit"'; if(isset($_POST['btn_reset'])) { RedirecPage('arya_editmagazinetitle.php?svid='.$_GET['svid'].'&scid='.$_GET['scid']); } } if($_GET['msg']=="err") // php validation error message { $msg="Please Enter Valid Input"; } ?> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function() { //newly added $("#txtwebadd").blur(function() { var webadd = $("#txtwebadd").val(); // assuming this is a input text field var hidgetmgid=$("#hidgetmgid").val(); if(webadd.length>0) { $.ajax({ type: 'POST', data: 'txtwebadd='+webadd+'&mgwebid='+hidgetmgid, 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.frmmagazinetitle.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> <!--<script language="javascript"> $(document).ready(function(){ $("#txtpublisher").autocomplete("arya_magazinepublisher.php", { selectFirst: true }); }); // svid=114&scid=18 </script>--> <script language="JavaScript"> function ChangeInstDetail(instid,svid,scid) { window.location.href ="arya_editmagazinetitle.php?svid="+svid+"&scid="+scid+"&instid="+instid; } </script> <form name="frmmagazinetitle" id="frmmagazinetitle" method="POST" action="" enctype="multipart/form-data" onSubmit="return blankMgznTitle();"> <table width="100%" summary="" border="0" cellspacing="0" cellpadding="0"> <tr><td align="center" height="85"><h2 class="bigheader"><?php echo $title_editmagazinetitle; ?></h2></td></tr> <?php echo SuccessMessage($msg);?> <tr> <td align="center"> <table summary="" border="0" align="center" width="100%" cellpadding="0" cellspacing="0"> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"> <?php echo $lbl_selinst; ?> : </td> <td align="left" colspan="3"> <select name="cmbinst" id="cmbinst" class="selbox" onchange="return ChangeInstDetail(this.value,'<?php echo $mgid;?>','<?php echo $_SESSION['pgsecid'];?>');"> <option value="0"><?php echo $lbl_selinst; ?></option> <?php if($_SESSION['instid']>0){ echo getInstitution($_SESSION['instid']); }else{ echo getInstitution($mgzn_instid); }?> </select> <input type="hidden" name="hidgetmgid" id="hidgetmgid" value="<?php echo $_GET["svid"];?>" /> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"> <?php echo $sign." ".$lbl_selectlanguage; ?> : </td> <td align="left" colspan="3"> <select name="cmblanguage" id="cmblanguage" id="cmblanguage" <?php echo $classlang; ?> onchange="return ChangeSelectLanguage(this.value,'edit','<?php echo $mgid; ?>','<?php echo $_SESSION['pgsecid'];?>','<?php echo $_SESSION['instid'];?>');"> <option value="0"><?php echo $lbl_selectlanguage; ?></option> <?php echo GetAllLanguage($lngsel); ?> </select> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr align="center"> <td align="right" width="20%"><?php echo $sign." ".$lbl_englishtitle;?> : </td> <td align="left"> <input type="text" name="txtmagazinetitle" id="txtmagazinetitle" <?php echo $classengtit; ?> value="<?php if($_SESSION['txtmagazinetitle']!=""){ echo $_SESSION['txtmagazinetitle'];}else{ echo $mtitle; } ?>" maxlength="200"/> </td> <td align="right"><?php if($lngname == "Hindi") { echo $sign." "; } echo $lbl_hindititle;?> : </td> <td align="left" width="17%"> <input type="text" name="hindimagazinetitle" id="hindimagazinetitle" onFocus="changeLanguage('hindimagazinetitle', 'devanagari')" <?php echo $classhndtit; ?> value="<?php if($_SESSION['hindimagazinetitle']!=""){ echo $_SESSION['hindimagazinetitle']; }else{ echo $mhindititle; } ?>" maxlength="200"/> </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 $sign." ".$lbl_othertitle;?> : </td> <td align="left"><input type="text" name="othermagazinetitle" id="othermagazinetitle" value="<?php if($_SESSION['othermagazinetitle']!=""){ echo $_SESSION['othermagazinetitle'];}else{ echo $mothertitle; } ?>" <?php echo $classotrtit; ?> maxlength="200"/></td> <?php } ?> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right"><?php echo $sign." ".$lbl_englishtagline;?> : </td> <td align="left"> <textarea rows="3" cols="10" name="txttaglinetext" id="txttaglinetext" <?php echo $classengtag; ?>><?php if($_SESSION['txttaglinetext']!=""){ echo $_SESSION['txttaglinetext']; }else{ echo $mtagline; } ?></textarea> </td> <td align="right"><?php echo $lbl_hinditagline;?> : </td> <td align="left"> <textarea rows="3" cols="10" name="txthinditaglinetext" id="txthinditaglinetext" onFocus="changeLanguage('txthinditaglinetext', 'devanagari')" <?php echo $classhndtag; ?>><?php if($_SESSION['txthinditaglinetext']!=""){ echo $_SESSION['txthinditaglinetext'];}else{ echo $mhinditagline; } ?></textarea> </td> <?php if($lngname!='English' && $lngname!="Hindi" ) { ?> <td align="right"><?php echo $sign." ".$lbl_othertagline;?> : </td> <td align="left"><textarea rows="3" cols="10" name="othertaglinetext" id="othertaglinetext" <?php echo $classotrtag; ?>><?php if($_SESSION['othertaglinetext']!=""){ echo $_SESSION['othertaglinetext'];}else{ echo $mothertagline; } ?></textarea></td> <?php } ?> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." "."Web Address"; ?> : </td> <td align="left" colspan="3">www.thearyasamaj.org/<input type="text" maxlength="30" id="txtwebadd" name="txtwebadd" <?php echo $classwebadd; ?> maxlength="20" value="<?php if($_SESSION['txtwebadd']!=""){ echo $_SESSION['txtwebadd']; }else{ echo $mgztitlewebadd; } ?>" onKeyPress="return isAlphawebadd(event)" onpaste="return false;"/> <input type="hidden" id="hidtxtwebadd" name="hidtxtwebadd" class="" value="<?php echo $mgztitlewebadd; ?>"/><span id='errlink'></span> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"> <?php echo $sign." ".$lbl_frequency; ?> : </td> <td align="left" colspan="3"> <select name="cmbfreq" id="cmbfreq" <?php echo $classfreq; ?>> <option value="0"><?php echo $lbl_frequency; ?></option> <?php if($_SESSION['cmbfreq']>0){ echo getIFrequency($_SESSION['cmbfreq']); }else{ echo getIFrequency($mgzn_frequency); } ?> </select> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right"><?php echo $sign." ".$lbl_englishpublisher;?> : </td> <td align="left"> <input type="text" name="txtpublisher" id="txtpublisher" <?php echo $classengpub; ?> value="<?php if($_SESSION['txtpublisher']!=""){ echo $_SESSION['txtpublisher']; }else if($instname!="") { echo $mpublisher= $instname; }else { echo $mpublisher; }?>" maxlength="200"/> </td> <td align="right"><?php echo $lbl_hindipublisher;?> : </td> <td align="left"> <input type="text" name="hindipublisher" id="hindipublisher" onFocus="changeLanguage('hindipublisher', 'devanagari')" <?php echo $classhndpub; ?> value="<?php if($_SESSION['hindipublisher']!=""){ echo $_SESSION['hindipublisher']; }else if($instnamehindi!="") { echo $mhindipublisher= $instnamehindi; }else { echo $mhindipublisher; }?>" maxlength="300"/> </td> <?php if($lngname!='English' && $lngname!="Hindi" ) { ?> <td align="right"><?php echo $lbl_otherpublisher;?> : </td> <td align="left"> <input type="text" name="otherpublisher" id="otherpublisher" <?php echo $classotrpub; ?> value="<?php if($_SESSION['otherpublisher']!=""){ echo $_SESSION['otherpublisher']; }else if($instnameother!="") { $motherpublisher= $instnameother; }else { echo $motherpublisher; }?><?php echo $motherpublisher;?>" maxlength="300"/> </td> <?php } ?> </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" <?php echo $classcnt; ?> onChange="findselectstate(this.value); findselcity(this.value)"> <option value="0"><?php echo $lbl_selectcountry; ?></option> <?php if($_SESSION['cmbCountry']>0) { echo Getcountry($_SESSION['cmbCountry']); } else { echo Getcountry($instcntid); } ?> </select></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $sign." ".$lbl_selectstate;?> : </td> <td align="left"> <div id="FetchAjaxDatastate"> <select name="cmbstate" id="cmbstate" <?php echo $classstate; ?> onChange="return findselcity(this.value);"> <option value="0"><?php echo $lbl_selectstate;?></option> <?php if($_SESSION['cmbstate']>0) { echo getState($_SESSION['cmbstate'],$_SESSION['cmbCountry']); } else { echo getState($inststateid,$instcntid); } ?> </select> </div> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" colspan="3"><?php echo $sign." ".$lbl_selectcity;?> : </td> <td align="left"> <div id="FetchAjaxDataCity"> <select name="cmbcity" id="cmbcity" <?php echo $classcity; ?>> <option value="0"><?php echo $lbl_selectcity; ?></option> <?php if($_SESSION['cmbcity']>0) { echo getCity($_SESSION['cmbcity'],$_SESSION['cmbstate'],$_SESSION['cmbCountry']); } else { echo getCity($instcityid,$inststateid,$instcntid); } ?> </select> </div> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_offemail; ?> : </td> <td align="left" colspan="3"><input type="text" id="txtemail" name="txtemail" <?php echo $classemail; ?> onBlur="return blurEmailCheck('txtoffemail',1);" value="<?php if($_SESSION['txtemail']!=""){ echo $_SESSION['txtemail'];}else{ echo $email;} ?>"/></td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_address; ?> : </td> <td align="left" colspan="3"> <textarea rows="3" cols="10" name="txtaddress" id="txtaddress" <?php echo $classadd; ?>><?php if($_SESSION['txtaddress']!=""){ echo $_SESSION['txtaddress'];}else{ echo $address;} ?></textarea> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td colspan="6"> <table align="center" border="0" width="100%"><tr> <td align="right" width="30%"><?php echo $lbl_linktitle1;?> : </td> <td><input type="text" name="txtlink1title" id="txtlink1title" <?php echo $classtitle1; ?> value="<?php if($_SESSION['txtlink1title']!=""){ echo $_SESSION['txtlink1title']; }else { echo $linktitle1; } ?>" maxlength="300"/></td> <td width="5%"><?php echo $lbl_lnklink1;?> : </td> <td align="left" width="45%"><input type="text" name="txtlink1link" id="txtlink1link" <?php echo $classlink1; ?> value="<?php if($_SESSION['txtlink1link']!=""){ echo $_SESSION['txtlink1link']; }else { echo $link1; } ?>" maxlength="300"/></td> <tr><td height="5" colspan="6"></td></tr> <td align="right" width="30%"><?php echo $lbl_linktitle2;?> : </td> <td><input type="text" name="txtlink2title" id="txtlink2title" <?php echo $classtitle2; ?> value="<?php if($_SESSION['txtlink2title']!=""){ echo $_SESSION['txtlink2title']; }else { echo $linktitle2; } ?>" maxlength="300"/></td> <td><?php echo $lbl_lnklink2;?> : </td> <td align="left" width="45%"><input type="text" name="txtlink2link" id="txtlink2link" <?php echo $classlink2; ?> value="<?php if($_SESSION['txtlink2link']!=""){ echo $_SESSION['txtlink2link'];}else{ echo $link2;} ?>" maxlength="300"/></td> <tr><td height="5" colspan="6"></td></tr> <td align="right" width="30%"><?php echo $lbl_linktitle3;?> : </td> <td><input type="text" name="txtlink3title" id="txtlink3title" <?php echo $classtitle3; ?> value="<?php if($_SESSION['txtlink3title']!=""){ echo $_SESSION['txtlink3title']; }else{ echo $linktitle3; } ?>" maxlength="300"/></td> <td><?php echo $lbl_lnklink3;?> : </td> <td align="left" width="45%"><input type="text" name="txtlink3link" id="txtlink3link" <?php echo $classlink3; ?> value="<?php if($_SESSION['txtlink3link']!=""){ echo $_SESSION['txtlink3link'];}else { echo $link3; }?>" maxlength="300"/></td> </tr> </table> </td> </tr> <tr><td height="5" colspan="6"></td></tr> <!--<tr> <td align="right" width=""><?php// echo $lbl_magazinelng;?> : </td><td><input type="text" name="txtmagazinelng" id="txtmagazinelng" value="<?php //echo $magazinelang; ?>" class="txtbox" /></td> </tr> <tr><td height="5" colspan="2"></td></tr> <tr> <td align="right" width=""><?php //echo $lbl_city; ?> : </td> <td><input type="text" name="txtcity" id="txtcity" class="txtbox" onkeypress="return isAlphabetic(event);" value="<?php //echo $city; ?>"/></td> </tr> <tr><td height="5" colspan="2"></td></tr> <tr> <td align="right" width=""><?php //echo $lbl_sequence; ?> : </td> <td><input type="text" name="txtsequence" id="txtsequence" maxlength="3" size="2" value="<?php echo $sequence; ?>" onkeypress="return checkInt(event);" /></td> </tr> <tr><td colspan="2" height="5"></td></tr>--> <?php if($rightapprove=='Self' || $rightapprove=='All') { ?> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_showonportalhome;?> : </td> <td align="left"><input type="radio" name="chkshowhome" id="chkshowhome" value="Yes" <?php if($_SESSION['yeschkhome']!=""){ echo $_SESSION['yeschkhome'];}else{ echo $shwhomeyes; } ?>/>Yes<input type="radio" name="chkshowhome" id="chkshowhome" value="No" <?php if($_SESSION['nochkhome']!=""){ echo $_SESSION['nochkhome'];}else{ echo $shwhomeno; } ?>/>No</td> </tr> <tr><td height="5" colspan="6"></td></tr> <tr> <td align="right" width="45%" colspan="3"><?php echo $lbl_showhome;?> : </td> <td align="left"><input type="radio" name="showhome" id="showhome" value="Yes" <?php if($_SESSION['yeshome']!=""){ echo $_SESSION['yeshome'];}else{ echo $homeyes; } ?>/>Yes<input type="radio" name="showhome" id="showhome" value="No" <?php if($_SESSION['nohome']!=""){ echo $_SESSION['nohome']; }else{ echo $homeno; } ?>/>No</td> </tr> <?php } ?> <!--<tr><td height="5" colspan="2"></td></tr> <tr> <td align="right" width=""><?php //echo $lbl_visible;?> : </td><td><input type="radio" name="txtvisible" id="txtvisible" value="Yes" <?php //echo $visibleyes; ?> />Yes<input type="radio" id="txtvisible" name="txtvisible" value="No" <?php// echo $visibleno; ?>/>No</td> </tr>--> <tr><td colspan="6" height="5"></td></tr> <tr> <td width="45%" colspan="3"></td> <td align="left" colspan="3"> <input type="submit" name="submitmagazines" id="submitmagazines" value="<?php echo $btn_update; ?>" class="button" /> <input <?php echo $btntype; ?> name="btn_reset" id="btn_reset" value="<?php echo $btn_reset; ?>"/> <input type="button" name="btnBack" id="btnBack" value="<?php echo $btn_back; ?>" class="button" onClick="history.go(-1);" /></td> </tr> <script language="javascript" type="text/javascript"> pph = new PramukhPhoneticHandler(); pph.convertToIndicIME("hindimagazinetitle", document.getElementById('hindimagazinetitle'),'english'); pph.convertToIndicIME("txthinditaglinetext", document.getElementById('txthinditaglinetext'),'english'); pph.convertToIndicIME("hindipublisher", document.getElementById('hindipublisher'),'english'); <?php if($lngname=='Hindi') { ?> pph.convertToIndicIME("othermagazinetitle", document.getElementById('othermagazinetitle'),'Devanagari'); pph.convertToIndicIME("othertaglinetext", document.getElementById('othertaglinetext'),'Devanagari'); pph.convertToIndicIME("otherpublisher", document.getElementById('otherpublisher'),'Devanagari'); <?php } else { ?> pph.convertToIndicIME("othermagazinetitle", document.getElementById('othermagazinetitle'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("othertaglinetext", document.getElementById('othertaglinetext'),'<?php echo $lngname; ?>'); pph.convertToIndicIME("otherpublisher", document.getElementById('otherpublisher'),'<?php echo $lngname; ?>'); <?php } ?> </script> </table> </td> </tr> </table> </form> <?php // content over // footer start include("arya_footer.php"); // footer over ?>
Close