This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-05-05 16:23:38

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

phpBB Hosting: free, simple forum hosting

This has been shut down by the hosting provider.
http://img6.imageshack.us/img6/5775/phpbbhostingcancel.png

Last edited by GeonoTRON2000 (2012-05-07 10:20:59)


http://i.imgur.com/BAEgGDL.png

Offline

 

#2 2012-05-05 16:29:44

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: phpBB Hosting: free, simple forum hosting

Pretty Cool!
Can I see the creation script, I am interested to see how it works.

Offline

 

#3 2012-05-05 16:38:22

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting

logiblocs wrote:

Pretty Cool!
Can I see the creation script, I am interested to see how it works.

Sure!

File: create.php

Code:

<?php
mysql_connect("blah", "blah", "blah");
mysql_select_db("blah");
function copy_directory( $source, $destination ) {
    if ( is_dir( $source ) ) {
        @mkdir( $destination );
        $directory = dir( $source );
        while ( FALSE !== ( $readdirectory = $directory->read() ) ) {
            if ( $readdirectory == '.' || $readdirectory == '..' ) {
                continue;
            }
            $PathDir = $source . '/' . $readdirectory; 
            if ( is_dir( $PathDir ) ) {
                copy_directory( $PathDir, $destination . '/' . $readdirectory );
                continue;
            }
            copy( $PathDir, $destination . '/' . $readdirectory );
        }
 
        $directory->close();
    }else {
        copy( $source, $destination );
    }
}
$dir = stripslashes($_POST["dirname"]);
$dir = trim($dir, " /;?&+=");
$config = <<<HERE
<?php
// phpBB 3.0.x auto-generated configuration file
// Do not change anything in this file!
\$dbms = 'mysql';
\$dbhost = 'blah';
\$dbport = '';
\$dbname = 'blah';
\$dbuser = 'blah';
\$dbpasswd = 'blah';
\$table_prefix = '{$dir}_';
\$acm_type = 'file';
\$load_extensions = '';

@define('PHPBB_INSTALLED', true);
// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true);
?>
HERE;
if (!file_exists($dir)) {
mysql_query("SET SQL_MODE=\"NO_AUTO_VALUE_ON_ZERO\"");
copy_directory("template", $dir);
$handle = fopen($dir."/config.php", "w");
fwrite($handle, $config) or die("Could not modify configuration file.");
ob_clean();
ob_start();
readfile("template.sql");
$data = ob_get_clean();
$data = strtr($data, array("template" => $dir));
$d2 = strtr($data, array("temp" => "template"));
$data = strtr($d2, array("teehee" => "temp"));
$ds = explode(";\n", $data);
foreach($ds as $d) {
  mysql_query($d) or die(mysql_error());
}
$good = <<<HERE
<html>
<head>
<title>Forum created.</title>
</head>
<body>
<h1>Forum created!</h1>
<p>Login <a href="$dir">here</a>.</p>
<p>Login as ADMINUSER with password ADMINPASS.</p>
<p>You can change your username from the admin control panel, and your e-mail/password from the user control panel.</p>
</body>
</html>
HERE;
die($good);
}
else {
  die("Forum already exists.");
}
?>

I replaced the sql info with blah.

File: template.sql (this is the glitchy one)
EDIT: code is too long to post.  See the file instead.


http://i.imgur.com/BAEgGDL.png

Offline

 

#4 2012-05-05 20:32:40

PullJosh
Scratcher
Registered: 2011-08-01
Posts: 500+

Re: phpBB Hosting: free, simple forum hosting

The good news: It works. The bad news: I don't know how to start doing stuff.  tongue


http://www.blocks.scratchr.org/API.php?action=text&amp;string=I'm_on_vacation!&amp;xpos=155&amp;ypos=90&amp;font_size=30&amp;bgimage=http://imageshack.us/a/img339/7215/sspeechsigapiforwords.png

Offline

 

#5 2012-05-05 21:01:19

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: phpBB Hosting: free, simple forum hosting

Bug: When you try to register phpbbhosting.tk/ (no sub-url), it gives an error message.

(not that it should let you overwrite the root, but it could echo echo "Please choose a URL" instead of producing the error.)


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#6 2012-05-05 21:40:06

XenoK
Scratcher
Registered: 2011-09-08
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting

very cool!  Do you mind if I use this in the future, I'll give you credit!


Eternity Tasks has launched into Alpha One! http://tasks.eternityincurakai.com/EI%20projects.png

Offline

 

#7 2012-05-06 12:34:29

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting

XenoK wrote:

very cool!  Do you mind if I use this in the future, I'll give you credit!

Sure!


http://i.imgur.com/BAEgGDL.png

Offline

 

#8 2012-05-06 12:36:29

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting

PullJosh wrote:

The good news: It works. The bad news: I don't know how to start doing stuff.  tongue

Login as ADMINUSER with password ADMINPASS.  Use the ACP to change features.


http://i.imgur.com/BAEgGDL.png

Offline

 

#9 2012-05-06 12:38:57

PullJosh
Scratcher
Registered: 2011-08-01
Posts: 500+

Re: phpBB Hosting: free, simple forum hosting

GeonoTRON2000 wrote:

PullJosh wrote:

The good news: It works. The bad news: I don't know how to start doing stuff.  tongue

Login as ADMINUSER with password ADMINPASS.  Use the ACP to change features.

Thanks!


http://www.blocks.scratchr.org/API.php?action=text&amp;string=I'm_on_vacation!&amp;xpos=155&amp;ypos=90&amp;font_size=30&amp;bgimage=http://imageshack.us/a/img339/7215/sspeechsigapiforwords.png

Offline

 

#10 2012-05-06 12:50:04

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting

if you go to http://phpbb-hosting.tk/can%20you%20have%20spaces/ there's an error.


http://i.imgur.com/1QqnHxQ.png

Offline

 

#11 2012-05-06 12:50:47

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#12 2012-05-06 15:31:27

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting

GeonoTRON2000 wrote:

I have created a site, much like PunBB hosting, for phpBB3.
It is called phpBB Hosting.
It is here: [removed. Please register personal sites here first before posting any links to them on the Scratch Forums]
Please report any bugs with the forums,  the creation script is still buggy.

Oh... duh.  Sorry.  I forgot.


http://i.imgur.com/BAEgGDL.png

Offline

 

#13 2012-05-06 21:13:38

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting

jvvg wrote:

I ripped you off (a bit).
See http://scratch.mit.edu/forums/viewtopic.php?id=96379.

It's ok.  I got the idea from PunBB hosting anyway.


http://i.imgur.com/BAEgGDL.png

Offline

 

#14 2012-05-06 22:12:40

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting

Added default logins to main post.


http://i.imgur.com/BAEgGDL.png

Offline

 

#15 2012-05-07 02:09:18

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: phpBB Hosting: free, simple forum hosting

You can remove test - that was just a test. Maybe add a captcha to stop spammers.

Offline

 

#16 2012-05-07 07:50:33

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting

Is it me, or is the site down?


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#17 2012-05-07 10:05:34

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting

Oh, no.  The site's been shut down =/.


http://i.imgur.com/BAEgGDL.png

Offline

 

#18 2012-05-07 11:21:21

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: phpBB Hosting: free, simple forum hosting

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer