<?php // Include all the necessary function files include_once 'include/inc.php'; // Use this function to include the required js and css, takes one option passed along as an addition to the path here if required it will be added to the begining of the default path which is /include/javascript and include/css. Don't include the trailing slash as that is defined explicitly in the function echo get_javascript_files(); echo get_css_files(); // Read the config file and generate a list of thumbnails to choose from echo create_image_select($img_settings); echo '<h1>Your Image</h1>'; // Get an image by either it's template id if (isset($_GET['t'])) { $id = $_GET['t']; echo '<img id="card" src="/image.php?t=' . $id . '" alt="' . $id . '" class="card-full">'; } elseif (isset($_GET['id'])) { // or by it's image id for finished memes. $id = $_GET['id']; $message = get_message($id, $mysqli); echo '<img id="card" src="/image.php?id=' . $id . '" alt="' . $message . '" class="card-full">'; }
echo $this->config->item('company') . ' | ' . lang('common_powered_by') . ' CODINGATE'; ?> </title> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <base href="<?php echo base_url(); ?> " /> <link rel="icon" href="<?php echo base_url(); ?> favicon.ico" type="image/x-icon"/> <?php foreach (get_css_files() as $css_file) { ?> <link rel="stylesheet" rev="stylesheet" href="<?php echo base_url() . $css_file['path'] . '?' . APPLICATION_VERSION; ?> " media="<?php echo $css_file['media']; ?> " /> <?php } ?> <script type="text/javascript"> var SITE_URL= "<?php echo site_url();