chore: remove temp files [skip ci]
This commit is contained in:
@@ -1,51 +0,0 @@
|
||||
<?php
|
||||
$_SERVER['HTTP_HOST'] = 'waas.dev.mokoconsulting.tech';
|
||||
$_SERVER['REQUEST_URI'] = '/administrator/index.php';
|
||||
$_SERVER['REQUEST_METHOD'] = 'GET';
|
||||
$_SERVER['SCRIPT_NAME'] = '/administrator/index.php';
|
||||
define('_JEXEC', 1);
|
||||
define('JPATH_BASE', '/home/mokoconsulting_dev/waas.dev.mokoconsulting.tech/public_html/administrator');
|
||||
require_once JPATH_BASE . '/includes/defines.php';
|
||||
require_once JPATH_BASE . '/includes/framework.php';
|
||||
$db = Joomla\CMS\Factory::getContainer()->get(Joomla\Database\DatabaseInterface::class);
|
||||
|
||||
// Check update site config
|
||||
$db->setQuery("SELECT us.update_site_id, us.name, us.location, us.enabled, us.extra_query, use2.extension_id
|
||||
FROM #__update_sites us
|
||||
LEFT JOIN #__update_sites_extensions use2 ON us.update_site_id = use2.update_site_id
|
||||
WHERE us.location LIKE '%MokoWaaS%' OR us.name LIKE '%MokoWaaS%'");
|
||||
$sites = $db->loadObjectList();
|
||||
echo "=== UPDATE SITES ===\n";
|
||||
foreach ($sites as $s) {
|
||||
echo " id={$s->update_site_id} enabled={$s->enabled} ext_id={$s->extension_id}\n";
|
||||
echo " name={$s->name}\n";
|
||||
echo " url={$s->location}\n";
|
||||
echo " extra_query={$s->extra_query}\n";
|
||||
}
|
||||
|
||||
// Check currently installed version
|
||||
$db->setQuery("SELECT extension_id, element, manifest_cache FROM #__extensions WHERE element = 'pkg_mokowaas'");
|
||||
$ext = $db->loadObject();
|
||||
if ($ext) {
|
||||
$mc = json_decode($ext->manifest_cache);
|
||||
echo "\n=== INSTALLED ===\n";
|
||||
echo " ext_id={$ext->extension_id} element={$ext->element} version=" . ($mc->version ?? '?') . "\n";
|
||||
}
|
||||
|
||||
// Check pending updates
|
||||
$db->setQuery("SELECT update_id, extension_id, name, version, element FROM #__updates WHERE element = 'pkg_mokowaas'");
|
||||
$updates = $db->loadObjectList();
|
||||
echo "\n=== PENDING UPDATES ===\n";
|
||||
if (empty($updates)) echo " NONE\n";
|
||||
foreach ($updates as $u) {
|
||||
echo " id={$u->update_id} ext={$u->extension_id} ver={$u->version} element={$u->element} name={$u->name}\n";
|
||||
}
|
||||
|
||||
// Check Joomla's minimum stability setting for the update site
|
||||
// In Joomla 6, this is stored in update_sites table or global config
|
||||
$db->setQuery("SELECT * FROM #__update_sites WHERE location LIKE '%MokoWaaS%'");
|
||||
$us = $db->loadObject();
|
||||
if ($us) {
|
||||
echo "\n=== UPDATE SITE FULL ===\n";
|
||||
foreach ((array) $us as $k => $v) echo " $k=$v\n";
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
<?php
|
||||
$_SERVER['HTTP_HOST'] = 'waas.dev.mokoconsulting.tech';
|
||||
$_SERVER['REQUEST_URI'] = '/administrator/index.php';
|
||||
$_SERVER['REQUEST_METHOD'] = 'GET';
|
||||
$_SERVER['SCRIPT_NAME'] = '/administrator/index.php';
|
||||
define('_JEXEC', 1);
|
||||
define('JPATH_BASE', '/home/mokoconsulting_dev/waas.dev.mokoconsulting.tech/public_html/administrator');
|
||||
require_once JPATH_BASE . '/includes/defines.php';
|
||||
require_once JPATH_BASE . '/includes/framework.php';
|
||||
$db = Joomla\CMS\Factory::getContainer()->get(Joomla\Database\DatabaseInterface::class);
|
||||
|
||||
// List tours
|
||||
$db->setQuery("SELECT id, title, description, published, ordering, uid FROM #__guidedtours ORDER BY ordering");
|
||||
$tours = $db->loadObjectList();
|
||||
echo "=== TOURS (" . count($tours) . ") ===\n";
|
||||
foreach ($tours as $t) {
|
||||
echo " id={$t->id} pub={$t->published} uid={$t->uid} title={$t->title}\n";
|
||||
}
|
||||
|
||||
// List steps for first tour to understand structure
|
||||
if (!empty($tours)) {
|
||||
$firstId = $tours[0]->id;
|
||||
$db->setQuery("SELECT id, tour_id, title, description, target, type, ordering FROM #__guidedtour_steps WHERE tour_id = $firstId ORDER BY ordering LIMIT 5");
|
||||
$steps = $db->loadObjectList();
|
||||
echo "\n=== SAMPLE STEPS (tour $firstId) ===\n";
|
||||
foreach ($steps as $s) {
|
||||
echo " step={$s->id} type={$s->type} target={$s->target}\n";
|
||||
echo " title={$s->title}\n";
|
||||
echo " desc=" . substr($s->description, 0, 100) . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
// Check table columns
|
||||
$db->setQuery("SHOW COLUMNS FROM #__guidedtours");
|
||||
$cols = $db->loadObjectList();
|
||||
echo "\n=== TOUR COLUMNS ===\n";
|
||||
foreach ($cols as $c) echo " {$c->Field} ({$c->Type})\n";
|
||||
|
||||
$db->setQuery("SHOW COLUMNS FROM #__guidedtour_steps");
|
||||
$cols = $db->loadObjectList();
|
||||
echo "\n=== STEP COLUMNS ===\n";
|
||||
foreach ($cols as $c) echo " {$c->Field} ({$c->Type})\n";
|
||||
|
||||
// Check module status
|
||||
$db->setQuery("SELECT id, title, module, published, position FROM #__modules WHERE module = 'mod_guidedtours'");
|
||||
$mod = $db->loadObject();
|
||||
echo "\n=== MODULE ===\n";
|
||||
echo $mod ? "id={$mod->id} pub={$mod->published} pos={$mod->position}" : "NOT FOUND";
|
||||
echo "\n";
|
||||
|
||||
// Check plugin status
|
||||
$db->setQuery("SELECT extension_id, element, enabled FROM #__extensions WHERE element = 'guidedtours' AND type = 'plugin'");
|
||||
$plg = $db->loadObject();
|
||||
echo "\n=== PLUGIN ===\n";
|
||||
echo $plg ? "id={$plg->extension_id} enabled={$plg->enabled}" : "NOT FOUND";
|
||||
echo "\n";
|
||||
Reference in New Issue
Block a user