Topic Title: no phpmyadmin

Forum Index » phpBB2 / Gallery 2 Integration » no phpmyadmin
Topic URL: http://www.nukedgallery.net/postt3669.html

AuthorMessage
Post Title: no phpmyadmin
Geni
Joined: Aug 17, 2007
Posts: 3

Posted: Sun Aug 19, 2007 1:24 pm
i have a little problem...my webhost dosent have phpmyadmin (yeah...)
so i try to make db_install.php (im not php programer or anything i just edited one installer)

here is my code:
Code: › <?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
define('SITE_HISTORY_TABLE', $table_prefix.'site_history');

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

if ( $userdata['user_level'] != ADMIN )
{
   message_die(GENERAL_ERROR, "You are not authorised");
}
else
{
   $sql=array(
"CREATE TABLE ".$table_prefix."phpbb_gallery2 (
  fullPath VARCHAR( 255 ) NOT NULL,
  embedUri VARCHAR( 255 ) NOT NULL,
  g2Uri VARCHAR( 255 ) NOT NULL,
  activeAdminId INT NOT NULL,
  utf8_translate TINYINT( 1 ) NOT NULL,
  exportData TEXT NULL
)",

   $n=0;
   $message='</span></td><td align="left"><span class="gen"><b>Install results:</b><br/><br/>';
   while($sql[$n])
   {
      $message .= ($mods[$n-1] != $mods[$n]) ? '<p><b><font size=3>'.$mods[$n].'</font></b><br/>' : '';
      if(!$result = $db->sql_query($sql[$n]))
         $message .= '<b><font color=#FF0000>[failed]</font></b><font size="1"> line: '.($n+1).' , '.$sql[$n].'</font><br />';
      else $message .='<b><font color=#0000fF>[done]</font></b><font size="1"> line: '.($n+1).' , '.$sql[$n].'</font><br />';
      $n++;
   }

   message_die(GENERAL_MESSAGE, $message);
}
?>


can someone make this work or make another one?

thanks!

AuthorMessage
Post Title: Re: no phpmyadmin
Geni
Joined: Aug 17, 2007
Posts: 3

Posted: Tue Aug 21, 2007 1:22 am
nobody cant help me?

AuthorMessage
Post Title: Re: no phpmyadmin
twaldher
Joined: Aug 29, 2007
Posts: 4

Posted: Fri Aug 31, 2007 4:30 pm
You should be able to load your own copy of phpmyadmin. Wink

All times are GMT - 5 Hours
Powered by PHPNuke and phpBB2 © 2006 phpBB Group