<commit_before>            <?php
                $back = $_SESSION['back'];
                if (empty($back)) {
                    $back = "location.href='/list/web/'";
                } else {
                    $back = "location.href='".$back."'";
                }
            ?>
            <table class="submenu">
                <tr>
                    <td style="padding: 20px 10px;" ><a class="name"><b><?php print __('Generating CSR');?></b></a>
                        <?php
                            if (!empty($_SESSION['error_msg'])) {
                                echo "<span class=\"vst-error\"> → ".$_SESSION['error_msg']."</span>";
                            } else {
                                if (!empty($_SESSION['ok_msg'])) {
                                    echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
                                }
                            }
                        ?> 
                    </td>
                </tr>
            </table>
        </div>

        <form id="vstobjects" name="v_generate_csr" method="post">
            <table class='data'>
                <tr class="data-add">
                    <td class="data-dotted">
                        <table class="data-col1">
                            <tr>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td class="data-dotted">
                        <table>
                            <tr>
                                <td></td>
                            </tr>
                        </table>
                        <table class="data-col2">
                            <tr>
                                <td class="vst-text" style="padding: 24px 0 0 0;">
                                    <?php print __('Domain');?>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="text" size="20" class="vst-input" name="v_domain" value="<?php print $v_domain ?>">
                                </td>
                            </tr>
                            <tr>
                                <td class="vst-text" style="padding: 12px 0 0 0;">
                                    <?php print __('Email');?>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="text" size="20" class="vst-input" name="v_email" value="<?php print $v_email ?>">
                                </td>
                            </tr>
                            <tr>
                                <td class="vst-text" style="padding: 12px 0 0 0;">
                                    <?php print __('Country'); ?>
                                    <span class="optional">(<?php print __('2 letter code');?>)</span>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="text" size="20" class="vst-input" name="v_country" value="<?php print $v_country?>">
                                </td>
                            </tr>
                            <tr>
                                <td class="vst-text" style="padding: 12px 0 0 0;">
                                    <?php print __('State / Province');?>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="text" size="20" class="vst-input" name="v_state" value="<?php print $v_state ?>">
                                </td>
                            </tr>
                            <tr>
                                <td class="vst-text" style="padding: 12px 0 0 0;">
                                    <?php print __('City / Locality');?>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="text" size="20" class="vst-input" name="v_locality" value="<?php print $v_locality ?>">
                                </td>
                            </tr>
                            <tr>
                                <td class="vst-text" style="padding: 12px 0 0 0;">
                                    <?php print __('Organization');?>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <input type="text" size="20" class="vst-input" name="v_org" value="<?php print $v_org ?>">
                                </td>
                            </tr>
                        </table>
                        <table class="data-col2">
                            <tr>
                                <td style="padding: 24px 0 0 0;" width="116px">
                                    <input type="submit" class="button" name="generate" value="<?php print __('Ok');?>">
                                </td>
                                <td style="padding: 24px 0 0 0;">
                                    <input type="button" class="button" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </form><commit_msg>finish generate_ssl<commit_after><?php
$formName = "v_generate_csr";
$title = __('Generating CSR');
$submitName = "generate";
$submitButtonName =  __('Ok');
?>

<?
require_once "func.php";
$back = getBack("/list/TODO/");
?>


<form id="vstobjects" name="<?=$formName ?>" method="post">
	<div class="content-wrapper">
		<?php include "content_header.php" ?>

		<!-- Main content -->
		<section class="content">

			<? if (isEditPage($formName)) : ?>
				<div class="row">

					<div class="col-md-3 col-sm-6 col-xs-12">
						<div class="info-box">
							<span class="info-box-icon bg-aqua"><i class="fa fa-info"></i></span>
							<div class="info-box-content">
								<span class="info-box-text">Status</span>
								<span class="info-box-number"><?php echo __($v_status) ?></span>
							</div><!-- /.info-box-content -->
						</div><!-- /.info-box -->

					</div>

					<div class="col-md-3 col-sm-6 col-xs-12">
						<div class="info-box">
							<span class="info-box-icon bg-aqua"><i class="fa fa-clock-o"></i></span>
							<div class="info-box-content">
								<span class="info-box-text">Created Date</span>
								<span class="info-box-number"><?php echo strftime("%d %b %Y", strtotime($v_date))?> <br/><?php echo $v_time?></span>
							</div><!-- /.info-box-content -->
						</div><!-- /.info-box -->

					</div>
				</div>
			<? endif; ?>

			<div class="row">

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

					<? if (!empty($_SESSION['error_msg'])) : ?>
						<div class="callout callout-danger">
							<h4>Error</h4>
							<p><?=$_SESSION['error_msg'] ?></p>
						</div>
					<? elseif (!empty($_SESSION['ok_msg'])) : ?>
						<div class="callout callout-info">
							<h4>Info</h4>
							<p><?=$_SESSION['ok_msg'] ?></p>
						</div>
					<? endif; ?>

					<div class="box box-primary">
						<div class="box-header">
							<h3 class="box-title"><?=$title ?></h3>
						</div>

						<div class="box-body">
							<div class="form-group">
								<label><?php print __('Domain');?></label>
								<input type="text"  class="vst-input form-control" name="v_domain" value="<?php print $v_domain ?>">
							</div>

							<div class="form-group">
								<label> <?php print __('Email');?></label>
								<input type="text"  class="vst-input form-control" name="v_email" value="<?php print $v_email ?>">
							</div>

							<div class="form-group">
								<label>
									<?php print __('Country'); ?>
									<span class="optional">(<?php print __('2 letter code');?>)</span>
								</label>
								<input type="text"  class="vst-input form-control" name="v_country" value="<?php print $v_country?>">
							</div>

							<div class="form-group">
								<label> <?php print __('State / Province');?></label>
								<input type="text"  class="vst-input form-control" name="v_state" value="<?php print $v_state ?>">
							</div>

							<div class="form-group">
								<label> <?php print __('City / Locality');?></label>
								<input type="text"  class="vst-input form-control" name="v_locality" value="<?php print $v_locality ?>">
							</div>

							<div class="form-group">
								<label>     <?php print __('Organization');?></label>
								<input type="text"  class="vst-input form-control" name="v_org" value="<?php print $v_org ?>">
							</div>

						</div>

						<div class="box-footer">
							<input type="submit" name="<?=$submitName ?>" value="<?php print $submitButtonName ?>" class="btn btn-primary">
							<input type="button" class="btn" value="<?php print __('Back');?>" onclick="<?php echo $back ?>">

						</div>
					</div>
				</div>
			</div>
		</section>
	</div>
</form>
{'fraction_non_alphanumeric': 0.16838305552606433, 'fraction_numerical': 0.00838730226138656, 'mean_word_length': 1.066242597060759, 'pattern_counts': {'":': 0, '<': 261, '<?xml version=': 0, '>': 261, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6944669', 'n_tokens_mistral': 3054, 'n_tokens_neox': 2516, 'n_words': 517}