Example #1
0
            $base_url = $_POST['base_path'];
            $file = $_POST['file_name'];
            $data = loadTable($_POST['base_path'], $_POST['file_name']);
            break;
        case 'upload_file':
            $file = basename($_FILES["fileToUpload"]["name"]);
            $base_url = $upload_path;
            $ext = end(explode(".", $file));
            if ($ext != 'db') {
                $action = '';
                echo "<h2>Not a valid DB file. Select a *.db file</h2>";
            }
            $target_file = $upload_path . '/' . $file;
            if (isset($_POST["submit"])) {
                if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) {
                    $data = loadTable($upload_path, basename($_FILES["fileToUpload"]["name"]));
                    $action = 'load_db_file';
                } else {
                    $action = '';
                    echo "Sorry, there was an error uploading your file.<br>";
                    print_r($_FILES);
                }
            }
            break;
    }
}
function loadTable($base, $file)
{
    $db_admin = new BDBConnector($base . '/' . $file);
    if ($db_admin == false) {
        return false;
Example #2
0
            $table .= '<td>' . ($data['fs_id'] != 0 ? '<a class="get" href="http://fansubs.ru/base.php?srt=' . $data['fs_id'] . '"></a>' : '') . '</td>';
            $table .= '</tr>';
        }
    }
    return $table;
}
$content = '

<article>
	<div class="post">
		<div class="user">
			<img alt="" src="' . load_site_avatar('small') . '"/>
			<div class="nickname">Seiya Loveless</div>
			<h2 class="page_title">' . $page_title_static . '</h2>
		</div>
		<div class="text">
			<div>
				<table id="relTable">
					<thead><tr><th>No</th><th>Title</th><th>Eps</th><th>Rel</th><th>Comment</th><th>DL</th></tr></thead>
					<tbody>' . loadTable() . '</tbody>
				</table>
			</div>
		</div>
	</div>
	<div class="date_bttn">
		<span>&nbsp;</span>
	</div>
</article>

';
$comments = false;
Example #3
0
						<table id="myTable" class="display table" width="100%" >

						 <thead style = "background-color: green;">  
							<tr>  
							<th class = "active">User Id</th>  
							<th class = "info">Email</th>  
							<th class = "warning">Пароль</th>  
							<th class = "danger">Дата регистрации</th>
							<th class = "danger">Remove</th>
							<th class = "danger">Clear</th>
							</tr>  
							</thead>  
							<tbody>  
								
								<?php 
loadTable();
?>
							
							</tbody>

						</table>
					</div> 
					
					<script>
					$(document).ready(function(){
					$('#myTable').dataTable();
					});
					</script>
					
					
				</div>