<?php
$folder_name = "";
//get current url address
if (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
{
    $protocol = 'https://';
}
else
{
    $protocol = 'http://';
}
$basedir = $protocol . $_SERVER['HTTP_HOST'] . substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/'));
$jsondata = file_get_contents("./api/zyx.json");
$data = json_decode($jsondata, true);
$json = $data['app_conf'];
$jsondata = file_get_contents("./api/zyx.json");
$data = json_decode($jsondata, true);
$json = $data['app_conf'];
if (isset($_POST['submit_1c']))
{
    $jsonData = file_get_contents("./api/zyx.json");
    $arrayData = json_decode($jsonData, true);
    $replacementData = array(
        'app_conf' => array(
            "startup_auto_boot" => $_POST["startup_auto_boot"],
            "stream_format" => $_POST["stream_format"],
            "set_default_play" => $_POST["set_default_play"],
            "set_recent_play" => $_POST["set_recent_play"],
            "auto_login" => $_POST["auto_login"],
            "startup_device_select" => $_POST["startup_device_select"],
            "manual_device_select" => $_POST["manual_device_select"],
            "package_name" => $_POST["package_name"],
            "privacy_policy" => $_POST["privacy_policy"],
            "header_key" => $_POST["header_key"],
            "header_value" => $_POST["header_value"],
            "dashbord_ticker" => $_POST["dashbord_ticker"],
            "login_ticker" => $_POST["login_ticker"],
            "domain_url" => $_POST["domain_url"],
            "login_url" => $_POST["login_url"],
        )
    );
    $newArrayData = array_replace_recursive($arrayData, $replacementData);
    $newJsonData = json_encode($newArrayData, JSON_PRETTY_PRINT);
    file_put_contents("./api/zyx.json", $newJsonData);
    header("Location: purple.php?");
}

if (isset($_POST['submit_2c'])){
    $json2 = $data['app_conf'];
    $jsonData2 = file_get_contents("./api/zyx.json");
    $arrayData2 = json_decode($jsonData2, true);
    $replacementData2 = array(
        'app_conf' => array(
            "epg_timeshift" => $_POST["epg_timeshift"],
            "epg_catchup" => $_POST["epg_catchup"],
            "multi_recording" => $_POST["multi_recording"],
            "recording" => $_POST["recording"],
            "startup_plugin_install" => $_POST["startup_plugin_install"],
            "vpn" => $_POST["vpn"],
            "clear_catch" => $_POST["clear_catch"],
            "p2p" => $_POST["p2p"],
            "p2p_signal" => $_POST["p2p_signal"],
            "p2p_setting_default" => $_POST["p2p_setting_default"],
            "allow_4k" => $_POST["allow_4k"],
            "content_4k" => $_POST["content_4k"],
            "remind_me" => $_POST["remind_me"],
            "startup_archive_category" => $_POST["startup_archive_category"],
            "catchup" => $_POST["catchup"],
            "epg_roku" => $_POST["epg_roku"],
            "allow_cast" => $_POST["allow_cast"],
        )
    );
    $newArrayData2 = array_replace_recursive($arrayData2, $replacementData2);
    $newJsonData2 = json_encode($newArrayData2, JSON_PRETTY_PRINT);
    file_put_contents("./api/zyx.json", $newJsonData2);
    header("Location: purple.php?");
}
if (isset($_POST['submit_3c']))
{
    $jsonData3 = file_get_contents("./api/zyx.json");
    $arrayData3 = json_decode($jsonData3, true);
    $replacementData3 = array(
        'app_conf' => array(
            "startup_msg" => $_POST["startup_msg"],
            "intro_video" => $_POST["intro_video"],
            "server_selection" => $_POST["server_selection"],
            "remote_support" => $_POST["remote_support"],
            "private_access" => $_POST["private_access"],
            "setting_option" => $_POST["setting_option"],
            "wifi_option" => $_POST["wifi_option"],
            "app_list_status" => $_POST['app_list_status'],
            "private_menu" => $_POST["private_menu"],
            "app_settings" => $_POST["app_settings"],
            "app_settings_passcode" => $_POST["app_settings_passcode"],
            "app_general_settings" => $_POST["app_general_settings"],
            "vpn_sub_splash" => $_POST["vpn_sub_splash"],
            "vpn_login_screen" => $_POST["vpn_login_screen"],
            "sub_splash" => $_POST["sub_splash"],
        )
    );
    $newArrayData3 = array_replace_recursive($arrayData3, $replacementData3);
    $newJsonData3 = json_encode($newArrayData3, JSON_PRETTY_PRINT);
    file_put_contents("./api/zyx.json", $newJsonData3);
    header("Location: purple.php?");
}
$jsondata = file_get_contents('./api/zyx.json');
$data = json_decode($jsondata, true);
$json = $data['app_conf'];
include ('includes/header.php');
?>
<!-- Begin Page Content -->
        <div class="container-fluid">
          <!-- Page Heading -->
          <h1 class="h3 mb-1 text-gray-8 00"> Purple Settings   Three Submenus</h1>         
          <!-- Content Row -->
          <div class="row">
            	<!-- First Column -->
            <div class="col-lg-4">
            <div class="wrapper">
              <!-- Custom codes -->
                <div class="card border-left-primary alert-primary shadow h-100 card shadow mb-4">
                <div class="card-header py-3">
                <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-user-shield"></i> App General Settings  </h6>
                </div>
                <div class="card-body">
                    <form method="post">   						 	
	<div class="form-group ">
                        <label class="control-label requiredField" for="startup_auto_boot">
                        <strong> Startup_Auto_Boot = 
                              <? echo $json["startup_auto_boot"] ?></strong>
                        </label><p>		
							<label>True
							<input type="radio" name="startup_auto_boot" value="true"  
							 <?php if ($json['startup_auto_boot'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="startup_auto_boot" value="false" 
							<?php if ($json['startup_auto_boot'] == 'false')
{
    echo 'checked="checked"';
} ?>  />
							</label></div></p>
							<div class="form-group ">
       <label class="control-label " for="stream_format"><strong>Stream_Format_Type</strong></label>
               <div class="input-group">
                        <input class="form-control" name="stream_format"  id="stream_format"  placeholder="" value="<?php echo $json["stream_format"] ?>"  type="text" /></div></div>
                        <div class="form-group ">
                        <label class="control-label requiredField" for="set_default_play">
                        <strong> Set_Default_Players = 
  <?php echo $json['set_default_play']; ?>
                              </strong>
                        </label><p>		
							<label>True
							<input type="radio" name="set_default_play" value="true"  
							<?php if ($json['set_default_play'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="set_default_play" value="false" 
							<?php if ($json['set_default_play'] == 'false')
{
    echo 'checked="checked"';
} ?> />
							</label></div></p>
    						 	
	<div class="form-group ">
                        <label class="control-label requiredField" for="set_recent_play">
                        <strong> Set_Recent_Play = 
  <?php echo $json['set_recent_play']; ?>
                              </strong>
                        </label><p>		
							<label>True
							<input type="radio" name="set_recent_play" value="true"  
							<?php if ($json['set_recent_play'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="set_recent_play" value="false" 
							<?php if ($json['set_recent_play'] == 'false')
{
    echo 'checked="checked"';
} ?> />
							</label></div></p>
							<div class="form-group ">
                        <label class="control-label requiredField" for="auto_login">
                        <strong> Auto_Login = 
  <?php echo $json['auto_login']; ?>
                              </strong>
                        </label><p>		
							<label>True
							<input type="radio" name="auto_login" value="true"  
							<?php if ($json['auto_login'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="auto_login" value="false" 
							 <?php if ($json['auto_login'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</label></div></p>
							<div class="form-group ">
                        <label class="control-label requiredField" for="startup_device_select">
                        <strong>Startup_Device_Select<? echo $json['startup_device_select']; ?></strong> </label>
                        <p>
                        <label>True</label>
							<input type="radio" name="startup_device_select" value="true"  
							<? if ($json['startup_device_select'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							
							<label>False</label>
							<input type="radio" name="startup_device_select" value="false" 
						<? if ($json['startup_device_select'] == 'false')
{
    echo 'checked="checked"';
} ?>	/>
							</p></p>
							</div>
    <div class="form-group ">
                        <label class="control-label requiredField" for="manual_device_select">
                        <strong>Manual_Device_Select =<? echo $json['manual_device_select']; ?></strong> </label>
                        	<p>
							<label>True</label>
							<input type="radio" name="manual_device_select" value="true"  
						<? if ($json['manual_device_select'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							
							<label>False</label>
							<input type="radio" name="manual_device_select" value="false" 
						<? if ($json['manual_device_select'] == 'false')
{
    echo 'checked="checked"';
} ?>	/>
							</p></p>
							</div>
							<div class="form-group">
                            <h6 class="form-text"><strong>package_name</strong></h6>
								<input type="text" class="form-control" placeholder="packagename" name="package_name" value="<? echo $json['package_name']; ?>">
						</div>	
    <div class="form-group">
                            <h6 class="form-text"><strong>Privacy_Policy_Url</strong></h6>
								<input type="text" class="form-control" placeholder="url to privacy policy page" name="privacy_policy" value="<? echo $json['privacy_policy']; ?>">
						</div>	<div class="form-group ">
       <label class="control-label " for="header_key"><strong>Html Header_Key</strong></label>
               <div class="input-group">
                        <input class="form-control" name="header_key"  id="header_key"  placeholder="" value="<?php echo $json["header_key"] ?>"  type="text" /></div></div>

<div class="form-group ">
       <label class="control-label " for="header_value"><strong>Html Header_Value</strong></label>
               <div class="input-group">
                        <input class="form-control" name="header_value"  id="header_value"  placeholder="" value="<?php echo $json["header_value"] ?>"  type="text" /></div></div>
                            <div class="form-group ">
                        <label class="control-label requiredField" for="dashbord_ticker">
                        <strong>Dashbord_Ticker =
<? echo $json['dashbord_ticker']; ?></strong> </label>
                	<p>
							<label>True</label>
							<input type="radio" name="dashbord_ticker" value="true"  
							 
							<? if ($json['dashbord_ticker'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							<label>False</label>
							<input type="radio" name="dashbord_ticker" value="false" 
							
							<? if ($json['dashbord_ticker'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</p>
							</div>
    <div class="form-group ">
                        <label class="control-label requiredField" for="login_ticker">
                        <strong>Login_Ticker = 
<? echo $json['login_ticker']; ?></strong> </label>
                    	<p>
							<label>True</label>
							<input type="radio" name="login_ticker" value="true"  
							 
							<? if ($json['login_ticker'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							<label>False</label>
							<input type="radio" name="login_ticker" value="false" 
							
							<? if ($json['login_ticker'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</p>
							</div>
    <div class="form-group ">
                            <h6 class="form-text"><strong>Domain_Url</strong></h6>
								<input type="text" class="form-control" placeholder="domain_url" name="domain_url" value="<? echo $json['domain_url']; ?>">
							</div>
    <div class="form-group">
                            <h6 class="form-text"><strong>Login_Url</strong></h6>
								<input type="text" class="form-control" placeholder="url to loginto" name="login_url" value="<? echo $json['login_url']; ?>">
							</div>
    						    					    				   							    					    				  	
						
                        <div class="form-group">
                        <button class="btn btn-primary btn-icon-split" name="submit_1c" type="submit">
                        <span class="icon text-white-50"><i class="fas fa-check"></i></span><span class="text">Submit</span>
                           </button>
                             </div>
                               </form>
                                </body>
		                          </div></div>
		                          </div></div>
		        <!-- 2nd Column -->
            <div class="col-lg-4">
             <div class="wrapper">
              <!-- Custom codes -->
                <div class="card border-left-primary alert-primary shadow h-100 card shadow mb-4">
                <div class="card-header py-3">
                <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-user-shield"></i> Turn Features On Off  </h6>
                </div>
                <div class="card-body">
                <form method="post">	
    				<div class="form-group ">
                        <label class="control-label requiredField" for="epg_timeshift">
                        <strong> Allow Epg_Timeshift = 
                              <? echo $json["epg_timeshift"] ?></strong>
                        </label><p>		
							<label>True
							<input type="radio" name="epg_timeshift" value="true"  
							<?php if ($json['epg_timeshift'] == 'true')
{
    echo 'checked="checked"';
} ?>  />
							</label>
							<label>False
							<input type="radio" name="epg_timeshift" value="false" 
							 <?php if ($json['epg_timeshift'] == 'false')
{
    echo 'checked="checked"';
} ?> />
							</label></div></p>
    						 	
	<div class="form-group ">
                        <label class="control-label requiredField" for="epg_catchup">
                        <strong> Allow Epgpg_Catchup = 
                              <? echo $json["epg_catchup"] ?></strong>
                        </label><p>		
							<label>True
							<input type="radio" name="epg_catchup" value="true"  
							 <?php if ($json['epg_catchup'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="epg_catchup" value="false" 
							<?php if ($json['epg_catchup'] == 'false')
{
    echo 'checked="checked"';
} ?>  />
							</label></div></p>
    						 	
	<div class="form-group ">
                        <label class="control-label requiredField" for="multi_recording">
                        <strong> Allow Multi_Recording = 
                              <? echo $json["multi_recording"] ?></strong>
                        </label><p>		
							<label>True
							<input type="radio" name="multi_recording" value="true"  
							 <?php if ($json['multi_recording'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="multi_recording" value="false" 
							<?php if ($json['multi_recording'] == 'false')
{
    echo 'checked="checked"';
} ?>  />
							</label></div></p>
    						 	
	<div class="form-group ">
                        <label class="control-label requiredField" for="recording">
                        <strong>Allow Recording = 
                              <? echo $json["recording"] ?></strong>
                        </label><p>		
							<label>True
							<input type="radio" name="recording" value="true"  
							 <?php if ($json['recording'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="recording" value="false" 
							 <?php if ($json['recording'] == 'false')
{
    echo 'checked="checked"';
} ?> />
							</label></div></p>
    						 	
	<div class="form-group ">
                        <label class="control-label requiredField" for="startup_plugin_install">
                        <strong> Allow_Plugin_Install = 
                              <? echo $json["startup_plugin_install"] ?></strong>
                        </label><p>		
							<label>True
							<input type="radio" name="startup_plugin_install" value="true"  
							<?php if ($json['startup_plugin_install'] == 'true')
{
    echo 'checked="checked"';
} ?>  />
							</label>
							<label>False
							<input type="radio" name="startup_plugin_install" value="false" 
							 <?php if ($json['startup_plugin_install'] == 'false')
{
    echo 'checked="checked"';
} ?> />
							</label></div></p>
							<div class="form-group ">
                        <label class="control-label requiredField" for="vpn">
                        <strong> Enable Vpn = 
                              <? echo $json["vpn"] ?></strong>
                        </label><p>		
							<label>True
							<input type="radio" name="vpn" value="true"  
							 <?php if ($json['vpn'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="vpn" value="false" 
							 <?php if ($json['vpn'] == 'false')
{
    echo 'checked="checked"';
} ?> />
							</label></div></p>
							<div class="form-group ">
                        <label class="control-label requiredField" for="clear_catch">
                        <strong> Allow_Clear_Cache = 
  <?php echo $json['clear_catch']; ?>
                              </strong>
                        </label><p>		
							<label>True
							<input type="radio" name="clear_catch" value="true"  
							<?php if ($json['clear_catch'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="clear_catch" value="false" 
							<?php if ($json['clear_catch'] == 'false')
{
    echo 'checked="checked"';
} ?> />
							</label></div></p>
							<div class="form-group ">
                        <label class="control-label requiredField" for="p2p">
                        <strong> Allow_P2p = 
  <?php echo $json['p2p']; ?>
                              </strong>
                        </label><p>		
							<label>True
							<input type="radio" name="p2p" value="true"  
							<?php if ($json['p2p'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="p2p" value="false" 
							<?php if ($json['p2p'] == 'false')
{
    echo 'checked="checked"';
} ?> />
							</label></div></p>
    						 	
	         <div class="form-group ">
       <label class="control-label " for="p2p_signal"><strong>Allow_P2p_Signal</strong></label>
               <div class="input-group">
                        <input class="form-control" name="p2p_signal"  id="p2p_signal"  placeholder=""value="<? echo $json['p2p_signal'] ?>"  type="text" /></div></div>
    						 	
	<div class="form-group ">
                        <label class="control-label requiredField" for="p2p_setting_default">
                        <strong> P2p_Setting_Default = 
  <?php echo $json['p2p_setting_default']; ?>
                              </strong>
                        </label><p>		
							<label>True
							<input type="radio" name="p2p_setting_default" value="true"  
							<?php if ($json['p2p_setting_default'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="p2p_setting_default" value="false" 
							 <?php if ($json['p2p_setting_default'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</label></div></p>
							<div class="form-group ">
                        <label class="control-label requiredField" for="allow_4k">
                        <strong>Allow_4k =<? echo $json['allow_4k']; ?></strong> </label>
                        <p>
                        		<label>True</label>
							<input type="radio" name="allow_4k" value="true"  
					<? if ($json['allow_4k'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							
							<label>False</label>
							<input type="radio" name="allow_4k" value="false" 
							<? if ($json['allow_4k'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</p></p>
							</div>
    <div class="form-group ">
                        <label class="control-label" for="content_4k">
                        <strong> Url to 4k Content</strong>
                        </label>
                        <div class="input-group">
                        <input class="form-control" id="content_4k" name="content_4k" value="<?=$json['content_4k'] ?>" type="text"/></input>
                        </div>
                        </div>
                        <div class="form-group ">
                        <label class="control-label requiredField" for="remind_me">
                        <strong> Enable_Remind_Me = 
  <?php echo $json['remind_me']; ?>
                              </strong>
                        </label><p>		
							<label>True
							<input type="radio" name="remind_me" value="true"  
							<?php if ($json['remind_me'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="remind_me" value="false" 
							 <?php if ($json['remind_me'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</label></div></p>
    						 	
	<div class="form-group ">
                        <label class="control-label requiredField" for="startup_archive_category">
                        <strong> Startup_Archive_Category = 
  <?php echo $json['startup_archive_category']; ?>
                              </strong>
                        </label><p>		
							<label>True
							<input type="radio" name="startup_archive_category" value="true"  
							 <?php if ($json['startup_archive_category'] == 'true')
{
    echo 'checked="checked"';
} ?>/>
							</label>
							<label>False
							<input type="radio" name="startup_archive_category" value="false" 
							 <?php if ($json['startup_archive_category'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</label></div></p>		 	
	
    					<div class="form-group ">
                        <label class="control-label requiredField" for="catchup">
                        <strong>Catchup =<? echo $json['catchup']; ?></strong> </label>
                    	<p>							<label>True</label>
							<input type="radio" name="catchup" value="true"  
							<? if ($json['catchup'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							
							<label>False</label>
							<input type="radio" name="catchup" value="false" 
							<? if ($json['catchup'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</p></p>
							
  </div>
    <div class="form-group ">
                        <label class="control-label requiredField" for="epg_roku">
                        <strong>Epg_Roku =<? echo $json['epg_roku']; ?></strong> </label>
                        	<p>	
							<label>True</label>
							<input type="radio" name="epg_roku" value="true"  
							<? if ($json['epg_roku'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							
							<label>False</label>
							<input type="radio" name="epg_roku" value="false" 
							<? if ($json['epg_roku'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</p></p>
							</div>
    
    
							    <div class="form-group ">
                        <label class="control-label requiredField" for="allow_cast">
                        <strong>Allow_Cast =<? echo $json['allow_cast']; ?></strong> </label>
    <p>
							<label>True</label>
							<input type="radio" name="allow_cast" value="true"  
					<? if ($json['allow_cast'] == 'true')
{
    echo 'checked="checked"';
} ?> />
					<label>False</label>
							<input type="radio" name="allow_cast" value="false" 
						<? if ($json['allow_cast'] == 'false')
{
    echo 'checked="checked"';
} ?>	/>
							</p></p>
							</div>	 	
	
    						    					
                        <div class="form-group">
                        <button class="btn btn-primary btn-icon-split" name="submit_2c" type="submit">
                        <span class="icon text-white-50"><i class="fas fa-check"></i></span><span class="text">Submit</span>
                          </button>
                            </div>
                              </div>
                                </form>
                                  </body>
                                    </div></div>
                                      </div>
                        
                        <!-- Third Column -->
            <div class="col-lg-4">
<div class="wrapper">
              <!-- Custom codes -->
                <div class="card border-left-primary alert-primary shadow h-100 card shadow mb-4">
                <div class="card-header py-3">
                <h6 class="m-0 font-weight-bold text-primary"><i class="fas fa-user-shield"></i> Settings U Can See </h6>
                </div>
                <div class="card-body">
                    <form method="post">
<div class="form-group">
                    <h6 class="form-text"><strong>Startup_Msg</strong></h6>
		<input type="text" class="form-control" placeholder="" name="startup_msg" value="<? echo $json['startup_msg']; ?>"></div>
		
		<div class="form-group ">
                        <label class="control-label requiredField" for="intro_video">
                        <strong> Intro_Video_On_Startup = 
  <?php echo $json['intro_video']; ?>
                              </strong>
                        </label><p>		
							<label>True
							<input type="radio" name="intro_video" value="true"
							<?php if ($json['intro_video'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="intro_video" value="false" 
							 <?php if ($json['intro_video'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</label></div></p>
							<div class="form-group ">
                        <label class="control-label requiredField" for="server_selection">
                        <strong> Server_Selection_On_Login_Screen = 
  <?php echo $json['server_selection']; ?>
                              </strong>
                        </label><p>		
							<label>True
							<input type="radio" name="server_selection" value="true"  
							 <?php if ($json['server_selection'] == 'true')
{
    echo 'checked="checked"';
} ?>/>
							</label>
							<label>False
							<input type="radio" name="server_selection" value="false" 
							 <?php if ($json['server_selection'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</label></div></p>
							<div class="form-group ">
                        <label class="control-label requiredField" for="remote_support">
                        <strong> Show Remote Support = 
                              <?php echo $json['remote_support'] ?></strong>
                        </label>
                       	<p>		
							<label>True
							<input type="radio" name="remote_support" value="true"  
							<?php if ($json['remote_support'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="remote_support" value="false" 
							<?php if ($json['remote_support'] == 'false')
{
    echo 'checked="checked"';
} ?>
							
							/>
							</label>
                        </div>
                        <div class="form-group ">
                        <label class="control-label requiredField" for="setting_option">
                        <strong> Show Settings = 
                              <?php echo $json['setting_option'] ?></strong>
                        </label>
                        	<p>		
							<label>True
							<input type="radio" name="setting_option" value="true"  
							<?php if ($json['setting_option'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="setting_option" value="false" 
							<?php if ($json['setting_option'] == 'false')
{
    echo 'checked="checked"';
} ?>
							
							/>
							</label>
                        </div>
                                 
                        <div class="form-group ">
                        <label class="control-label requiredField" for="wifi_option">
                        <strong> Show WiFi Option = 
                              <?php echo $json['wifi_option'] ?></strong>
                        </label>
                        	<p>		
							<label>True
							<input type="radio" name="wifi_option" value="true"  
							<?php if ($json['wifi_option'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="wifi_option" value="false" 
							<?php if ($json['wifi_option'] == 'false')
{
    echo 'checked="checked"';
} ?>
							
							/>
							</label>
                        </div>
                        <div class="form-group ">
                        <label class="control-label requiredField" for="app_list_status">
                        <strong> Show App List = 
                              <?php echo $json['app_list_status'] ?></strong>
                        </label>
                        	<p>		
							<label>True
							<input type="radio" name="app_list_status" value="true"  
							<?php if ($json['app_list_status'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							</label>
							<label>False
							<input type="radio" name="app_list_status" value="false" 
							<?php if ($json['app_list_status'] == 'false')
{
    echo 'checked="checked"';
} ?>
							
							/>
							</label>
                        </div>
                        <div class="form-group ">
                        <label class="control-label requiredField" for="private_access">
                        <strong>Private_Access =
<? echo $json['private_access'] ?></strong> </label>
                        		<p>
							<label>True</label>
							<input type="radio" name="private_access" value="true"  
							<? if ($json['private_access'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							<label>False</label>
							<input type="radio" name="private_access" value="false" 
							<? if ($json['private_access'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</p>
							</div>
						<div class="form-group ">
						    <div class="form-group ">
                        <label class="control-label requiredField" for="private_menu">
                        <strong>private_menu =<? echo $json['private_menu'] ?></strong> </label>
                        		<p><label>True</label>
							<input type="radio" name="private_menu" value="true"  							 
							 <? if ($json['private_menu'] == 'true')
{
    echo 'checked="checked"';
} ?> />							
							<label>False</label>
							<input type="radio" name="private_menu" value="false" 
							<? if ($json['private_menu'] == 'false')
{
    echo 'checked="checked"';
} ?>	/>
							</label></div>
                        <label class="control-label requiredField" for="app_settings">
                        <strong>Show_App_Settings <? echo $json['app_settings'] ?></strong> </label>
                        <p>
							<label>True</label>
							<input type="radio" name="app_settings" value="true"  
							 <? if ($json['app_settings'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							
							<label>False</label>
							<input type="radio" name="app_settings" value="false" 
						<? if ($json['app_settings'] == 'false')
{
    echo 'checked="checked"';
} ?>	/>
							</p></div>
							         <div class="form-group ">
       <label class="control-label " for="app_settings_passcode"><strong>App_Settings_Passcode</strong></label>
               <div class="input-group">
                        <input class="form-control" name="app_settings_passcode"  id="app_settings_passcode"  placeholder="" value="<? echo $json['app_settings_passcode'] ?>"  type="text" /></div></div>
                         <div class="form-group ">
                        <label class="control-label requiredField" for="app_general_settings">
                        <strong>Show_App_General_Settings =<? echo $json['app_general_settings'] ?></strong> </label>
                        		<p>
							<label>True</label>							<input type="radio" name="app_general_settings" value="true"  
							 
							 <? if ($json['app_general_settings'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							
							<label>False</label>
							<input type="radio" name="app_general_settings" value="false" 
							<? if ($json['app_general_settings'] == 'false')
{
    echo 'checked="checked"';
} ?>	/>
							</label></div>
						<div class="form-group ">
                        <label class="control-label requiredField" for="vpn_sub_splash">
                        <strong>Vpn_Sub_Splash =<? echo $json['vpn_sub_splash']; ?></strong> </label>
                	<p>
							<label>True</label>
							<input type="radio" name="vpn_sub_splash" value="true"  
				<? if ($json['vpn_sub_splash'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							
							<label>False</label>
							<input type="radio" name="vpn_sub_splash" value="false" 
							<? if ($json['vpn_sub_splash'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</p></p>
							
  </div>
    <div class="form-group ">
                        <label class="control-label requiredField" for="vpn_login_screen">
                        <strong>Vpn_Login_Screen =<? echo $json['vpn_login_screen']; ?></strong> </label>
                <p>
							<label>True</label>
							<input type="radio" name="vpn_login_screen" value="true"  
					<? if ($json['vpn_login_screen'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							
							<label>False</label>
							<input type="radio" name="vpn_login_screen" value="false" 
						<? if ($json['vpn_login_screen'] == 'false')
{
    echo 'checked="checked"';
} ?>	/>
							</p></p>

<div class="form-group ">
                        <label class="control-label requiredField" for="sub_splash">
                        <strong>Sub_Splash =<? echo $json['sub_splash']; ?></strong> </label>
                        	<p>		
							<label>True</label>
							<input type="radio" name="sub_splash" value="true"  
							<? if ($json['sub_splash'] == 'true')
{
    echo 'checked="checked"';
} ?> />
							
							<label>False</label>
							<input type="radio" name="sub_splash" value="false" 
							<? if ($json['sub_splash'] == 'false')
{
    echo 'checked="checked"';
} ?>/>
							</p></p>
						      </div></div>
                        <div class="form-group">
                        <button class="btn btn-primary btn-icon-split" name="submit_3c" type="submit">
                        <span class="icon text-white-50"><i class="fas fa-check"></i></span><span class="text">Submit</span>
                        </button>
                          </div>      
                           </form>
                             </body>
                               </div></div>
                               </div></div>
                                 </div>
 <script> 
$(document).ready(function () {
    $("#flash-msg").delay(3000).fadeOut("slow");
});
  </script>
<?php include ('includes/footer.php'); ?>
</html>
