Jump to content
The Uniform Server Community

override

Beta Tester
  • Posts

    36
  • Joined

  • Last visited

About override

  • Birthday 09/22/1975

Previous Fields

  • SourceForge ID
    graphicschat1
  • Wiki ID
    Acid-Burn
  • IRC Nickname
    Acid-Burn
  • Main OS
    Windows Vista

Contact Methods

  • MSN
    x_override
  • Website URL
    http://virtualabyss.sytes.net/
  • ICQ
    0
  • Yahoo
    x_system_override

Profile Information

  • Location
    USA

override's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. override

    PHP login

    can some one tell me what i am doing wrong with this code config.php <?php $username = array('Admin', 'User'); $password = array('adminpass', 'userpass'); ?> index.php <?php require ("config.php"); session_start(); if ((!$username) || (!$password)) { echo '<form name=login method=post action=""> user:<input type=text name=user><br> pass:<input type=text name=pass><br> <input type=submit value=go> </form>'; } else { if($user==$username && $pass==$password) { session_register("username"); session_register("password"); echo "Congratulations &username, you have logged in!<br> <a href=\"?logout=1\" >Logout</a>"; } else echo "Incorrect Password please <a href=?index.php?>try again</a>"; } if($logout==1) { session_unregister("username"); session_unregister("password"); } ?>
  2. This post cannot be displayed because it is in a password protected forum. Enter Password
  3. This post cannot be displayed because it is in a password protected forum. Enter Password
  4. This post cannot be displayed because it is in a password protected forum. Enter Password
  5. never mind i got it fixed & a little extra help from Ric ty & ty Alay cat @ the irc side i thank that is the way it is done if not sorry spelling aint what it use to be & if you like the Uniform Server User in my sing go on & tack them & use them i do not mind
  6. thank you soooooooooooooooooooooooooooooooo much this is a life saver
  7. is there any way to have 2 Uniform server v 3.5 on the same pc & both runing @ the same time 1 on port 80 & the other one on port 8000 if so tell me i have tryed ever thing
  8. New Problem i got the wild ideal of installing mod security2 on apache 2.2.10 did the same as be for lol no the my sql ain't run in the pros i will include my config file ServerRoot "/usr/local/Apache2.2" PidFile logs/httpd.pid Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 Listen 80 LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so #LoadModule auth_digest_module modules/mod_auth_digest.so #LoadModule authn_alias_module modules/mod_authn_alias.so #LoadModule authn_anon_module modules/mod_authn_anon.so #LoadModule authn_dbd_module modules/mod_authn_dbd.so #LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so" LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so #LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so #LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cache_module modules/mod_cache.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule charset_lite_module modules/mod_charset_lite.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so #LoadModule dav_lock_module modules/mod_dav_lock.so #LoadModule dbd_module modules/mod_dbd.so #LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so #LoadModule disk_cache_module modules/mod_disk_cache.so #LoadModule dumpio_module modules/mod_dumpio.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule ext_filter_module modules/mod_ext_filter.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule filter_module modules/mod_filter.so #LoadModule headers_module modules/mod_headers.so #LoadModule ident_module modules/mod_ident.so #LoadModule imagemap_module modules/mod_imagemap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so #LoadModule ldap_module modules/mod_ldap.so #LoadModule logio_module modules/mod_logio.so LoadModule log_config_module modules/mod_log_config.so #LoadModule log_forensic_module modules/mod_log_forensic.so #LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule mime_module modules/mod_mime.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule negotiation_module modules/mod_negotiation.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so #LoadModule ssl_module modules/mod_ssl.so LoadModule status_module modules/mod_status.so #LoadModule substitute_module modules/mod_substitute.so LoadModule unique_id_module modules/mod_unique_id.so #LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule version_module modules/mod_version.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule php5_module "/usr/local/PHP5/php5apache2_2.dll" LoadModule security2_module modules/mod_security2/mod_security2.so <IfModule !mpm_netware_module> <IfModule !mpm_winnt_module> User daemon Group daemon </IfModule> </IfModule> <IfModule mpm_winnt.c> ThreadsPerChild 250 MaxRequestsPerChild 0 </IfModule> # 'Main' server configuration ServerAdmin webmaster@localhost ServerName localhost UseCanonicalName Off ExtendedStatus On ServerSignature On ServerTokens Full HostnameLookups On DocumentRoot "/www" <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory> <Directory "/www/"> Options Indexes Includes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> <Directory "/home/admin/www/"> Options Indexes Includes AllowOverride All Order allow,deny Allow from all </Directory> <IfModule dir_module> DirectoryIndex index.html index.shtml index.html.var index.htm index.php3 index.php index.pl index.cgi </IfModule> AccessFileName .htaccess <FilesMatch "^\.ht"> Order allow,deny Deny from all Satisfy All </FilesMatch> ErrorLog "logs/error.log" LogLevel warn <IfModule log_config_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common <IfModule logio_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> CustomLog "logs/access.log" combined </IfModule> <IfModule alias_module> # Example: Redirect permanent /foo http://www.example.com/bar # Example: Alias /webpath /full/filesystem/path Redirect permanent /a http://localhost/apanel/ Redirect permanent /a-cgi http://localhost/apanel/cgi-bin/ Alias /apanel "/home/admin/www/" ScriptAlias /cgi-bin/ "/cgi-bin/" </IfModule> <IfModule cgid_module> #Scriptsock @rel_runtimedir@/cgisock </IfModule> <Directory "/cgi-bin/"> AllowOverride All Options ExecCGI </Directory> <Directory "/home/admin/www/cgi-bin/"> AllowOverride All Options ExecCGI </Directory> TypesConfig conf/mime.types DefaultType text/plain <IfModule mime_module> TypesConfig conf/mime.types #AddType application/x-gzip .tgz #AddEncoding x-compress .Z #AddEncoding x-gzip .gz .tgz AddType application/x-compress .Z AddType application/x-gzip .gz .tgz #AddHandler cgi-script .cgi #AddHandler type-map var AddHandler server-parsed .shtml .shtm .sht AddType text/html .shtml AddOutputFilter INCLUDES .shtml </IfModule> <IfModule mod_mime_magic> MIMEMagicFile conf/magic </IfModule> # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://www.example.com/subscription_info.html #EnableMMAP off #EnableSendfile off <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location> <Location /server-info> SetHandler server-info Order deny,allow Deny from all Allow from 127.0.0.1 </Location> <IfModule php5_module.c> PHPIniDir "/usr/local/php/" AddType application/x-httpd-php .phtml .php AddType application/x-httpd-php-source .phps </IfModule> <IfModule mod_security2.c> SecRuleEngine On SecDefaultAction log,auditlog,deny,status:403,phase:2,t:lowercase,t:replaceNulls,t:compressWhitespace SecServerSignature "The Uniform Server 3.5" SecAuditEngine RelevantOnly SecAuditLogType Serial SecAuditLog logs/mod_security2.log SecRule ARGS "c:/" t:normalisePathWin SecRule ARGS "\.\./" "t:normalisePathWin,id:99999,severity:4,msg:'Drive Access'" SecRule ARGS "d:/" t:normalisePathWin SecRule ARGS:highlight "(\x27|%27|\x2527|%2527)" </IfModule> <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule>
  9. ok well i am trying to upgrade to apache 2.2.10 & got the php mod for it php5apache2_2.dll now i cant even start the thing i copied what was in the config file i even edit the start ane stop bat files to get the httpd.exe it is really makeing me mad lol so what do i do to fix it ? Server_Start.bat : Name: Start Server File : Created By: The Uniform Server Development Team : Edited Last By: Olajide Olaolorun (empirex) : Comment: After start, go to apanel directly. : To Developers: Implemented %www%, and %apanel% :) @echo off rem use: start mysql console - to start mysql at server start and display console rem use: start mysql - to start mysql at server start rem use: start nomysql console - to display console udrive\home\admin\program\pskill.exe httpd.exe if errorlevel 2 goto :PAUSE if not errorlevel 1 goto :STARTED set Disk=%1 if "%Disk%"=="" set Disk=w rem create the disk subst %Disk%: "udrive" if errorlevel 1 goto :HINT set apachepath=\usr\local\Apache2.2\ set apacheit=%Disk%:%apachepath%bin\httpd.exe -f %apachepath%conf\httpd.conf -d %apachepath%. set programit=%Disk%:\home\admin\program\ set closeit=%programit%close.bat %Disk% %Disk%: cd \usr\local\php start \usr\local\mysql\bin\mysqld-opt.exe --defaults-file=/usr/local/mysql/bin/my-small.cnf CLS echo The server is working on the disk %Disk%:\ [http/127.0.0.1/apanel/] set www=\www\ set apanel=\home\admin\www\ start %apanel%\redirect.html if "%3"=="console" goto :CONSOLE start %programit%uniserv.exe "%apacheit%" "%closeit%" goto :END :CONSOLE %apacheit% %closeit% goto :END :HINT CLS echo The disk %Disk% is busy. Use start.bat [disk letter] goto :PAUSE :STARTED CLS echo ERROR!!! echo One of the instances of Apache server is started. Use stop.bat :PAUSE echo . pause :END Stop.bat : Name: Stop Server File : Created By: The Uniform Server Development Team : Edited Last By: Olajide Olaolorun (empirex) : Comment: Tara's new syetm of shutting down the server : To Developers: Implemented a new system of server shutdown @echo off udrive\home\admin\program\pskill.exe httpd.exe c if errorlevel 2 goto :PAUSE :PAUSE echo . pause :END httpd.conf ServerRoot "/usr/local/Apache2.2" PHPIniDir "/usr/local/php/" Listen 80 # Dynamic Shared Object (DSO) Support LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so #LoadModule auth_digest_module modules/mod_auth_digest.so #LoadModule authn_alias_module modules/mod_authn_alias.so #LoadModule authn_anon_module modules/mod_authn_anon.so #LoadModule authn_dbd_module modules/mod_authn_dbd.so #LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so #LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so #LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cache_module modules/mod_cache.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule charset_lite_module modules/mod_charset_lite.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so #LoadModule dav_lock_module modules/mod_dav_lock.so #LoadModule dbd_module modules/mod_dbd.so #LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so #LoadModule disk_cache_module modules/mod_disk_cache.so #LoadModule dumpio_module modules/mod_dumpio.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule ext_filter_module modules/mod_ext_filter.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule filter_module modules/mod_filter.so #LoadModule headers_module modules/mod_headers.so #LoadModule ident_module modules/mod_ident.so #LoadModule imagemap_module modules/mod_imagemap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so #LoadModule ldap_module modules/mod_ldap.so #LoadModule logio_module modules/mod_logio.so LoadModule log_config_module modules/mod_log_config.so #LoadModule log_forensic_module modules/mod_log_forensic.so #LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule negotiation_module modules/mod_negotiation.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so #LoadModule ssl_module modules/mod_ssl.so #LoadModule status_module modules/mod_status.so #LoadModule substitute_module modules/mod_substitute.so #LoadModule unique_id_module modules/mod_unique_id.so #LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule version_module modules/mod_version.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule php5_module "/usr/local/php/php5apache2_2.dll" <IfModule !mpm_netware_module> <IfModule !mpm_winnt_module> User daemon Group daemon </IfModule> </IfModule> # 'Main' server configuration ServerAdmin Administrator@localhost #ServerName localhost:80 DocumentRoot "/www" <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory> <Directory "/www"> Options Indexes Includes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> <Directory "/home/admin/www/"> Options Indexes Includes AllowOverride All Order allow,deny Allow from all </Directory> <IfModule dir_module> DirectoryIndex index.html index.shtml index.html.var index.htm index.phtml index.php index.php3 index.php4 index.php5 index.pl index.cgi </IfModule> <FilesMatch "^\.ht"> Order allow,deny Deny from all Satisfy All </FilesMatch> ErrorLog "logs/error.log" LogLevel warn <IfModule log_config_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common <IfModule logio_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> CustomLog "logs/access.log" common </IfModule> <IfModule alias_module> # Redirect permanent /foo http://blog-spot.sytes.net/bar # Alias /webpath /full/filesystem/path Redirect permanent /a http://localhost/apanel/ Redirect permanent /a-cgi http://localhost/apanel/cgi-bin/ Alias /apanel "/home/admin/www/" ScriptAlias /cgi-bin/ "/cgi-bin/" </IfModule> <IfModule cgid_module> #Scriptsock logs/cgisock </IfModule> <Directory "/cgi-bin/"> AllowOverride All Options ExecCGI Order allow,deny Allow from all </Directory> <Directory "/home/admin/www/cgi-bin/"> AllowOverride All Options ExecCGI Order allow,deny Allow from all </Directory> DefaultType text/plain <IfModule mime_module> TypesConfig conf/mime.types #AddType application/x-gzip .tgz #AddEncoding x-compress .Z #AddEncoding x-gzip .gz .tgz AddType application/x-compress .Z AddType application/x-gzip .gz .tgz #AddHandler cgi-script .cgi #AddHandler type-map var AddType application/x-httpd-php .phtml .php .php3 .php4 .php5 AddType Application/x-httpd-php-source .phps AddType text/html .shtml AddOutputFilter INCLUDES .shtml </IfModule> #MIMEMagicFile conf/magic # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://blog-spot.sytes.net/subscription_info.html # #EnableMMAP off #EnableSendfile off # Supplemental configuration # # The configuration files in the conf/extra/ directory can be # included to add extra features or to modify the default configuration of # the server, or you may simply copy their contents here and change as # necessary. # Server-pool management (MPM specific) #Include conf/extra/httpd-mpm.conf # Multi-language error messages #Include conf/extra/httpd-multilang-errordoc.conf # Fancy directory listings #Include conf/extra/httpd-autoindex.conf # Language settings #Include conf/extra/httpd-languages.conf # User home directories #Include conf/extra/httpd-userdir.conf # Real-time info on requests and configuration #Include conf/extra/httpd-info.conf # Virtual hosts #Include conf/extra/httpd-vhosts.conf # Local access to the Apache HTTP Server Manual #Include conf/extra/httpd-manual.conf # Distributed authoring and versioning (WebDAV) #Include conf/extra/httpd-dav.conf # Various default settings #Include conf/extra/httpd-default.conf # Secure (SSL/TLS) connections #Include conf/extra/httpd-ssl.conf # # Note: The following must must be present to support # starting without SSL on platforms with no /dev/random equivalent # but a statically compiled-in mod_ssl. # <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule>
  10. how to include a switch statement say i have a code name test1.php <?php switch ($i): case 0: echo "i equals 0"; break; case 1: echo "i equals 1"; break; case 2: echo "i equals 2"; break; default: echo "i is not equal to 0, 1 or 2"; endswitch; ?> and another one name test.php <?php include ("test1.php?i=1"); ?> <?php include ("test1.php?i=0"); ?> would it work if not what would work i have serched all over but no help to be found
  11. TY TY TY that is what i am looking for TY TY TY Ric
  12. yea but is is like i sayed [Prev]12345[Next] & i got 678910 more pages & i dont get 0 in my switch
  13. no i do not use a database suppose to work without one
  14. OO sorry here it is <?php if(!$page) { $page=0; } $max=5; $num=$page * $max - $max; $totalpage = ceil($lines = $max)+1; if ($page = 1) { echo "<a href=\"$_SERVER[PHP_SELF]?index=".($page-1)."\">[Prev]</a> \n"; } for($i=1; $i <= $totalpage; $i++) { if ($i == $page) { echo "<b>[$i] </b>\n"; } else { echo "<a href=\"$_SERVER[PHP_SELF]?index=".$i."\">[$i]</a> \n"; } } if ($page < $totalpage-1) { echo "<a href=\"$_SERVER[PHP_SELF]?index=".($page+1)."\">[Next]</a>\n"; } ?>
×
×
  • Create New...