| Server IP : 103.161.17.216 / Your IP : 216.73.216.1 Web Server : nginx/1.18.0 System : Linux tipsysaigoncharming 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/app.houseland.info/application/views/admin/modules/ |
Upload File : |
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<?php init_head(); ?>
<div id="wrapper">
<div class="content">
<div class="tw-mb-8">
<?php echo form_open_multipart(admin_url('modules/upload'), ['id' => 'module_install_form', 'class' => 'sm:flex sm:items-center']); ?>
<h3 class="tw-mb-2 tw-text-lg tw-font-medium tw-leading-6 tw-text-neutral-900">Upload Module</h3>
<div class="tw-mt-2 tw-max-w-xl tw-text-sm tw-text-neutral-600">
<p>If you have a module in a .zip format, you may install it by uploading it here.</p>
</div>
<form class="">
<div class="w-full tw-inline-flex sm:max-w-xs">
<input type="file" class="form-control" name="module">
<button type="submit" class="btn btn-primary tw-ml-2">Install</button>
</div>
<?php echo form_close(); ?>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel_s">
<div class="panel-body">
<div class="table-responsive">
<table class="table dt-table" data-order-type="asc" data-order-col="0">
<thead>
<tr>
<th>
<?php echo _l('module'); ?>
</th>
<th>
<?php echo _l('module_description'); ?>
</th>
</tr>
</thead>
<tbody>
<?php foreach ($modules as $module) {
$system_name = $module['system_name'];
$database_upgrade_is_required = $this->app_modules->is_database_upgrade_required($system_name); ?>
<tr class="<?php if ($module['activated'] === 1 && !$database_upgrade_is_required) {
echo 'info';
} ?><?php if ($database_upgrade_is_required) {
echo ' warning';
} ?>">
<td data-order="<?php echo e($system_name); ?>">
<p>
<b>
<?php echo $module['headers']['module_name']; ?>
</b>
</p>
<?php
$action_links = [];
$versionRequirementMet = $this->app_modules->is_minimum_version_requirement_met($system_name);
$action_links = hooks()->apply_filters("module_{$system_name}_action_links", $action_links);
if ($module['activated'] === 0 && $versionRequirementMet) {
array_unshift($action_links, '<a href="' . admin_url('modules/activate/' . $system_name) . '">' . _l('module_activate') . '</a>');
}
if ($module['activated'] === 1) {
array_unshift($action_links, '<a href="' . admin_url('modules/deactivate/' . $system_name) . '">' . _l('module_deactivate') . '</a>');
}
if ($database_upgrade_is_required) {
$action_links[] = '<a href="' . admin_url('modules/upgrade_database/' . $system_name) . '" class="text-success bol">' . _l('module_upgrade_database') . '</a>';
}
if ($module['activated'] === 0 && !in_array($system_name, uninstallable_modules())) {
$action_links[] = '<a href="' . admin_url('modules/uninstall/' . $system_name) . '" class="_delete text-danger">' . _l('module_uninstall') . '</a>';
}
echo implode(' | ', $action_links);
if (!$versionRequirementMet) {
echo '<div class="alert alert-warning mtop5">';
echo 'This module requires at least v' . e($module['headers']['requires_at_least']) . ' of the CRM.';
if ($module['activated'] === 0) {
echo ' Hence, cannot be activated';
}
echo '</div>';
}
if ($newVersionData = $this->app_modules->new_version_available($system_name)) {
echo '<div class="alert alert-success mtop5">';
echo 'There is a new version of ' . e($module['headers']['module_name']) . ' available. ';
$version_actions = [];
if (isset($newVersionData['changelog']) && !empty($newVersionData['changelog'])) {
$version_actions[] = '<a href="' . $newVersionData['changelog'] . '" target="_blank">Release Notes (' . $newVersionData['version'] . ')</a>';
}
if ($this->app_modules->is_update_handler_available($system_name)) {
$version_actions[] = '<a href="' . admin_url('modules/update_version/' . $system_name) . '" id="update-module-' . $system_name . '">Update</a>';
}
echo implode(' | ', $version_actions);
echo '</div>';
} ?>
</td>
<td>
<p>
<?php echo isset($module['headers']['description']) ? $module['headers']['description'] : ''; ?>
</p>
<?php
$module_description_info = [];
hooks()->apply_filters("module_{$system_name}_description_info", $module_description_info);
if (isset($module['headers']['author'])) {
$author = $module['headers']['author'];
if (isset($module['headers']['author_uri'])) {
$author = '<a href="' . $module['headers']['author_uri'] . '">' . $author . '</a>';
}
array_unshift($module_description_info, _l('module_by', $author));
}
array_unshift($module_description_info, _l('module_version', $module['headers']['version']));
echo implode(' | ', $module_description_info); ?>
</td>
</tr>
<?php
} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php init_tail(); ?>
<script>
$(function() {
appValidateForm($('#module_install_form'), {
module: {
required: true,
extension: "zip"
}
});
});
</script>
</body>
</html>