<?php

$logo = $settings['site_logo'];
?>

<?php if(@$error): ?>

	<div class="alert alert-dismissible alert-danger">

        <button type="button" class="close" data-dismiss="alert">×</button>

        <strong>Hata!</strong> <?=$errorText?>

    </div>

<?php endif; ?>

<?php if(@$success): ?>

	<div class="alert alert-dismissible alert-success">

        <button type="button" class="close" data-dismiss="alert">×</button>

        <strong>Başarılı!</strong> <?=$success?>

    </div>

<?php endif; ?>



<div class="panel panel-default">

	<div class="panel-heading">

		Genel Ayarlar

	</div>

	<!-- /.panel-heading -->

	<div class="panel-body">

		<form action="" method="post" enctype="multipart/form-data">

			<div class="row">

				<div class="col-md-12">

					<div class="form-group">

						<div class="input-group">

							<span for="preferenceLogo" class="input-group-addon"><b>Site Logo</b></span>

							<div class="img-thumbnail" style="border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius: 0;width:100%;justify-content: center;text-align: center;">

								<img height="60" src="<?=$settings["site_logo"];?>">
                                
							</div>

							<input type="file" name="site_logo" id="preferenceLogo" class="form-control" style="border-top-right-radius: 0;">

						</div>

					</div>
					
					<div class="form-group">

						<div class="input-group">

							<span for="preferenceDarkLogo" class="input-group-addon"><b>Site Dark Logo</b></span>

							<div class="img-thumbnail" style="border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius: 0;width:100%;justify-content: center;text-align: center;">

								<img height="60" src="<?=$settings["site_darklogo"];?>">
                                
							</div>

							<input type="file" name="site_darklogo" id="preferenceDarkLogo" class="form-control" style="border-top-right-radius: 0;">

						</div>

					</div>

					<div class="form-group">

						<div class="input-group">

							<span for="preferenceFavicon" class="input-group-addon"><b>Site Favicon</b></span>

							<div class="img-thumbnail" style="border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius: 0;width:100%;justify-content: center;text-align: center;">

								<img height="40" src="<?=FAVO;?>">

							</div>
							<input type="file" name="site_favi" id="preferenceFavicon" class="form-control" style="border-top-right-radius: 0;">

						</div>

					</div>

				</div>

			</div>

			<hr>

			<div class="form-group">

				<div class="input-group">

					<span class="input-group-addon"><b>Para Birimi</b></span>

					<select name="site_currency" class="form-control select2">

						<option value="try" <?=(CURRENCY_CODE == "TRY") ? " selected" : null;?>>Türk Lirası (TRY)</option>

						<option value="usd" <?=(CURRENCY_CODE == "USD") ? " selected" : null;?>>Amerikan Doları (USD)</option>

						<option value="eur" <?=(CURRENCY_CODE == "EUR") ? " selected" : null;?>>Euro (EUR)</option>

					</select>

				</div>

			</div>

			<div class="form-group">

				<div class="input-group">

					<span class="input-group-addon"><b>SMS Sağlayıcı</b></span>

					<select name="sms_provider" class="form-control select2">

						<option value="0" <?=($settings["sms_provider"] == 0) ? " selected" : null;?>>Yok</option>

						<option value="1" <?=($settings["sms_provider"] == 1) ? " selected" : null;?>>BizimSMS</option>

						<option value="2" <?=($settings["sms_provider"] == 2) ? " selected" : null;?>>NetGSM</option>

						<option value="3" <?=($settings["sms_provider"] == 3) ? " selected" : null;?>>İleti Merkezi</option>

					</select>

				</div>

			</div>

			<div class="form-group">

				<div class="input-group">

					<span class="input-group-addon"><b>Bakım Modu</b></span>

					<select name="maintenance_status" class="form-control select2">

						<option value="0" <?=($settings["maintenance_status"] == 0) ? " selected" : null;?>>Pasif</option>

						<option value="1" <?=($settings["maintenance_status"] == 1) ? " selected" : null;?>>Aktif</option>

					</select>

				</div>

			</div>

			

			<div class="form-group">
				<div class="input-group">
					<span class="input-group-addon"><b>Zaman Dilimi</b></span>
					<select name="timezone" class="form-control">
					   <option></option>
					   <option value="Etc/GMT+12" <?=($settings["timezone"] == "Etc/GMT+12") ? " selected" : null;?>>(GMT-12:00) International Date Line West</option>
					   <option value="Pacific/Midway" <?=($settings["timezone"] == "Pacific/Midway") ? " selected" : null;?>>(GMT-11:00) Midway Island, Samoa</option>
					   <option value="Pacific/Honolulu" <?=($settings["timezone"] == "Pacific/Honolulu") ? " selected" : null;?>>(GMT-10:00) Hawaii</option>
					   <option value="US/Alaska" <?=($settings["timezone"] == "US/Alaska") ? " selected" : null;?>>(GMT-09:00) Alaska</option>
					   <option value="America/Los_Angeles" <?=($settings["timezone"] == "America/Los_Angeles") ? " selected" : null;?>>(GMT-08:00) Pacific Time (US & Canada)</option>
					   <option value="America/Tijuana" <?=($settings["timezone"] == "America/Tijuana") ? " selected" : null;?>>(GMT-08:00) Tijuana, Baja California</option>
					   <option value="US/Arizona" <?=($settings["timezone"] == "US/Arizona") ? " selected" : null;?>>(GMT-07:00) Arizona</option>
					   <option value="America/Chihuahua" <?=($settings["timezone"] == "America/Chihuahua") ? " selected" : null;?>>(GMT-07:00) Chihuahua, La Paz, Mazatlan</option>
					   <option value="US/Mountain" <?=($settings["timezone"] == "US/Mountain") ? " selected" : null;?>>(GMT-07:00) Mountain Time (US & Canada)</option>
					   <option value="America/Managua" <?=($settings["timezone"] == "America/Managua") ? " selected" : null;?>>(GMT-06:00) Central America</option>
					   <option value="US/Central" <?=($settings["timezone"] == "US/Central") ? " selected" : null;?>>(GMT-06:00) Central Time (US & Canada)</option>
					   <option value="America/Mexico_City" <?=($settings["timezone"] == "America/Mexico_City") ? " selected" : null;?>>(GMT-06:00) Guadalajara, Mexico City, Monterrey</option>
					   <option value="Canada/Saskatchewan" <?=($settings["timezone"] == "Canada/Saskatchewan") ? " selected" : null;?>>(GMT-06:00) Saskatchewan</option>
					   <option value="America/Bogota" <?=($settings["timezone"] == "America/Bogota") ? " selected" : null;?>>(GMT-05:00) Bogota, Lima, Quito, Rio Branco</option>
					   <option value="US/Eastern" <?=($settings["timezone"] == "US/Eastern") ? " selected" : null;?>>(GMT-05:00) Eastern Time (US & Canada)</option>
					   <option value="US/East-Indiana" <?=($settings["timezone"] == "US/East-Indiana") ? " selected" : null;?>>(GMT-05:00) Indiana (East)</option>
					   <option value="Canada/Atlantic" <?=($settings["timezone"] == "Canada/Atlantic") ? " selected" : null;?>>(GMT-04:00) Atlantic Time (Canada)</option>
					   <option value="America/Caracas" <?=($settings["timezone"] == "America/Caracas") ? " selected" : null;?>>(GMT-04:00) Caracas, La Paz</option>
					   <option value="America/Manaus" <?=($settings["timezone"] == "America/Manaus") ? " selected" : null;?>>(GMT-04:00) Manaus</option>
					   <option value="America/Santiago" <?=($settings["timezone"] == "America/Santiago") ? " selected" : null;?>>(GMT-04:00) Santiago</option>
					   <option value="Canada/Newfoundland" <?=($settings["timezone"] == "Canada/Newfoundland") ? " selected" : null;?>>(GMT-03:30) Newfoundland</option>
					   <option value="America/Sao_Paulo" <?=($settings["timezone"] == "America/Sao_Paulo") ? " selected" : null;?>>(GMT-03:00) Brasilia</option>
					   <option value="America/Argentina/Buenos_Aires" <?=($settings["timezone"] == "America/Argentina/Buenos_Aires") ? " selected" : null;?>>(GMT-03:00) Buenos Aires, Georgetown</option>
					   <option value="America/Godthab" <?=($settings["timezone"] == "America/Godthab") ? " selected" : null;?>>(GMT-03:00) Greenland</option>
					   <option value="America/Montevideo" <?=($settings["timezone"] == "America/Montevideo") ? " selected" : null;?>>(GMT-03:00) Montevideo</option>
					   <option value="America/Noronha" <?=($settings["timezone"] == "America/Noronha") ? " selected" : null;?>>(GMT-02:00) Mid-Atlantic</option>
					   <option value="Atlantic/Cape_Verde" <?=($settings["timezone"] == "Atlantic/Cape_Verde") ? " selected" : null;?>>(GMT-01:00) Cape Verde Is.</option>
					   <option value="Atlantic/Azores" <?=($settings["timezone"] == "Atlantic/Azores") ? " selected" : null;?>>(GMT-01:00) Azores</option>
					   <option value="Africa/Casablanca" <?=($settings["timezone"] == "Africa/Casablanca") ? " selected" : null;?>>(GMT+00:00) Casablanca, Monrovia, Reykjavik</option>
					   <option value="Etc/Greenwich" <?=($settings["timezone"] == "Etc/Greenwich") ? " selected" : null;?>>(GMT+00:00) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London</option>
					   <option value="Europe/Amsterdam" <?=($settings["timezone"] == "Europe/Amsterdam") ? " selected" : null;?>>(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna</option>
					   <option value="Europe/Belgrade" <?=($settings["timezone"] == "Europe/Belgrade") ? " selected" : null;?>>(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague</option>
					   <option value="Europe/Brussels" <?=($settings["timezone"] == "Europe/Brussels") ? " selected" : null;?>>(GMT+01:00) Brussels, Copenhagen, Madrid, Paris</option>
					   <option value="Europe/Sarajevo" <?=($settings["timezone"] == "Europe/Sarajevo") ? " selected" : null;?>>(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb</option>
					   <option value="Africa/Lagos" <?=($settings["timezone"] == "Africa/Lagos") ? " selected" : null;?>>(GMT+01:00) West Central Africa</option>
					   <option value="Asia/Amman" <?=($settings["timezone"] == "Asia/Amman") ? " selected" : null;?>>(GMT+02:00) Amman</option>
					   <option value="Europe/Athens" <?=($settings["timezone"] == "Europe/Athens") ? " selected" : null;?>>(GMT+02:00) Athens, Bucharest, Istanbul</option>
					   <option value="Asia/Beirut" <?=($settings["timezone"] == "Asia/Beirut") ? " selected" : null;?>>(GMT+02:00) Beirut</option>
					   <option value="Africa/Cairo" <?=($settings["timezone"] == "Africa/Cairo") ? " selected" : null;?>>(GMT+02:00) Cairo</option>
					   <option value="Africa/Harare" <?=($settings["timezone"] == "Africa/Harare") ? " selected" : null;?>>(GMT+02:00) Harare, Pretoria</option>
					   <option value="Europe/Helsinki" <?=($settings["timezone"] == "Europe/Helsinki") ? " selected" : null;?>>(GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius</option>
					   <option value="Asia/Jerusalem" <?=($settings["timezone"] == "Asia/Jerusalem") ? " selected" : null;?>>(GMT+02:00) Jerusalem</option>
					   <option value="Europe/Minsk" <?=($settings["timezone"] == "Europe/Minsk") ? " selected" : null;?>>(GMT+02:00) Minsk</option>
					   <option value="Africa/Windhoek" <?=($settings["timezone"] == "Africa/Windhoek") ? " selected" : null;?>>(GMT+02:00) Windhoek</option>
					   <option value="Asia/Kuwait" <?=($settings["timezone"] == "Asia/Kuwait") ? " selected" : null;?>>(GMT+03:00) Kuwait, Riyadh, Baghdad</option>
					   <option value="Europe/Moscow" <?=($settings["timezone"] == "Europe/Moscow") ? " selected" : null;?>>(GMT+03:00) Moscow, St. Petersburg, Volgograd</option>
					   <option value="Europe/Istanbul" <?=($settings["timezone"] == "Europe/Istanbul") ? " selected" : null;?>>(GMT+03:00) Istanbul</option>
					   <option value="Africa/Nairobi" <?=($settings["timezone"] == "Africa/Nairobi") ? " selected" : null;?>>(GMT+03:00) Nairobi</option>
					   <option value="Asia/Tbilisi" <?=($settings["timezone"] == "Asia/Tbilisi") ? " selected" : null;?>>(GMT+03:00) Tbilisi</option>
					   <option value="Asia/Tehran" <?=($settings["timezone"] == "Asia/Tehran") ? " selected" : null;?>>(GMT+03:30) Tehran</option>
					   <option value="Asia/Muscat" <?=($settings["timezone"] == "Asia/Muscat") ? " selected" : null;?>>(GMT+04:00) Abu Dhabi, Muscat</option>
					   <option value="Asia/Baku" <?=($settings["timezone"] == "Asia/Baku") ? " selected" : null;?>>(GMT+04:00) Baku</option>
					   <option value="Asia/Yerevan" <?=($settings["timezone"] == "Asia/Yerevan") ? " selected" : null;?>>(GMT+04:00) Yerevan</option>
					   <option value="Asia/Kabul" <?=($settings["timezone"] == "Asia/Kabul") ? " selected" : null;?>>(GMT+04:30) Kabul</option>
					   <option value="Asia/Yekaterinburg" <?=($settings["timezone"] == "Asia/Yekaterinburg") ? " selected" : null;?>>(GMT+05:00) Yekaterinburg</option>
					   <option value="Asia/Karachi" <?=($settings["timezone"] == "Asia/Karachi") ? " selected" : null;?>>(GMT+05:00) Islamabad, Karachi, Tashkent</option>
					   <option value="Asia/Calcutta" <?=($settings["timezone"] == "Asia/Calcutta") ? " selected" : null;?>>(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi</option>
					   <option value="Asia/Katmandu" <?=($settings["timezone"] == "Asia/Katmandu") ? " selected" : null;?>>(GMT+05:45) Kathmandu</option>
					   <option value="Asia/Almaty" <?=($settings["timezone"] == "Asia/Almaty") ? " selected" : null;?>>(GMT+06:00) Almaty, Novosibirsk</option>
					   <option value="Asia/Dhaka" <?=($settings["timezone"] == "Asia/Dhaka") ? " selected" : null;?>>(GMT+06:00) Astana, Dhaka</option>
					   <option value="Asia/Rangoon" <?=($settings["timezone"] == "Asia/Rangoon") ? " selected" : null;?>>(GMT+06:30) Yangon (Rangoon)</option>
					   <option value="Asia/Bangkok" <?=($settings["timezone"] == "Asia/Bangkok") ? " selected" : null;?>>(GMT+07:00) Bangkok, Hanoi, Jakarta</option>
					   <option value="Asia/Krasnoyarsk" <?=($settings["timezone"] == "Asia/Krasnoyarsk") ? " selected" : null;?>>(GMT+07:00) Krasnoyarsk</option>
					   <option value="Asia/Hong_Kong" <?=($settings["timezone"] == "Asia/Hong_Kong") ? " selected" : null;?>>(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi</option>
					   <option value="Asia/Kuala_Lumpur" <?=($settings["timezone"] == "Asia/Kuala_Lumpur") ? " selected" : null;?>>(GMT+08:00) Kuala Lumpur, Singapore</option>
					   <option value="Asia/Irkutsk" <?=($settings["timezone"] == "Asia/Irkutsk") ? " selected" : null;?>>(GMT+08:00) Irkutsk, Ulaan Bataar</option>
					   <option value="Australia/Perth" <?=($settings["timezone"] == "Australia/Perth") ? " selected" : null;?>>(GMT+08:00) Perth</option>
					   <option value="Asia/Taipei" <?=($settings["timezone"] == "Asia/Taipei") ? " selected" : null;?>>(GMT+08:00) Taipei</option>
					   <option value="Asia/Tokyo" <?=($settings["timezone"] == "Asia/Tokyo") ? " selected" : null;?>>(GMT+09:00) Osaka, Sapporo, Tokyo</option>
					   <option value="Asia/Seoul" <?=($settings["timezone"] == "Asia/Seoul") ? " selected" : null;?>>(GMT+09:00) Seoul</option>
					   <option value="Asia/Yakutsk" <?=($settings["timezone"] == "Asia/Yakutsk") ? " selected" : null;?>>(GMT+09:00) Yakutsk</option>
					   <option value="Australia/Adelaide" <?=($settings["timezone"] == "Australia/Adelaide") ? " selected" : null;?>>(GMT+09:30) Adelaide</option>
					   <option value="Australia/Darwin" <?=($settings["timezone"] == "Australia/Darwin") ? " selected" : null;?>>(GMT+09:30) Darwin</option>
					   <option value="Australia/Brisbane" <?=($settings["timezone"] == "Australia/Brisbane") ? " selected" : null;?>>(GMT+10:00) Brisbane</option>
					   <option value="Australia/Canberra" <?=($settings["timezone"] == "Australia/Canberra") ? " selected" : null;?>>(GMT+10:00) Canberra, Melbourne, Sydney</option>
					   <option value="Australia/Hobart" <?=($settings["timezone"] == "Australia/Hobart") ? " selected" : null;?>>(GMT+10:00) Hobart</option>
					   <option value="Pacific/Guam" <?=($settings["timezone"] == "Pacific/Guam") ? " selected" : null;?>>(GMT+10:00) Guam, Port Moresby</option>
					   <option value="Asia/Vladivostok" <?=($settings["timezone"] == "Asia/Vladivostok") ? " selected" : null;?>>(GMT+10:00) Vladivostok</option>
					   <option value="Asia/Magadan" <?=($settings["timezone"] == "Asia/Magadan") ? " selected" : null;?>>(GMT+11:00) Magadan, Solomon Is., New Caledonia</option>
					   <option value="Pacific/Auckland" <?=($settings["timezone"] == "Pacific/Auckland") ? " selected" : null;?>>(GMT+12:00) Auckland, Wellington</option>
					   <option value="Pacific/Fiji" <?=($settings["timezone"] == "Pacific/Fiji") ? " selected" : null;?>>(GMT+12:00) Fiji, Kamchatka, Marshall Is.</option>
					   <option value="Pacific/Tongatapu" <?=($settings["timezone"] == "Pacific/Tongatapu") ? " selected" : null;?>>(GMT+13:00) Nuku'alofa</option>
					</select>
				</div>

			</div>

			<div class="form-group">

				<div class="input-group">

					<span class="input-group-addon"><b>Dolar Kuru</b></span>

					<input type="text" disabled class="form-control" value="<?=$settings["dolar"];?> TL">

				</div>

			</div>		
			<div class="form-group">

				<div class="input-group">

					<span class="input-group-addon"><b>Euro Kuru</b></span>

					<input type="text" disabled class="form-control" value="<?=$settings["euro"];?> TL">

				</div>

			</div>	

			<hr>

			<div class="form-group">

				<div class="input-group">

					<span class="input-group-addon"><b>Panel İsmi</b></span>

					<input type="text" name="site_title" class="form-control" placeholder="MoonPanel" value="<?=$settings["site_title"];?>">

				</div>

			</div>

			<div class="form-group">

				<div class="input-group">

					<span class="input-group-addon"><b>SEO Etiket</b></span>

					<input type="text" name="site_keyw" class="form-control" value="<?=$settings["site_keyw"];?>">

				</div>

			</div>

			<div class="form-group">

				<div class="input-group">

					<span class="input-group-addon"><b>SEO Açıklama</b></span>

					<textarea type="text" name="site_desc" class="form-control"><?=$settings["site_desc"];?></textarea>

				</div>

			</div>



			<hr>

			<div class="form-group">

				<div class="input-group">

					<span class="input-group-addon"><b>Üye Kayıt Sistemi <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="Üye kayıtlarının aktif olup olmadığını belirleyebilirsiniz."></i></b></span>

					<select name="register_system" class="form-control select2">

						<option value="1" <?=($settings["register_system"] == 1) ? " selected" : null;?>>Aktif</option>

						<option value="0" <?=($settings["register_system"] == 0) ? " selected" : null;?>>Pasif</option>

					</select>

				</div>

			</div>

			<div class="form-group">

				<div class="input-group">

					<span class="input-group-addon"><b>API Sistemi <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="API sisteminin durumunu belirler."></i></b></span>

					<select name="api_status" class="form-control select2">

						<option value="1"<?=(API_STATUS == 1) ? " selected" : null;?>>Aktif</option>

						<option value="0"<?=(API_STATUS == 0) ? " selected" : null;?>>Pasif</option>

					</select>

				</div>

			</div>

			<div class="form-group">

				<div class="select2-bootstrap-append input-group">

					<span class="input-group-addon"><b>Şifremi Unuttum <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="Şifre Sıfırlama sayfasının durumunu belirler."></i></b></span>

					<select name="forgot_system" class="form-control select2">

						<option value="1" <?=($settings["forgot_system"] == 1) ? " selected" : null;?>>Aktif</option>

						<option value="0" <?=($settings["forgot_system"] == 0) ? " selected" : null;?>>Pasif</option>

					</select>

				</div>

			</div>

			<div class="form-group">

				<div class="select2-bootstrap-append input-group">

					<span class="input-group-addon"><b>Mail Onay <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="Mail Onay sisteminin durumunu belirler."></i></b></span>

					<select name="mail_verify" class="form-control select2">

						<option value="1" <?=($settings["mail_verify"] == 1) ? " selected" : null;?>>Aktif</option>

						<option value="0" <?=($settings["mail_verify"] == 0) ? " selected" : null;?>>Pasif</option>

					</select>

				</div>

			</div>

			<div class="form-group">

				<div class="select2-bootstrap-append input-group">

					<span class="input-group-addon"><b>Telefon Onay <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="SMS Onay sisteminin durumunu belirler."></i></b></span>

					<select name="skype_verify" class="form-control select2">

						<option value="1" <?=($settings["skype_verify"] == 1) ? " selected" : null;?>>Aktif</option>

						<option value="0" <?=($settings["skype_verify"] == 0) ? " selected" : null;?>>Pasif</option>

					</select>

				</div>

			</div>

			<hr>

			<div class="row">

				<div class="form-group col-md-6">

					<div class="input-group">

						<span class="input-group-addon"><b>Destek Durumu <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="Pasif olarak işaretlenirse, üyeleriniz destek talebi oluşturamaz."></i></b></span>

						<select name="support_system" class="form-control select2">

							<option value="1" <?=($settings["support_system"] == 1) ? " selected" : null;?>>Aktif</option>

							<option value="0" <?=($settings["support_system"] == 0) ? " selected" : null;?>>Pasif</option>

						</select>

					</div>

				</div>

				<div class="form-group col-md-6">

					<div class="input-group">

						<span class="input-group-addon"><b>Destek Sistemi <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="2 Ayrı destek sistemi arasında geçiş sağlayabilirsiniz."></i></b></span>

						<select name="ticket_system" class="form-control select2">

							<option value="0" <?=($settings["ticket_system"] == 0) ? " selected" : null;?>>Standart Destek Sistemi</option>

							<option value="1" <?=($settings["ticket_system"] == 1) ? " selected" : null;?>>MoonDestek Beta</option>

						</select>

					</div>

				</div>

				<div class="form-group col-md-12">

					<div class="input-group">

						<span class="input-group-addon"><b>Kullanıcı Başına Bekleyen Maksimum Destek Talebi</b></span>

						<select name="ticket_limit" class="form-control select2">

							<option value="0" <?=($settings["ticket_limit"] == 0) ? " selected" : null;?>>0 (Kapalı)</option>
							<option value="1" <?=($settings["ticket_limit"] == 1) ? " selected" : null;?>>1</option>
							<option value="2" <?=($settings["ticket_limit"] == 2) ? " selected" : null;?>>2 (Önerilen)</option>
							<option value="3" <?=($settings["ticket_limit"] == 3) ? " selected" : null;?>>3</option>
							<option value="4" <?=($settings["ticket_limit"] == 4) ? " selected" : null;?>>4</option>
							<option value="5" <?=($settings["ticket_limit"] == 5) ? " selected" : null;?>>5</option>
							<option value="6" <?=($settings["ticket_limit"] == 6) ? " selected" : null;?>>6</option>
							<option value="7" <?=($settings["ticket_limit"] == 7) ? " selected" : null;?>>7</option>
							<option value="8" <?=($settings["ticket_limit"] == 8) ? " selected" : null;?>>8</option>
							<option value="9" <?=($settings["ticket_limit"] == 9) ? " selected" : null;?>>9</option>
							<option value="10" <?=($settings["ticket_limit"] == 10) ? " selected" : null;?>>10</option>
						</select>
					</div>
				</div>
			</div>
			<hr>
			<div class="row">
				<div class="form-group col-md-6">
					<div class="input-group">
						<span class="input-group-addon"><b>Servis Listesi <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="Servis listesini herkese aktif veya sadece üyelere özel olarak ayarlayabilirsiniz."></i></b></span>
						<select name="service_list" class="form-control select2">
							<option value="public" <?=($settings["service_list"] == "public") ? " selected" : null;?>>Herkese Aktif</option>
							<option value="private" <?=($settings["service_list"] == "private") ? " selected" : null;?>>Sadece Üyeler</option>
						</select>
					</div>
				</div>
				<div class="form-group col-md-6">
					<div class="input-group">
						<span class="input-group-addon"><b>Ortalama Süre <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="Ortalama süre hesaplaması sayesinde servise ait son 10 siparişin tamamlanma sürelerinin ortalamasını hesaplayarak, ortalama tamamlanma süresini kullanıcılara gösterebilirsiniz."></i></b></span>
						<select name="service_speed" class="form-control select2">
							<option value="0" <?=($settings["service_speed"] == 0) ? " selected" : null;?>>Pasif</option>
							<option value="1" <?=($settings["service_speed"] == 1) ? " selected" : null;?>>Aktif</option>
						</select>
					</div>
				</div>
			</div>
			<hr>
			<div class="row">
				<div class="form-group col-md-6">
					<div class="input-group">
						<span class="input-group-addon"><b>Admin EMail <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="İletişim sayfasında gözükecektir ve siteyle alakalı bildirimleriniz yazdığınız mail adresine gönderilecektir."></i></b></span>
						<input type="text" class="form-control" name="admin_iletisim" placeholder="admin@email.com" value="<?=$settings["admin_iletisim"];?>">
					</div>
				</div>
				<div class="form-group col-md-6">
					<div class="input-group">
						<span class="input-group-addon"><b>Admin Telefon <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="İletişim sayfasında gözükecektir"></i></b></span>
						<input type="text" class="form-control" placeholder="05321234567" name="admin_phone" value="<?=$settings["admin_phone"];?>">
					</div>
				</div>
				<div class="form-group col-md-12">

					<div class="input-group">

						<span class="input-group-addon"><b>Kurumsal Bilgiler <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="İletişim sayfasında gözükecektir - HTML kullanımı serbest"></i></b></span>
						<textarea name="contact_detail" class="form-control" placeholder="ABC Firması - Vergi No:123456 - Vergi Dairesi: Türkiye"><?=$settings["contact_detail"];?></textarea>
					</div>
				</div>
			</div>
			<hr>
			<div class="row">
				<div class="form-group col-md-6">
					<div class="input-group">
						<span class="input-group-addon"><b>Child Panel</b></span>
						<select name="childpanel_status" class="form-control">
							<option value="1" <?= ($cp->status == 1) ? "selected" : null ?>>Aktif</option>
							<option value="2" <?= ($cp->status == 2) ? "selected" : null ?>>Pasif</option>
						</select>
					</div>
				</div>
				<div class="form-group col-md-6">
					<div class="input-group">
						<span class="input-group-addon"><b>Child Panel Ücreti</b></span>
						<input type="number" min="1" class="form-control" name="childpanel_price" value="<?=$cp->price?>">
					</div>
				</div>
			</div>
			<hr>
			<div class="form-group">
				<div class="input-group">
					<span class="input-group-addon"><b>Header Kodlarınız  <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="Yazacağınız kodlar tüm sayfalarda geçerli olur."></i></b></span>
					<textarea name="header_code" class="form-control" placeholder="<style type='text/css'>...</style>"><?=$settings["header_code"];?></textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="input-group">
					<span class="input-group-addon"><b>Footer Kodlarınız  <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="Yazacağınız kodlar tüm sayfalarda geçerli olur."></i></b></span>
					<textarea name="footer_code" class="form-control" placeholder="<script src='...'></script>"><?=$settings["footer_code"];?></textarea>
				</div>
			</div>
			<hr>
			<div class="form-group">
				<div class="input-group">
					<span class="input-group-addon"><b>Cron Güvenlik Anahtarı <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="Cronları bir başkası çalıştıramasın diye bir önlem"></i></b></span>
				<input name="cron_secretkey" class="form-control" value="<?=$settings["cron_secretkey"];?>">
			</div><br>
			<div class="form-group">
				<div class="input-group">
					<span class="input-group-addon"><b>Cron Linkiniz: <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="top" title="Cronların düzgün çalışabilmesi için dakikada 1 çalışacak şekilde ekleyiniz."></i></b></span>
				<input class="form-control" value="<?=site('start_cron.php?key='.$settings["cron_secretkey"].'')?>" disabled>
			</div>
			
		</div>
		<hr>
			<button type="submit" class="btn btn-success pull-right">Bilgileri Güncelle</button>
		</form>
	</div>
</div>
<!--<div class="panel panel-default">
	<div class="panel-body" style="padding:0;">
		<table class="table" style="margin-bottom:0;">
			<thead>
				<tr>
					<th class="p-l" width="45%">CRON Bağlantı</th>
					<th>Önerilen Süre</th>
					<th>Açıklama</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td><?=site('auto_processes.php')?></td>
					<td>15 Dakika</td>
					<td>Otomatik Sipariş Kontrolü</td>
				</tr>
				<tr>
					<td><?=site('drip_processes.php')?></td>
					<td>30 Dakika</td>
					<td>Dripfeed Kontrolü</td>
				</tr>
				<tr>
					<td><?=site('order_processes.php')?></td>
					<td>1 Dakika</td>
					<td>Sipariş Kontrolü</td>
				</tr>
				<tr>
					<td><?=site('provider_processes.php')?></td>
					<td>30 Dakika</td>
					<td>API Sağlayıcı Kontrolü</td>
				</tr>
				<tr>
					<td><?=site('service_processes.php')?></td>
					<td>30 Dakika</td>
					<td>Servis Otomasyonu</td>
				</tr>
				<tr>
					<td><?=site('refill_processes.php')?></td>
					<td>10 Dakika</td>
					<td>İade Kontrolü</td>
				</tr>
				<tr>
					<td><?=site('de_checker.php')?></td>
					<td>3 Saat</td>
					<td>Dolar-Euro Kontrolü</td>
				</tr>
				<tr>
					<td><?=site('proxy_checker.php')?></td>
					<td>1 Saat</td>
					<td>Proxy Kontrolü</td>
				</tr>
				<tr>
					<td><?=site('log_api_report_del.php')?></td>
					<td>24 Saat (İsteğe Bağlı)</td>
					<td>Sağlayıcı Logları Silme</td>
				</tr>
				<tr>
					<td><?=site('log_auto_report_del.php')?></td>
					<td>24 Saat (İsteğe Bağlı)</td>
					<td>Otomasyon Logları Silme</td>
				</tr>
			</tbody>
		</table>
	</div>
</div>-->