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_addprimaryrecord_28-03-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 dharmishtha 09-aug-2013 //header start include('arya_header.php'); //header over // link start include("arya_menu.php"); $usersessid=$_SESSION["adminuserid"]; $dbusercatid=getFieldValue('admcat_id','arya_adminsectionrights','admuser_id="'.$usersessid.'"'); $rightsid=mysql_query('SELECT admsecright_pageid FROM arya_adminsectionrights WHERE admcat_id IN('.$dbusercatid.') AND admuser_id="'.$usersessid.'"'); 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="'.$usersessid.'" AND admcat_id="'.$dbusercatid.'"'); } } } unset($_SESSION['photoprsnid']); if($_SESSION['noapprove']=="" && $_SESSION['yesapprove']=="") { $_SESSION['yesapprove']='checked="checked"'; } $pagesequence=getFieldValue("MAX(prsn_sequence)","arya_personrecord","lang_id=1"); if($pagesequence ==""){$nvsquence=1;}else{$nvsquence=$pagesequence+1;} if($_SERVER['HTTP_HOST'] =='thearyasamaj.org') { $_SERVER['HTTP_HOST']='www.thearyasamaj.org'; } $pagesecid=getFieldValue('page_sectionid','arya_adminpage','page_filename="'.$constructed_url.'"'); $curntdate=date('Y-m-d'); $curnttime= date('h:i:s'); if(isset($_POST['btnaddevent'])) { $name=$_POST['txtname']; $_SESSION['txtname']=$name; $othername=$_POST['txtothername']; $_SESSION['txtothername']=$othername; $webadd=$_POST["webadd"]; $_SESSION['webadd']=$_POST["webadd"]; if($_POST["webadd"]!="") { $prsnwebadd=$_SERVER['HTTP_HOST']."/".addslashes($_POST["webadd"]."_en"); } else { $prsnwebadd=""; } $discoverlink=$_POST["discoverlink"]; $_SESSION['discoverlink']=$discoverlink; if($_POST["discoverlink"]!="") { $discvrlink="discover.thearyasamaj.org/".addslashes($_POST["discoverlink"]); } else { $discvrlink=""; } /*if($_POST["webadd"]!="" && $_POST["discoverlink"]!="") { if($_POST["webadd"]==$_POST["discoverlink"]) { RedirecPage('arya_addprimaryrecord.php?msg=dupcmp'); } }*/ $birthdate=$_POST['birthyear']."-".$_POST['birthmonth']."-".$_POST['birthday']; $_SESSION['birthyear']=$_POST['birthyear']; $_SESSION['birthmonth']=$_POST['birthmonth']; $_SESSION['birthday']=$_POST['birthday']; if($_POST['indianmonth']!="") { $indianmonth=$_POST['indianmonth']." VS"; $_SESSION['indianmonth']=$indianmonth; } $birthplace=$_POST['birthplace']; $_SESSION['birthplace']=$birthplace; $deadalive=$_POST['deadlive']; $_SESSION['deadlive']=$deadalive; $deathdate=$_POST['deathyear']."-".$_POST['deathmonth']."-".$_POST['deathday']; $_SESSION['deathday']=$_POST['deathday']; $_SESSION['deathmonth']=$_POST['deathmonth']; $_SESSION['deathyear']=$_POST['deathyear']; if($_POST['deathindianmonth']!="") { $deathindianmonth=$_POST['deathindianmonth']." VS"; $_SESSION['deathindianmonth']=$deathindianmonth; } $deathplace=$_POST['deathplace']; $_SESSION['deathplace']=$deathplace; $causedeath=$_POST['causedeath']; $_SESSION['causedeath']=$causedeath; $place=$_POST['place']; $_SESSION['place']=$place; $mobile=$_POST['mobile']; $_SESSION['mobile']=$mobile; $phone=$_POST['phone']; $_SESSION['phone']=$phone; $email=$_POST['email']; $_SESSION['email']=$email; $maritalstatus=$_POST['maritalstatus']; $_SESSION['maritalstatus']=$maritalstatus; $lateststatus=$_POST['lateststatus']; $_SESSION['lateststatus']=$lateststatus; $father=$_POST['fathername']; $_SESSION['fathername']=$father; $mother=$_POST['mothername']; $_SESSION['mothername']=$father; $briefinfo=$_POST['FckContent']; $_SESSION['briefinfo']=$briefinfo; $spouse=$_POST['spouse']; $_SESSION['spouse']=$spouse; if($rightapprove == 'Self' || $rightapprove == 'All') { $approve=$_POST['approve']; } else { $approve='Pending'; } unset($_SESSION['noapprove']); unset($_SESSION['yesapprove']); $usersessid=$_SESSION["adminuserid"]; $profFileName=$_FILES['profilephoto']['name']; $profTmpName=$_FILES['profilephoto']['tmp_name']; $fatherphoto=$_FILES['fatherphoto']['name']; $fatherTmpNm=$_FILES['fatherphoto']['tmp_name']; $motherphoto=$_FILES['motherphoto']['name']; $motherTmpNm=$_FILES['motherphoto']['tmp_name']; $spousephoto=$_FILES['spousephoto']['name']; $spouseTmpNm=$_FILES['spousephoto']['tmp_name']; //$filename ='../htalist.txt'; $filename ='../.htaccess'; $contents = file_get_contents($filename); // escape special characters in the query $ruleurl='RewriteRule ^'.$_POST["webadd"].'_en'.' /aryasamaj-personwebpage.php'; $searchthis = $_POST["webadd"]."_en"; $pattern = preg_quote($searchthis, '/'); // finalise the regular expression, matching the whole line $pattern = "/^.*$pattern.*\$/m"; //This code is using for the discover webpage. //$discfilename ='../htalist.txt'; //$discfilename ='../.htaccess'; //$contents = file_get_contents($discfilename); // escape special characters in the query //$discvruleurl='RewriteRule ^'.$_POST["discoverlink"].' /aryasamaj-discoverwebpage.php'; //$searchthis = $_POST["discoverlink"]; //$pattern = preg_quote($searchthis, '/'); // finalise the regular expression, matching the whole line //$pattern = "/^.*$pattern.*\$/m"; $dupname=getFieldValue("prsn_name","arya_personrecord","prsn_name='".$name."'"); $dupweb=getFieldValue("prsn_webadd","arya_personrecord","prsn_webadd='".$prsnwebadd."'"); $dupdiscvrweb=getFieldValue("prsn_dispagelink","arya_personrecord","prsn_dispagelink='".$discvrlink."'"); if($_POST['approve']=='Approved') { $_SESSION['yesapprove']='checked="checked"'; } if($_POST['approve']=='Pending') { $_SESSION['noapprove']='checked="checked"'; } /*if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if($name=="") { RedirecPage('arya_addprimaryrecord.php?msg=empname'); } } if($name!="") { if($_SERVER['SERVER_NAME']=='www.thearyasamaj.org' || $_SERVER['SERVER_NAME']=='thearyasamaj.org') { if(find_specialchar($name)=="Yes" || find_scripttags($name)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errname'); } else if(find_scripttags($othername)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errothername'); } else if(find_specialchar($webadd)=="Yes" || find_scripttags($webadd)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errwebadd'); } else if(find_specialchar($discoverlink)=="Yes" || find_scripttags($discoverlink)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errdislink'); } else if(find_specialchar($indianmonth)=="Yes" || find_scripttags($indianmonth)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errindmonth'); } else if(find_specialchar($birthplace)=="Yes" || find_scripttags($birthplace)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errbirplace'); } else if(find_specialchar($deathindianmonth)=="Yes" || find_scripttags($deathindianmonth)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errdeathindmonth'); } else if(find_specialchar($deathplace)=="Yes" || find_scripttags($deathplace)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errdeathplace'); } else if(find_specialchar($causedeath)=="Yes" || find_scripttags($causedeath)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errcausedeath'); } else if(find_specialchar($place)=="Yes" || find_scripttags($place)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errplace'); } else if(find_scripttags($mobile)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errmobile'); } else if(find_scripttags($phone)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errphone'); } else if($email!="") { if(find_scripttags($email)=="Yes" || ValidEmailCheck($email)==false) { RedirecPage('arya_addprimaryrecord.php?msg=erremail'); } } else if(find_specialchar($father)=="Yes" || find_scripttags($father)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errfather'); } else if(find_specialchar($mother)=="Yes" || find_scripttags($mother)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errmother'); } else if(find_scripttags($briefinfo)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errbrief'); } else if(find_specialchar($spouse)=="Yes" || find_scripttags($spouse)=="Yes") { RedirecPage('arya_addprimaryrecord.php?msg=errspouse'); } } }*/ $dtime=time(); $curdate=date('Y-m-d'); $updtime=date('h:i:s A',$dtime); $webaddinstime=date('h:i A',$dtime); //$dupdbwebadd=getFieldValue("webadd_name","arya_webaddresses","webadd_name='".$webadd."'"); if($webadd!="") { //$dupdbwebadd=getFieldValue("webadd_name","arya_webaddresses","webadd_name LIKE '%$webadd%'"); $dupdbwebadd=getFieldValue("webadd_name","arya_webaddresses","webadd_name='".$_POST["webadd"].'_en'."'"); $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); } /* else if($dupdbdiscvwebadd!="") { RedirecPage('arya_addprimaryrecord.php?msg=dupdisad'); }*/ /*if($dupname=="" && $dupweb=="" && $dupdiscvrweb=="") {*/ if($dupdbwebadd!="" ) { RedirecPage('arya_addprimaryrecord.php?msg=dupwbad'); //$msg=$msgDuplicateWebDis; } else { $insqryprimary="insert into arya_personrecord(lang_id, prsn_name, prsn_othername, prsn_webadd, prsn_dispagelink, prsn_birthdate, prsn_indianmonth, prsn_birthplace, prsn_deadalive,prsn_deathdate, prsn_deathindianday, prsn_deathplace, prsn_deathcause, prsn_place, prsn_mobile, prsn_phone, prsn_email, prsn_maritalstatus,prsn_lateststatus, prsn_fathername, prsn_mothername, prsn_spouse, prsn_brief,prsn_sequence, prsn_visible, user_id,prsn_uplddate,prsn_time)values('1','".$name."','".$othername."','".$prsnwebadd."','".$discvrlink."','".$birthdate."','".$indianmonth."','".$birthplace."','".$deadalive."','".$deathdate."','".$deathindianmonth."','".$deathplace."','".$causedeath."','".$place."','".$mobile."','".$phone."','".$email."','".$maritalstatus."','".$lateststatus."','".$father."','".$mother."','".$spouse."','".$briefinfo."','".$nvsquence."','".$approve."','".$usersessid."','".$curdate."','".$updtime."')"; $qryinstprmry=mysql_query($insqryprimary); if($qryinstprmry) { $insId=mysql_insert_id(); $_SESSION['prmryautoid']=$insId; getadminactivity('lbl_primaryrecord',$pagesecid,$_SESSION["adminuserid"],$_SERVER["REMOTE_ADDR"],$name,$curntdate,$curnttime); if($prsnwebadd!="" ) { $inswebaddrss="INSERT INTO arya_webaddresses (prsn_id,webadd_name,webadd_instdate,webadd_time) VALUES ('".$insId."','".$_POST["webadd"]."_en"."','".$curdate."','".$webaddinstime."')"; $qrywebaddrss=mysql_query($inswebaddrss); } /*if($discvrlink!="") { $insdislink="INSERT INTO arya_webaddresses (prsn_id,webadd_name,webadd_instdate,webadd_time) VALUES ('".$insId."','".$_POST["discoverlink"]."','".$curdate."','".$webaddinstime."')"; $qrydislink=mysql_query($insdislink); }*/ if($prsnwebadd!="") { $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); } /*if($discvrlink!="") { $discstr=implode(" ",file($discfilename)); $discfp=fopen($discfilename,'a+'); //replace something in the file string - this is a VERY simple example //$str=str_replace($mgztitlewebadd,$_POST["txtwebadd"],$str); $discd=$discvruleurl."\n"; //now, TOTALLY rewrite the file fwrite($discfp,$discd); fclose($discfp); }*/ if($_FILES['profilephoto']['name']!="") { $ImageSource = $_FILES['profilephoto']['tmp_name']; $number = rand(); $imagenumber=strtoupper(base_convert($number, 10, 36)); $FileName = $imagenumber."_".str_replace(" ","_",$_FILES['profilephoto']['name']); $SmallFileName = $imagenumber."_SM_".str_replace(" ","_",$_FILES['profilephoto']['name']); $profphext=substr(strtolower($_FILES['profilephoto']['name']),strpos($_FILES['profilephoto']['name'],'.')+1); if(strlen($profphext) > 4) { $profphext=substr(strtolower($profphext),strpos($profphext,'.')+1); } if($conditionvar=='2') { if($profphext=="jpg" || $profphext=="gif" || $profphext=="JPEG" || $profphext=="JPG" || $profphext=="GIF" || $profphext=="png" || $profphext=="PNG" || $profphext=="jpeg") { include('arya_makedirectory.php'); $Thumwidth = "250"; $Thumheight = "200"; $filePath=$photomonthpath.$FileName; $d=copy($ImageSource,$filePath); if($d) { $ThumbtoPath=$mediamonthpath.$SmallFileName; $UploadImg=generate_image_thumbnail($ImageSource, $ThumbtoPath, $Thumwidth, $Thumheight); if($UploadImg== "true") { $qryInsProfPhoto="UPDATE arya_personrecord SET prsn_profilephoto='".$ThumbtoPath."' WHERE prsn_id=".$insId; $qInsProfPhoto=mysql_query($qryInsProfPhoto); } } } else { $msg.="Upload only jpg,png,gif image.<br/>"; } } else { $year=date('Y'); $month=date('m'); $mediaPath="media/"; $mediayearpath="media/".$year."/"; $mediamonthpath="media/".$year."/".$month."/"; $Thumwidth = "100"; $Thumheight = "122"; 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($profphext=="jpg" || $profphext=="gif" || $profphext=="JPEG" || $profphext=="JPG" || $profphext=="GIF" || $profphext=="png" || $profphext=="PNG" || $profphext=="jpeg") { ob_start(); $myFile = $_FILES['profilephoto']; $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); $qryInsProfPhoto="UPDATE arya_personrecord SET prsn_profilephoto='".$smalldestination_file."' WHERE prsn_id=".$insId; $qInsProfPhoto=mysql_query($qryInsProfPhoto); } else { $msg.="Upload only jpg,png,gif image.<br/>"; } } } if($_FILES['fatherphoto']['name']!="") { $ImageSource = $_FILES['fatherphoto']['tmp_name']; $number = rand(); $imagenumber=strtoupper(base_convert($number, 10, 36)); $FileName = $imagenumber."_".str_replace(" ","_",$_FILES['fatherphoto']['name']); $SmallFileName = $imagenumber."_SM_".str_replace(" ","_",$_FILES['fatherphoto']['name']); $fathrphext=substr(strtolower($_FILES['fatherphoto']['name']),strpos($_FILES['fatherphoto']['name'],'.')+1); if(strlen($fathrphext) > 4) { $fathrphext=substr(strtolower($fathrphext),strpos($fathrphext,'.')+1); } if($conditionvar=='2') { if($fathrphext=="jpg" || $fathrphext=="gif" || $fathrphext=="JPEG" || $fathrphext=="JPG" || $fathrphext=="GIF" || $fathrphext=="png" || $fathrphext=="PNG" || $fathrphext=="jpeg") { include('arya_makedirectory.php'); $Thumwidth = "100"; $Thumheight = "122"; $filePath=$photomonthpath.$FileName; $d=copy($ImageSource,$filePath); if($d) { $ThumbtoPath=$mediamonthpath.$SmallFileName; $UploadImg=generate_image_thumbnail($ImageSource, $ThumbtoPath, $Thumwidth, $Thumheight); if($UploadImg== "true") { $qryFathrProfPhoto="UPDATE arya_personrecord SET prsn_fatherphoto='".$ThumbtoPath."' WHERE prsn_id=".$insId; $qFathProfPhoto=mysql_query($qryFathrProfPhoto); } } } else { $msg.="Upload only jpg,png,gif image.<br/>"; } } else { $year=date('Y'); $month=date('m'); $mediaPath="media/"; $mediayearpath="media/".$year."/"; $mediamonthpath="media/".$year."/".$month."/"; $Thumwidth = "100"; $Thumheight = "122"; 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($fathrphext=="jpg" || $fathrphext=="gif" || $fathrphext=="JPEG" || $fathrphext=="JPG" || $fathrphext=="GIF" || $fathrphext=="png" || $fathrphext=="PNG" || $fathrphext=="jpeg") { ob_start(); $myFile = $_FILES['fatherphoto']; $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); $qryFathrProfPhoto="UPDATE arya_personrecord SET prsn_fatherphoto='".$smalldestination_file."' WHERE prsn_id=".$insId; $qFathProfPhoto=mysql_query($qryFathrProfPhoto); } else { $msg.="Upload only jpg,png,gif image.<br/>"; } } } if($_FILES['motherphoto']['name']!="") { $ImageSource = $_FILES['motherphoto']['tmp_name']; $number = rand(); $imagenumber=strtoupper(base_convert($number, 10, 36)); $FileName = $imagenumber."_".str_replace(" ","_",$_FILES['motherphoto']['name']); $SmallFileName = $imagenumber."_SM_".str_replace(" ","_",$_FILES['motherphoto']['name']); $mothrphext=substr(strtolower($_FILES['motherphoto']['name']),strpos($_FILES['motherphoto']['name'],'.')+1); if(strlen($mothrphext) > 4) { $mothrphext=substr(strtolower($mothrphext),strpos($mothrphext,'.')+1); } if($conditionvar=='2') { if($mothrphext=="jpg" || $mothrphext=="gif" || $mothrphext=="JPEG" || $mothrphext=="JPG" || $mothrphext=="GIF" || $mothrphext=="png" || $mothrphext=="PNG" || $mothrphext=="jpeg") { include('arya_makedirectory.php'); $Thumwidth = "100"; $Thumheight = "122"; $filePath=$photomonthpath.$FileName; $d=copy($ImageSource,$filePath); if($d) { $ThumbtoPath=$mediamonthpath.$SmallFileName; $UploadImg=generate_image_thumbnail($ImageSource, $ThumbtoPath, $Thumwidth, $Thumheight); if($UploadImg== "true") { $qryMothrPhoto="UPDATE arya_personrecord SET prsn_motherphoto='".$ThumbtoPath."' WHERE prsn_id=".$insId; $qMothrPhoto=mysql_query($qryMothrPhoto); } } } else { $msg.="Upload only jpg,png,gif image.<br/>"; } } else { $year=date('Y'); $month=date('m'); $mediaPath="media/"; $mediayearpath="media/".$year."/"; $mediamonthpath="media/".$year."/".$month."/"; $Thumwidth = "100"; $Thumheight = "122"; 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($mothrphext=="jpg" || $mothrphext=="gif" || $mothrphext=="JPEG" || $mothrphext=="JPG" || $mothrphext=="GIF" || $mothrphext=="png" || $mothrphext=="PNG" || $mothrphext=="jpeg") { ob_start(); $myFile = $_FILES['motherphoto']; $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); $qryMothrPhoto="UPDATE arya_personrecord SET prsn_motherphoto='".$smalldestination_file."' WHERE prsn_id=".$insId; $qMothrPhoto=mysql_query($qryMothrPhoto); } else { $msg.="Upload only jpg,png,gif image.<br/>"; } } } if($_FILES['spousephoto']['name']!="") { $ImageSource = $_FILES['spousephoto']['tmp_name']; $number = rand(); $imagenumber=strtoupper(base_convert($number, 10, 36)); $FileName = $imagenumber."_".str_replace(" ","_",$_FILES['spousephoto']['name']); $SmallFileName = $imagenumber."_SM_".str_replace(" ","_",$_FILES['spousephoto']['name']); $spouseext=substr(strtolower($_FILES['spousephoto']['name']),strpos($_FILES['spousephoto']['name'],'.')+1); if(strlen($spouseext) > 4) { $spouseext=substr(strtolower($spouseext),strpos($spouseext,'.')+1); } if($conditionvar=='2') { if($spouseext=="jpg" || $spouseext=="gif" || $spouseext=="JPEG" || $spouseext=="JPG" || $spouseext=="GIF" || $spouseext=="png" || $spouseext=="PNG" || $spouseext=="jpeg") { include('arya_makedirectory.php'); $Thumwidth = "100"; $Thumheight = "122"; $filePath=$photomonthpath.$FileName; $d=copy($ImageSource,$filePath); if($d) { $ThumbtoPath=$mediamonthpath.$SmallFileName; $UploadImg=generate_image_thumbnail($ImageSource, $ThumbtoPath, $Thumwidth, $Thumheight); if($UploadImg== "true") { $qrySpusePhoto="UPDATE arya_personrecord SET prsn_spousephoto='".$ThumbtoPath."' WHERE prsn_id=".$insId; $qSpusePhoto=mysql_query($qrySpusePhoto); } } } else { $msg.="Upload only jpg,png,gif image.<br/>"; } } else { $year=date('Y'); $month=date('m'); $mediaPath="media/"; $mediayearpath="media/".$year."/"; $mediamonthpath="media/".$year."/".$month."/"; $Thumwidth = "100"; $Thumheight = "122"; 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($spouseext=="jpg" || $spouseext=="gif" || $spouseext=="JPEG" || $spouseext=="JPG" || $spouseext=="GIF" || $spouseext=="png" || $spouseext=="PNG" || $spouseext=="jpeg") { ob_start(); $myFile = $_FILES['spousephoto']; $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); $qrySpusePhoto="UPDATE arya_personrecord SET prsn_spousephoto='".$smalldestination_file."' WHERE prsn_id=".$insId; $qSpusePhoto=mysql_query($qrySpusePhoto); } else { $msg.="Upload only jpg,png,gif image.<br/>"; } } } $msg=$msgInserRecord; ?> <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_persnphotoupload.php?name=2', width:"850px", height:"650px", }); }, 500 ); }); //--> </script> <?php //} } } } $classname='class="txtbox"'; $classotrname='class="txtbox"'; $classwebadd='class="txtbox"'; $classdislink='class="txtbox"'; $classbirthplace='class="txtbox"'; $classindianmonth='class="txtbox"'; $classdeathmonth='class="txtbox"'; $classdeathplace='class="txtbox"'; $classcausedeath='class="txtbox"'; $clasplace='class="txtbox"'; $classmobile='class="txtbox"'; $classphone='class="txtbox"'; $classemail='class="txtbox"'; $classfather='class="txtbox"'; $classmother='class="txtbox"'; $classbrief='class="txtbox"'; $classspouse='class="txtbox"'; if($_GET['msg']=="empname") { $emtttle=$lbl_errmenmsg." ".$lbl_name; $msg=$emtttle; $classname='class="errtxtengbord"'; } else if($_GET['msg']=='errname') { $emtttle=$lbl_errvalidmsg." ".$lbl_name; $msg=$emtttle; $classname='class="errtxtengbord"'; } else if($_GET['msg']=='errothername') { $emtttle=$lbl_errvalidmsg." ".$lbl_othername; $msg=$emtttle; $classotrname='class="errtxtengbord"'; } else if($_GET['msg']=='errwebadd') { $emtttle=$lbl_errvalidmsg." ".$lbl_webpageadd; $msg=$emtttle; $classwebadd='class="errtxtengbord"'; } else if($_GET['msg']=='errdislink') { $emtttle=$lbl_errvalidmsg." ".$lbl_dispagelink; $msg=$emtttle; $classdislink='class="errtxtengbord"'; } else if($_GET['msg']=='errindmonth') { $emtttle=$lbl_errvalidmsg; $msg=$emtttle; $classindianmonth='class="errtxtengbord"'; } else if($_GET['msg']=='errbirplace') { $emtttle=$lbl_errvalidmsg." ".$lbl_birthplace; $msg=$emtttle; $classbirthplace='class="errtxtengbord"'; } else if($_GET['msg']=='errdeathindmonth') { $emtttle=$lbl_errvalidmsg; $msg=$emtttle; $classdeathmonth='class="errtxtengbord"'; } else if($_GET['msg']=='errdeathplace') { $emtttle=$lbl_errvalidmsg." ".$lbl_birthplace; $msg=$emtttle; $classdeathplace='class="errtxtengbord"'; } else if($_GET['msg']=='errcausedeath') { $emtttle=$lbl_errvalidmsg." "."Cause of Death"; $msg=$emtttle; $classcausedeath='class="errtxtengbord"'; } else if($_GET['msg']=='errplace') { $emtttle=$lbl_errvalidmsg." "."Place"; $msg=$emtttle; $clasplace='class="errtxtengbord"'; } else if($_GET['msg']=='errmobile') { $emtttle=$lbl_errvalidmsg." "."Mobile"; $msg=$emtttle; $classmobile='class="errtxtengbord"'; } else if($_GET['msg']=='errphone') { $emtttle=$lbl_errvalidmsg." "."Phone"; $msg=$emtttle; $classphone='class="errtxtengbord"'; } else if($_GET['msg']=='erremail') { $emtttle=$lbl_errvalidmsg." "."Email"; $msg=$emtttle; $classemail='class="errtxtengbord"'; } else if($_GET['msg']=='errfather') { $emtttle=$lbl_errvalidmsg." "."Father"; $msg=$emtttle; $classfather='class="errtxtengbord"'; } else if($_GET['msg']=='errmother') { $emtttle=$lbl_errvalidmsg." "."Mother"; $msg=$emtttle; $classmother='class="errtxtengbord"'; } else if($_GET['msg']=='errbrief') { $emtttle=$lbl_errvalidmsg." "."Brief Information"; $msg=$emtttle; $classbrief='class="errtxtengbord"'; } else if($_GET['msg']=='errspouse') { $emtttle=$lbl_errvalidmsg." "."Spouse"; $msg=$emtttle; $classspouse='class="errtxtengbord"'; } else if($_GET['msg']=='dupwbad') { $msg=$lbl_dupwebadd; $classwebadd='class="errtxtengbord"'; } else if($_GET['msg']=='dupdisad') { $msg=$lbl_dupdiscvrlnk; $classdislink='class="errtxtengbord"'; } else if($_GET['msg']=='dupcmp') { $msg=$msgSimilarWebAdd; } else { unset($_SESSION['txtname']); unset($_SESSION['txtothername']); unset($_SESSION['webadd']); unset($_SESSION['discoverlink']); unset($_SESSION['birthyear']); unset($_SESSION['birthmonth']); unset($_SESSION['birthday']); unset($_SESSION['indianmonth']); unset($_SESSION['birthplace']); unset($_SESSION['deadlive']); unset($_SESSION['deathday']); unset($_SESSION['deathmonth']); unset($_SESSION['deathyear']); unset($_SESSION['deathindianmonth']); unset($_SESSION['deathplace']); unset($_SESSION['causedeath']); unset($_SESSION['place']); unset($_SESSION['mobile']); unset($_SESSION['phone']); unset($_SESSION['email']); unset($_SESSION['maritalstatus']); unset($_SESSION['lateststatus']); unset($_SESSION['fathername']); unset($_SESSION['mothername']); unset($_SESSION['briefinfo']); unset($_SESSION['spouse']); unset($_SESSION['noapprove']); unset($_SESSION['yesapprove']); /*$classname='class="txtbox"'; $classotrname='class="txtbox"'; $classwebadd='class="txtbox"'; $classdislink='class="txtbox"'; $classbirthplace='class="txtbox"'; $classindianmonth='class="txtbox"'; $classdeathmonth='class="txtbox"'; $classdeathplace='class="txtbox"'; $classcausedeath='class="txtbox"'; $clasplace='class="txtbox"'; $classmobile='class="txtbox"'; $classphone='class="txtbox"'; $classemail='class="txtbox"'; $classfather='class="txtbox"'; $classmother='class="txtbox"'; $classbrief='class="txtbox"'; $classspouse='class="txtbox"';*/ } if($_SESSION['yesapprove']=="" && $_SESSION['noapprove']=="") { $_SESSION['yesapprove']="checked='true'"; } ?> <script type="text/javascript"> $(document).ready(function(){ //newly added $("#webadd").blur(function(){ var frmwebadd = $("#webadd").val(); // assuming this is a input text fields var hidweb=$("#hidweb").val(); var webadd=frmwebadd+hidweb; if(webadd.length>0) { $.ajax({ type: 'POST', data: 'webadd='+webadd, url: 'arya_prsnchkwebadd.php', success: function(data){ if(data==0) { $("#errclass").html(""); } else { $("#errclass").html("<font color='Red'>This Web Address is not available</font>"); document.frmprimary.webadd.focus(); return false; } //alert("ok"); //alert("call suc") } /*,error: function(){ //console.log(data); alert('There was an error in call'); }*/ }); return false; } else { $("#errclass").html(""); } }); $("#discoverlink").blur(function(){ var discoverlink = $("#discoverlink").val(); // assuming this is a input text fields if(discoverlink.length>0) { $.ajax({ type: 'POST', data: 'discoverlink='+discoverlink, url: 'arya_prsnchkwebadd.php', success: function(data){ if(data==0) { $("#errdislnk").html(""); } else { $("#errdislnk").html("<font color='Red'>This Discover Page Link is not available</font>"); document.frmprimary.discoverlink.focus(); return false; } //alert("ok"); //alert("call suc") } /*,error: function(){ //console.log(data); alert('There was an error in call'); }*/ }); return false; } else { $("#errdislnk").html(""); } }); $("#profilephoto").change(function () { var profsize = 204800; //var prfiSize =this.files[0]; var prfiSize =($("#profilephoto")[0].files[0].size); if (prfiSize > profsize) { alert("Please Upload Only Less-Than 200 Kb Image."); document.frmprimary.profilephoto.focus(); } }); $("#fatherphoto").change(function(){ var fthrsize = 204800; //var f=this.files[0]; var father =($("#fatherphoto")[0].files[0].size); if (father > fthrsize) { alert("Please Upload Only Less-Than 200 Kb Image."); document.frmprimary.fatherphoto.focus(); //alert(f.fileSize); } }); $("#motherphoto").change(function(){ var mthrsize = 204800; //var m=this.files[0]; //alert(f.size||f.fileSize); var mother =($("#motherphoto")[0].files[0].size); if (mother > mthrsize) { alert("Please Upload Only Less-Than 200 Kb Image."); document.frmprimary.motherphoto.focus(); //alert(f.fileSize); } }); $("#spousephoto").change(function(){ var spthrsize = 204800; //var s=this.files[0]; var spouse =($("#spousephoto")[0].files[0].size); //alert(f.size||f.fileSize); if (spouse > spthrsize) { alert("Please Upload Only Less-Than 200 Kb Image."); document.frmprimary.spousephoto.focus(); //alert(f.fileSize); } }); }); </script> <form method="post" action="arya_addprimaryrecord.php" name="frmprimary" id="frmprimary" enctype="multipart/form-data" onSubmit="return blankPrimary();"> <table width="100%" summary="" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center" height="85" colspan="6"> <h2 class="bigheader"><?php echo $lbl_primaryrecord; ?></h2> </td> </tr> <?php echo SuccessMessage($msg);?> <tr> <td align="center"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td align="right" width="45%" ><?php echo $sign." ".$lbl_lang; ?> : </td> <td> <select name="cmblang" id="cmblang" class="selbox" disabled="true"> <option value="1">English</option> </select> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo $sign." ".$lbl_name; ?> : </td> <td> <input type="text" name="txtname" value="<?php echo $_SESSION['txtname']; ?>" id="txtname" <?php echo $classname; ?> maxlength="100" /> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo $lbl_othernms; ?> : </td> <td> <textarea name="txtothername" maxlength="255" id="txtothername" <?php echo $classotrname; ?>><?php echo $_SESSION['txtothername']; ?></textarea> </td> </tr> <tr><td height="5" ></td></tr> <tr><td width="45%"></td><td><font color="Red">Preferable image width 200px height 250px</font></td></tr> <tr> <td align="right" width="45%" ><?php echo $lbl_profilephoto; ?> : </td> <td> <input type="file" name="profilephoto" id="profilephoto" value=""/> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo $lbl_webpageadd; ?> : </td> <td> www.thearyasamaj.org/<input type="text" name="webadd" onKeyPress="return isAlphawebadd(event)" onpaste="return false;" value="<?php echo $_SESSION['webadd']; ?>" id="webadd" maxlength="30" <?php echo $classwebadd; ?>/><input type="text" name="hidweb" id="hidweb" value="_en" disabled="true" size="1" /> <span id="errclass" style="display:inline;"></span> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo $lbl_dispagelink; ?> : </td> <td> discover.thearyasamaj.org/<input type="text" name="discoverlink" onKeyPress="return isAlphawebadd(event)" onpaste="return false;" value="<?php echo $_SESSION['discoverlink']; ?>" id="discoverlink" maxlength="30" <?php echo $classdislink; ?> /><span id="errdislnk" style="display:inline;"></span> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo $lbl_dateofbirth; ?> : </td> <td> <?php if($_SESSION['birthyear']>0 || $_SESSION['birthmonth']>0 || $_SESSION['birthday']>0) { echo '<select id="birthday" name="birthday" class="brthdate" >'.GetDay($_SESSION['birthday']).'</select>'; echo '<select id="birthmonth" name="birthmonth" class="brthdate" >'.GetMonth($_SESSION['birthmonth']).'</select>'; echo '<select id="birthyear" name="birthyear" class="brthdate" >'.GetpribirthYear($_SESSION['birthyear']).'</select>'; } else { echo '<select id="birthday" name="birthday" class="brthdate" >'.GetDay().'</select>'; echo '<select id="birthmonth" name="birthmonth" class="brthdate" >'.GetMonth().'</select>'; echo '<select id="birthyear" name="birthyear" class="brthdate" >'.GetpribirthYear().'</select>'; } ?> <input type="text" name="indianmonth" value="<?php echo $_SESSION['indianmonth']; ?>" id="indianmonth" <?php echo $classindianmonth; ?>/> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo $lbl_birthplace; ?> : </td> <td> <input type="text" name="birthplace" maxlength="100" value="<?php echo $_SESSION['birthplace']; ?>" id="birthplace" <?php echo $classbirthplace; ?>/> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo $lbl_deadalive; ?> : </td> <td> <select name="deadlive" id="deadlive" class="selbox" onchange="findfieldusingdeadalive(this.value);"><option value="">Select Dead or Alive</option><?php echo getdeadalive($_SESSION['deadlive']); ?></select> </td> </tr> </table> </td> </tr> <tr> <td align="center"> <?php if($_SESSION['deadlive']=='Dead'){ ?> <table cellpadding="0" cellspacing="0" border="0" width="200%" id="dead" style="display:inline;"> <?php }else{ ?> <table cellpadding="0" cellspacing="0" border="0" width="200%" id="dead" style="display:none;"> <?php } ?> <tr><td height="5" ></td></tr> <tr><td width="27%"></td> <td align="right"><?php echo $lbl_dateofdeath; ?> : </td> <td align="left"> <?php if($_SESSION['deathyear']>0 || $_SESSION['deathmonth']>0 || $_SESSION['deathday']>0) { echo '<select id="deathday" name="deathday" class="brthdate" >'.GetDay($_SESSION['deathday']).'</select>'; echo '<select id="deathmonth" name="deathmonth" class="brthdate" >'.GetMonth($_SESSION['deathmonth']).'</select>'; echo '<select id="deathyear" name="deathyear" class="brthdate" >'.GetpribirthYear($_SESSION['deathyear']).'</select>'; } else { echo '<select id="deathday" name="deathday" class="brthdate" >'.GetDay().'</select>'; echo '<select id="deathmonth" name="deathmonth" class="brthdate" >'.GetMonth().'</select>'; echo '<select id="deathyear" name="deathyear" class="brthdate" >'.GetpribirthYear().'</select>'; } ?> </td> <td> <input type="text" name="deathindianmonth" id="deathindianmonth" value="<?php echo $_SESSION['deathindianmonth']; ?>" <?php echo $classdeathmonth; ?> /></td> </tr><tr><td height="5" ></td></tr> <tr><td width="22%"></td> <td align="right"><?php echo "Place of Death"; ?> : </td> <td align="left"> <input type="text" name="deathplace" maxlength="100" id="deathplace" value="<?php echo $_SESSION['deathplace']; ?>" <?php echo $classdeathplace; ?> /> </td> <td> </td> </tr><tr><td height="5" ></td></tr> <tr><td width="22%"></td> <td align="right"><?php echo "Cause of Death"; ?> : </td> <td align="left"> <input type="text" name="causedeath" maxlength="150" id="causedeath" value="<?php echo $_SESSION['causedeath']; ?>" <?php echo $classcausedeath; ?> /> </td> <td> </td> </tr> </table> <?php if($_SESSION['deadlive']=='Alive'){ ?> <table cellpadding="0" cellspacing="0" border="0" width="100%" id="alive" style="display:inline;"> <?php }else{ ?> <table cellpadding="0" cellspacing="0" border="0" width="100%" id="alive" style="display:none;"> <?php } ?> <tr><td height="5" ></td></tr> <tr> <td align="right" width="41%"><?php echo "Place"; ?> : </td> <td align="left"> <input type="text" name="place" maxlength="100" id="place" value="<?php echo $_SESSION['place']; ?>" <?php echo $clasplace; ?> /> </td> <td width="32%"> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="37%"><?php echo "Mobile"; ?> : </td> <td align="left"> <input type="text" maxlength="100" name="mobile" id="mobile" value="<?php echo $_SESSION['mobile']; ?>" <?php echo $classmobile; ?> /> </td> <td width="32%"> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="37%"><?php echo "Phone"; ?> : </td> <td align="left"> <input type="text" name="phone" id="phone" maxlength="100" value="<?php echo $_SESSION['phone']; ?>" <?php echo $classphone; ?> /> </td> <td width="32%"> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="37%"><?php echo "Email"; ?> : </td> <td align="left"> <input type="text" name="email" id="email" value="<?php echo $_SESSION['email']; ?>" <?php echo $classemail; ?> /> </td> <td width="32%"> </td> </tr> </table> </td></tr> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo "Marital Status"; ?> : </td> <td> <select name="maritalstatus" id="maritalstatus" class="selbox" onchange="findfieldusingmaritalstatus(this.value);"><option value="0">Marital Status</option><?php echo getmaritalstatus($_SESSION['maritalstatus']); ?></select> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo "Latest Status"; ?> : </td> <td> <select name="lateststatus" id="lateststatus" class="selbox" onchange="findfieldusingdeadalive(this.value);"><option value="0">Latest Status</option><?php echo getlateststatus($_SESSION['lateststatus']); ?></select> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo "Father"; ?> : </td> <td> <input type="text" name="fathername" maxlength="100" id="fathername" value="<?php echo $_SESSION['fathername']; ?>" <?php echo $classfather; ?> /> <input type="file" name="fatherphoto" id="fatherphoto" size="10" /> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo "Mother"; ?> : </td> <td> <input type="text" name="mothername" maxlength="100" id="mothername" value="<?php echo $_SESSION['mothername']; ?>" <?php echo $classmother; ?> /> <input type="file" name="motherphoto" id="motherphoto" size="10" /> </td> </tr> </table> <?php if($_SESSION['maritalstatus']=='Married' || $_SESSION['maritalstatus']=='Widowed'){ ?> <table cellpadding="0" cellspacing="0" border="0" width="100%" id="newspid" style="display:inline;" align="center"> <?php }else{ ?> <table cellpadding="0" cellspacing="0" border="0" width="100%" id="newspid" style="display:none;" align="center"> <?php } ?> <tr><td height="5"></td></tr> <tr> <td align="right" width="45%"><?php echo "Spouse"; ?> : </td> <td align="left" width="1%"> <input type="text" maxlength="100" name="spouse" id="spouse" value="<?php echo $_SESSION['spouse']; ?>" <?php echo $classspouse; ?> style="margin:-14px 0 0 0;" /> </td> <td> <input type="file" name="spousephoto" id="spousephoto" size="10" /></td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo "Brief Information"; ?> : </td> <td> <!--<textarea name="briefinfo" id="briefinfo" <?php echo $classbrief; ?> cols="26" rows="5" ><?php echo $_SESSION['briefinfo']; ?></textarea>--> <?php include_once("arya_ckeditor.php"); /*include_once("FCK/fckeditor.php"); $oFCKeditor = new FCKeditor('FckContent'); $oFCKeditor->BasePath = "FCK/" ; $oFCKeditor->Value = $_SESSION["briefinfo"]; $oFCKeditor->Width = 550; $oFCKeditor->Height = 300; $oFCKeditor->Create() ; */ ?> </td> </tr> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo $lbl_sequence; ?> : </td> <td><input type="text" value="<?php echo $nvsquence; ?>" size="3" disabled="true" /> </td> </tr> <?php if($rightapprove == 'Self' || $rightapprove == 'All') { ?> <tr><td height="5" ></td></tr> <tr> <td align="right" width="45%" ><?php echo "Publish"; ?> : </td> <td><input type="radio" name="approve" id="approve" value="Approved" <?php echo $_SESSION['yesapprove'];?>>Yes <input type="radio" name="approve" id="approve" value="Pending" <?php echo $_SESSION['noapprove']; ?>>No </td> </tr> <?php } ?> <tr><td height="10" ></td></tr> <tr> <td align="center" width="45%" colspan="2"> <input type="submit" name="btnaddevent" id="btnaddevent" value="<?php echo $btn_add; ?>" /> <input type="reset" name="btn_reset" id="btn_reset" value="<?php echo $btn_reset; ?>"/> <input type="button" name="back" id="back" value="<?php echo $btn_back; ?>" class="button" onClick="history.go(-1);" /> </td> </tr> </table> </table> </td> </tr> </table> </form> <?php include("arya_footer.php"); ?>
Close