Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

no phpmyadmin

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB2 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
Geni

Beginner
Beginner


Joined: Aug 17, 2007
Posts: 3

PostPosted: Sun Aug 19, 2007 1:24 pm    Post subject: no phpmyadmin Reply with quote

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!
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: no phpmyadmin  

Back to top
Geni

Beginner
Beginner


Joined: Aug 17, 2007
Posts: 3

PostPosted: Tue Aug 21, 2007 1:22 am    Post subject: Re: no phpmyadmin Reply with quote

nobody cant help me?
Back to top
Offline View user's profile Send private message
twaldher

Beginner
Beginner


Joined: Aug 29, 2007
Posts: 4

PostPosted: Fri Aug 31, 2007 4:30 pm    Post subject: Re: no phpmyadmin Reply with quote

You should be able to load your own copy of phpmyadmin. Wink
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB2 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

6th year online! 2003-2009
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia