vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   MAF: (Moderator Application Form & Application Rating Module) (https://vborg.vbsupport.ru/showthread.php?t=77340)

Gio Takahashi 06-11-2005 01:47 AM

Erm. All the applications just...disappeared. I have no log entries indicating any of my staffers ever deleting them.

osariase 06-15-2005 04:33 AM

I have all the posts concerning this hack I don't seem to know where to find answers so here is my problem.

I have installed it didnt get any error messages

did the cron job i see the options in admincp. But whenever i click on rate application in admincp, I get a white page saying page cannot be found

so what i'm i doing wrong can someone who have installed this please show me the way thanks

sabret00the 06-17-2005 09:03 AM

Quote:

Originally Posted by Gio Takahashi
Erm. All the applications just...disappeared. I have no log entries indicating any of my staffers ever deleting them.

i have no clue how that happened? what does the cron log show exactly?

sabret00the 06-17-2005 09:03 AM

Quote:

Originally Posted by osariase
I have all the posts concerning this hack I don't seem to know where to find answers so here is my problem.

I have installed it didnt get any error messages

did the cron job i see the options in admincp. But whenever i click on rate application in admincp, I get a white page saying page cannot be found

so what i'm i doing wrong can someone who have installed this please show me the way thanks

the last of the file edits are contained in the installer you have to finish that.

sketch42 07-10-2005 08:29 AM

how do i run this cron thing.. i followed the instructions edited all the files... including the maf_cron.php and admin and modcp index.php fixed all the settings in the vboptions but i still cant figure out where to go to run this cron daily.. i dont see any options for it

***Edit*** forget that i figured it out its in schedueled tasks

ok but i have another problem i made one app and i got 2 threads after i ran the cron
also theres no information in the thread as wgere to go to rate the applicants

***Edit2*** lol. forget that too i found it...

but is it possible for the thread to be created as the applicants name in the description or something like that??
and i still have that 2 thread problem

XrayHead 07-10-2005 08:38 AM

Please can someone give me the steps to remove this hack and the tables ETC I need to remove from my SQL database?

Thanks

Xray

sketch42 07-10-2005 11:12 AM

Quote:

Originally Posted by XrayHead
Please can someone give me the steps to remove this hack and the tables ETC I need to remove from my SQL database?

Thanks

Xray

well these are the queries i could find that are in the databse

Code:

<?php

// The query should probably be enclosed by '
// Be sure you include TABLE_PREFIX
// Replace 'build' with either 'new', 'uninstall', or the build number the query is meant to upgrade FROM.

$query['uninstall'][] = 'DROP TABLE `maf_application`;';
$query['uninstall'][] = 'DROP TABLE `maf_ratings`;';
?>

there may be more but its late so i didnt finish looking

also if you want this is the contents of the uninstaller
PHP Code:

<?php

// ###################### Uninstall ###########################
if ($_REQUEST['do'] == 'uninstall') {
        if (
$step == '0') {
                
// Put the hacks in an array and print some text.
                
$hacks explode("|||"$_REQUEST['hacks']);
                echo 
"These are the hacks you have selected to uninstall: <ul>";
                foreach (
$hacks as $key => $hack) {
                        
// Put the hack name in an array.
                        
$hackd $hack;
                        unset(
$hack);
                        
$hack['name'] = $hackd;
                        
$hack['displayname'] = str_replace("_"" "$hack['name']);
                        
// Check for installed varsions and set some variables.
                        // Some sanity checking as well.
                        
if (isset($installedhack[$hack[displayname]])) {
                                
// There is a record of the hack being installed.
                                
$hack['installed_build'] = $installedhack[$hack[displayname]]['build'];
                                
$hack['installed_version'] = $installedhack[$hack[displayname]]['version'];
                                
$hack['path'] = $path_to_install "hacks/$hack[name]/";
                                
$hack['build'] = $hack['installed_build'];
                        } elseif (!isset(
$override)) {
                                
// We can't find a record of the hack being installed and override is not enabled.
                                
echo "There is no record of $hack[displayname] being installed. It cannot be uninstalled.";
                                unset(
$hacks[$key]);
                                
$ohnoes true;
                        } else {
                                
// The hack hasn't been found to be installed, but we have override on.
                                // Path to the hack directory.
                                
$hack['path'] = $path_to_install "hacks/$hack[name]/";
                                
$hack_dir opendir($hack['path']);
                                
// Find all the builds.
                                
while (($file readdir($hack_dir)) !== false) {
                                        if (
is_numeric($file) && $file != "." && $file != "..") {
                                                
$hack['builds'][$file] = $file;
                                        }
                                }
                                
// Find the latest build.
                                
if (!empty($hack['builds'])) {
                                        
arsort($hack['builds']);
                                        foreach (
$hack['builds'] as $build) {
                                                
$hack['build'] = $build;
                                                break;
                                        }
                                }
                        }
                        
// Sanity checking and require the file.
                        
if (file_exists("./hacks/$hack[name]/$hack[build]/index.php")) {
                                
chdir("./hacks/$hack[name]/$hack[build]");
                                require_once(
"./index.php");
                                
chdir('./../../../');
                        } else {
                                if (!isset(
$ohnoes)) {
                                        echo 
$hack['displayname'] . " build #" $hack['build'] . " contains no index.php containing hack information and cannot be uninstalled.<br /><br />";
                                        unset(
$hacks[$key]);
                                        
$ohnoes true;
                                }
                        }
                        
// If we are still sane, print out the hack name.
                        
if (!isset($ohnoes)) {
                                echo 
"<li>$hack[displayname]</li>";
                        } else {
                                unset(
$ohnoes);
                        }
                }
                
// Print some text and some links and continue.
                
$hacks implode("|||"$hacks);
                echo 
"</ul><p>We're sorry you didn't like these hacks. Running this script will remove all settings and templates created.</p>";
                echo 
"<p><a href=\"hack_install.php?do=uninstall&amp;step=1&hacks=$hacks$fileurl$override\">Click here to uninstall --&gt;</b></a></p>\n";
        }

        if (
$step == '1') {
                
// Put the hacks in an array.
                
$hacks explode("|||"$_REQUEST['hacks']);
                foreach (
$hacks as $key => $hack) {
                        
// Put the hack name in an array.
                        
$hackd $hack;
                        unset(
$hack);
                        
$hack['name'] = $hackd;
                        
$hack['displayname'] = str_replace("_"" "$hack['name']);
                        
// Check for installed versions.
                        
if (isset($installedhack[$hack[displayname]])) {
                                
// There is a record of the hack being installed.
                                
$hack['installed_build'] = $installedhack[$hack[displayname]]['build'];
                                
$hack['installed_version'] = $installedhack[$hack[displayname]]['version'];
                                
$hack['path'] = $path_to_install "hacks/$hack[name]/";
                                
$hack['build'] = $hack['installed_build'];
                        } elseif (!isset(
$override)) {
                                
// There is no record of the hack being installed and override is not enabled.
                                
echo "There is no record of $hack[displayname] being installed. It cannot be uninstalled.";
                                unset(
$hacks[$key]);
                                
$ohnoes true;
                        } else {
                                
// There is no record of the hack being installed, but we have override.
                                // Path to the hack folder.
                                
$hack['path'] = $path_to_install "hacks/$hack[name]/";
                                
$hack_dir opendir($hack['path']);
                                
// Find all the builds.
                                
while (($file readdir($hack_dir)) !== false) {
                                        if (
is_numeric($file) && $file != "." && $file != "..") {
                                                
$hack['builds'][$file] = $file;
                                        }
                                }
                                
// Find the latest build.
                                
if (!empty($hack['builds'])) {
                                        
arsort($hack['builds']);
                                        foreach (
$hack['builds'] as $build) {
                                                
$hack['build'] = $build;
                                                break;
                                        }
                                }
                        }
                        
// Some sanity and require the file.
                        
if (file_exists("./hacks/$hack[name]/$hack[build]/index.php")) {
                                
chdir("./hacks/$hack[name]/$hack[build]");
                                require_once(
"./index.php");
                                
chdir('./../../../');
                        } else {
                                if (!isset(
$ohnoes)) {
                                        echo 
$hack['displayname'] . " build #" $hack['build'] . " contains no index.php containing hack information and cannot be uninstalled.<br /><br />";
                                        unset(
$hacks[$key]);
                                        
$ohnoes true;
                                }
                        }
                        
// If we are still sane, uninstall the hack.
                        
if (!isset($ohnoes)) {
                                
// Kill the settinggroups.s
                                
if (isset($settinggroup)) {
                                        foreach (
$settinggroup as $group => $sg) {
                                                
settinggroup_kill_list($group$sg['phrase']);
                                        }
                                }
                                
// Kill the settings.
                                
if (isset($setting)) {
                                        foreach (
$setting as $varname => $set) {
                                                
setting_kill_list($varname$set['titlephrase']);
                                        }
                                }
                                
kill_settings();
                                
// Kill the phrases.
                                
if (isset($phrase)) {
                                        foreach (
$phrase as $varname => $text) {
                                                
phrase_kill_list($varname);
                                        }
                                        
kill_phrases();
                                }
                                
// Kill the adminhelp.
                                
if (isset($adminhelp)) {
                                        foreach (
$adminhelp as $ah) {
                                                
adminhelp_kill_list($ah['script'], $ah['action'], $ah['optionname'], $ah['title']);
                                        }
                                        
kill_adminhelp();
                                }
                                
// Kill the templates.
                                
if (isset($templates)) {
                                        foreach (
$templates as $name => $content) {
                                                
template_kill_list($name);
                                        }
                                        
kill_templates();
                                }
                                
// Run uninstallation queries.
                                
if (isset($query)) {
                                        foreach (
$query as $build => $querie) {
                                                if (
$build == "uninstall") {
                                                        foreach (
$querie as $i => $querieie) {
                                                                
$DB_site->query($querieie);
                                                        }
                                                }
                                        }
                                        echo 
"<font size=\"1\">$hack[displayname]: Ran removal queries.</font><br />";
                                }
                                
// Remove the hack from the installation log, print some text, and unset a lot of crap.
                                
$DB_site->query("DELETE FROM ".TABLE_PREFIX."his_installed WHERE hack='".addslashes($hack['displayname'])."'");
                                echo 
"<font size=\"1\">$hack[displayname]: Removed from installation log.</font><br /><br /><br />";
                                unset(
$hack);
                                unset(
$templates);
                                unset(
$adminhelp);
                                unset(
$settinggroup);
                                unset(
$setting);
                                unset(
$phrase);
                                unset(
$query);
                        } else {
                                unset(
$ohnoes);
                        }
                }
                
$hacks implode("|||"$hacks);
                
// Print the ending text and some links. We are done.
                
echo "<br /><b>Hacks Uninstalled!</b><br /><br />";
                echo 
"<a href=\"hack_install.php?do=install&step=doedits&noinstall=1&hacks=$hacks$fileurl&override=1\"><b>Click here to view these hacks' modifications - you must do them backwards to finish the install. --&gt;</b></a><br />\n";
                echo 
"<a href=\"$vboptions[bburl]/$admincpdir/index.php\"><b>Click here to log into your Admin CP. --&gt;</b></a><br />\n";
                echo 
"<a href=\"hack_install.php\"><b>Click here to go back to the hack selection page. --&gt;</b></a><br />\n";
        }
}

// Finish up the page with the footer.
$DB_site->free_result($installedhacks);
if (!isset(
$_REQUEST['no_cp_footer']) && ($_REQUEST['do'] != "genreadme" && $_REQUEST['do'] != "nothing" && $_REQUEST['text'] != 1)) {
        
print_cp_footer();
}

$DB_site->free_result($installedhacks);

?>

you should be able to copy and paste that into a new file and call it uninstall.php and run it. although i dont see how it would make a difference since i just copied it and it crashed on you before but hey worth a try

Neal-UK 07-13-2005 10:17 AM

Going through the hack installation and I get this at around the 3rd or 4th step:

Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in /******/www/*****/forum/includes/db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/share/pear') in /***/www/****/forum/includes/db_mysql.php on line 389



*** = I've hidden my server info

Caveman2k2 07-14-2005 12:18 AM

Hack installed smooth as silk! Thanks for sharing your work on this.

/me clicks Install!

Toky0 07-21-2005 05:08 AM

Quote:

Warning: main(./includes/cron/maf-cron.php): failed to open stream: No such file or directory in /admincp/cronadmin.php on line 56

Fatal error: main(): Failed opening required './includes/cron/maf-cron.php' (include_path='.:/usr/local/php4/lib/php') in /www/d/darkmasta/htdocs/forum/admincp/cronadmin.php on line 56
I get these errors when I try to run the cron manually.


All times are GMT. The time now is 04:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02238 seconds
  • Memory Usage 1,925KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete