PDA

View Full Version : install script help


N!ck
02-23-2003, 05:04 AM
I need help with the install script for an addon I made, which can be downloaded here:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=49156

I've got the thing coded already, but I'm getting reports that it doesn't work, and I was hoping someone could take a look at admin/install_links.php in the zip file and see what I did wrong.

Thanks.

Bitsys
02-23-2003, 01:08 PM
From install_links.php:
function installtemplate ($name, $value) {
global $DB_site;
$DB_site->query("INSERT INTO template (templateid, templatesetid, title, template) VALUES (NULL, -1, '$name', '".addslashes($code)."')");
}

What is the variable $code doing in there? Should that be $value instead?

N!ck
02-23-2003, 01:44 PM
ah, thanks

that'll probably fix it