HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-31-18-78 6.17.0-1017-aws #17~24.04.1-Ubuntu SMP Tue May 26 21:09:53 UTC 2026 aarch64
User: ubuntu (1000)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /var/www/selfanalyse/emu-aptitude-test/start_test.php
<?php

  include '../wp-config.php';  

 //if(is_user_logged_in()) {

    global $current_user;
    $user_id = $current_user->ID;
    $getUserDetails = $wpdb->get_row("SELECT ud.current_education_level FROM $PSY_USERS_DETAILS as ud WHERE ud.user_id='$user_id'");

    $class_id = $getUserDetails->current_education_level;
?>
<h2>
    Start Any EMU Aptitude Test by enter subscription id
</h2>

<form action="/emu-aptitude-test/" method="POST">
    <input type="text" name="sID" value="">
    <input type="hidden" name="class_id" value="<?php echo $class_id ?>">
    <button type="submit" class="btn btn-primary">Start Test</button>
</form>

<?php 

 //}