Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

31337

Members
  • Joined

  • Last visited

Everything posted by 31337

  1. <script type="text/javascript"> $(document).on("change", "#category", function() { if($("#category option:selected").val() == "cat_carpet") { $("#add_carpet").show(); $("#add_wood, #add_vinyl").hide(); } if($("#category option:selected").val() == "#cat_wood") { $("#add_wood").show(); $("#add_carpet, #add_vinyl").hide(); } if($("#category option:selected").val() == "#cat_vinyl") { $("#add_vinyl").show(); $("#add_wood, #add_carpet").hide(); } }); </script> <select id="category" name="category"> <option id="cat_carpet">Carpet</option> <option id="cat_vinyl">Vinyl</option> <option id="cat_wood">Wood</option> </select>
  2. <?php include_once('config.php'); include_once('lib/phlat.class.php'); ?> <?php if(isAdmin()) { $reported = new phlat('reported', array('post_id', 'reply_id', 'reason', 'board')); //echo '<div style="padding: 5px;" />'; if(isset($_GET['logout'])) { $_SESSION['user'] = ''; $_SESSION['pass'] = ''; header('refresh:2;[b][color=#ff0000]url=?main[/color][/b]'); echo 'You are now logged out.'; } else if(isset($_GET['delete'])) { $reported->deleteAt('id', $_GET['id']); } elseif(isset($_GET['reported'])) { $rep = $reported->get(); echo '<ul>'; if(empty($rep[0]['id'])) echo '<li>No reports</li>'; else { foreach($rep as $entry) { $type = empty($entry['reply_id']) ? 'post' : 'reply'; $id = empty($entry['reply_id']) ? $entry['post_id'] : $entry['reply_id']; echo '<li id="'.$entry['id'].'"><a href="#" name="'.$entry['id'].'" class="delLink">Delete</a> - '.$type.' nº <a href="'.config::$url.$entry['board'].'index.php?reply='.$entry['post_id'].'#'.$id.'">'.$id.'</a>: '.$entry['reason'].'</li>'; } } echo '</ul><br /><div align="right">[<a href="?admin&readall">Mark all as read</a>] [<a href="?admin">Admin menu</a>] </div>'; } elseif(isset($_GET['readall'])) { $reported->clear(); echo 'All reports marked as readed. [<a href="?admin&reported">Go back</a>]<div align="right"> [<a href="?admin">Admin menu</a>] </div>'; } else echo 'Welcome '.$_SESSION['user'].'!<br />You are now logged in.<br />You will be able to delete all posts and replies and view users IP.<br />HaChan is using <strong>'.round((getFolderSize()/1024)/1024).'</strong> Megabytes of disk space.<br /><div align="right">[<a href="?admin&reported">View Reported Posts</a>] [<a href="?admin&logout">Logout</a>] </div>'; echo '</div>'; } else { if($_POST['Submit']) { $_SESSION['user'] = $_POST['user']; $_SESSION['pass'] = $_POST['pass']; header('refresh:1;url=?admin'); echo 'Verifying data...'; } else { echo '<form action="" method="post"> <table border="0"> <tr> <td>Username</td> <td><input name="user" type="text" id="user" /></td> </tr> <tr> <td>Password</td> <td><input name="pass" type="password" id="pass" /></td> </tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="Log in" /></td> </tr> </table></form>'; } } ?> <script type="text/javascript" language="Javascript"> $(document).ready(function(){ $('.delLink').click(function(e){ e.preventDefault(); $('#' + $(this).attr('name')).css({ backgroundColor:'red', color:'white' }); $('#' + $(this).attr("name")).fadeOut('slow'); $.get("admin.php", {'delete':'' , 'id':$(this).attr('name')}); }); }); </script> <div id="forumListContainer"> <h1>Admin Panel </h1> </div>
  3. <?php include_once('config.php'); include_once('lib/phlat.class.php'); ?> <script type="text/javascript" language="Javascript"> $(document).ready(function(){ $('.delLink').click(function(e){ e.preventDefault(); $('#' + $(this).attr('name')).css({ backgroundColor:'red', color:'white' }); $('#' + $(this).attr("name")).fadeOut('slow'); $.get("admin.php", {'delete':'' , 'id':$(this).attr('name')}); }); }); </script> <div id="forumListContainer"> <h1>Admin Panel </h1> <?php if(isAdmin()) { $reported = new phlat('reported', array('post_id', 'reply_id', 'reason', 'board')); echo '<div style="padding: 5px;" />'; if(isset($_GET['logout'])) { $_SESSION['user'] = ''; $_SESSION['pass'] = ''; echo 'You are now logged out.'; header('refresh:2;[b][color=#ff0000]url=?main[/color][/b]'); } else if(isset($_GET['delete'])) { $reported->deleteAt('id', $_GET['id']); } elseif(isset($_GET['reported'])) { $rep = $reported->get(); echo '<ul>'; if(empty($rep[0]['id'])) echo '<li>No reports</li>'; else { foreach($rep as $entry) { $type = empty($entry['reply_id']) ? 'post' : 'reply'; $id = empty($entry['reply_id']) ? $entry['post_id'] : $entry['reply_id']; echo '<li id="'.$entry['id'].'"><a href="#" name="'.$entry['id'].'" class="delLink">Delete</a> - '.$type.' nº <a href="'.config::$url.$entry['board'].'index.php?reply='.$entry['post_id'].'#'.$id.'">'.$id.'</a>: '.$entry['reason'].'</li>'; } } echo '</ul><br /><div align="right">[<a href="?admin&readall">Mark all as read</a>] [<a href="?admin">Admin menu</a>] </div>'; } elseif(isset($_GET['readall'])) { $reported->clear(); echo 'All reports marked as readed. [<a href="?admin&reported">Go back</a>]<div align="right"> [<a href="?admin">Admin menu</a>] </div>'; } else echo 'Welcome '.$_SESSION['user'].'!<br />You are now logged in.<br />You will be able to delete all posts and replies and view users IP.<br />HaChan is using <strong>'.round((getFolderSize()/1024)/1024).'</strong> Megabytes of disk space.<br /><div align="right">[<a href="?admin&reported">View Reported Posts</a>] [<a href="?admin&logout">Logout</a>] </div>'; echo '</div>'; } else { if($_POST['Submit']) { $_SESSION['user'] = $_POST['user']; $_SESSION['pass'] = $_POST['pass']; //echo 'Verifying data...'; header('refresh:1;url=?admin'); } else { echo '<form action="" method="post"> <table border="0"> <tr> <td>Username</td> <td><input name="user" type="text" id="user" /></td> </tr> <tr> <td>Password</td> <td><input name="pass" type="password" id="pass" /></td> </tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="Log in" /></td> </tr> </table></form>'; } } ?> </div>
  4. <?php include_once('config.php'); include_once('lib/phlat.class.php'); ?> <script type="text/javascript" language="Javascript"> $(document).ready(function(){ $('.delLink').click(function(e){ e.preventDefault(); $('#' + $(this).attr('name')).css({ backgroundColor:'red', color:'white' }); $('#' + $(this).attr("name")).fadeOut('slow'); $.get("admin.php", {'delete':'' , 'id':$(this).attr('name')}); }); }); </script> <div id="forumListContainer"> <h1>Admin Panel </h1> <?php if(isAdmin()) { $reported = new phlat('reported', array('post_id', 'reply_id', 'reason', 'board')); echo '<div style="padding: 5px;" />'; if(isset($_GET['logout'])) { $_SESSION['user'] = ''; $_SESSION['pass'] = ''; echo 'You are now logged out.'; header('refresh:2;[b][color=#ff0000]url=?main[/color][/b]'); } else if(isset($_GET['delete'])) { $reported->deleteAt('id', $_GET['id']); } elseif(isset($_GET['reported'])) { $rep = $reported->get(); echo '<ul>'; if(empty($rep[0]['id'])) echo '<li>No reports</li>'; else { foreach($rep as $entry) { $type = empty($entry['reply_id']) ? 'post' : 'reply'; $id = empty($entry['reply_id']) ? $entry['post_id'] : $entry['reply_id']; echo '<li id="'.$entry['id'].'"><a href="#" name="'.$entry['id'].'" class="delLink">Delete</a> - '.$type.' nº <a href="'.config::$url.$entry['board'].'index.php?reply='.$entry['post_id'].'#'.$id.'">'.$id.'</a>: '.$entry['reason'].'</li>'; } } echo '</ul><br /><div align="right">[<a href="?admin&readall">Mark all as read</a>] [<a href="?admin">Admin menu</a>] </div>'; } elseif(isset($_GET['readall'])) { $reported->clear(); echo 'All reports marked as readed. [<a href="?admin&reported">Go back</a>]<div align="right"> [<a href="?admin">Admin menu</a>] </div>'; } else echo 'Welcome '.$_SESSION['user'].'!<br />You are now logged in.<br />You will be able to delete all posts and replies and view users IP.<br />HaChan is using <strong>'.round((getFolderSize()/1024)/1024).'</strong> Megabytes of disk space.<br /><div align="right">[<a href="?admin&reported">View Reported Posts</a>] [<a href="?admin&logout">Logout</a>] </div>'; echo '</div>'; } else { if($_POST['Submit']) { $_SESSION['user'] = $_POST['user']; $_SESSION['pass'] = $_POST['pass']; echo 'Verifying data...'; header('refresh:1;url=?admin'); } else { echo '<form action="" method="post"> <table border="0"> <tr> <td>Username</td> <td><input name="user" type="text" id="user" /></td> </tr> <tr> <td>Password</td> <td><input name="pass" type="password" id="pass" /></td> </tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="Log in" /></td> </tr> </table></form>'; } } ?> </div>
  5. <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>PW</title> <link rel="stylesheet" type="text/css" href="style/style.css"> <style> * { margin: 0; padding: 0; } html { padding: 10px; background: #FFF; } body { background-image: url("../img/bg.png"); } /* ---------- Header Section ---------- */ #headerContainer { height: 57px; background: #FFF; } #header { width: 940px; height: 57px; padding: 0px 20px; margin: 0 auto; } #header #logo:hover { opacity:0.8; } a img { border: none; } /* ---------- Navigation Section ---------- */ #nav { width: 940px; height: 30px; padding: 0px 20px; margin: 0 auto; position: relative; } #navHome { width: 116px; height: 42px; position: absolute; top: -4px; left: 450px; } #navShop { width: 116px; height: 42px; position: absolute; top: -4px; left: 620px; } #navContact { width: 182px; height: 42px; position: absolute; top: -4px; left: 780px; } #navHome:hover { opacity:0.8; } #navShop:hover { opacity:0.8; } #navContact:hover { opacity:0.8; } #title { height: 101px; margin: 69px 0px 0px 0px; border-bottom: solid 50px #FFF; } /* ---------- Control Section ---------- */ #controlContainer { width: 940px; height: 300px; padding: 0px 20px; margin: 0 auto; } #content{ overflow: hidden; -moz-box-shadow: 0 0 2px 2px #ccc; -webkit-box-shadow: 0 0 2px 2px #ccc; box-shadow: 0 0 2px 2px #ccc; width:600px; margin:0px auto; } .contentBoxWrapper{ position: relative; left: 0; width: 3000px; } .contentBox{ width: 580px; float: left; padding: 10px; background: #fff; } #nav a.active { font-weight:bold; } </style> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script> function goto(id, t) { //animate to the div id. $(".contentBoxWrapper").animate({"left": -($(id).position().left)}, 600); // remove "active" class from all links inside #nav $('#nav a').removeClass('active'); // add active class to the current link $(t).addClass('active'); } </script> </head> <body> <!-- Header Section --> <div id="headerContainer"> <div id="header"><a href="#" id="logo"><img src="img/logo.png" /></a></div> </div> <!-- Navigation Section --> <div id="nav"> <div id="navHome"><a class="active" href="#" onclick="goto('#home', this); return false"><img src="img/navHome.png" />home</a></div> <div id="navShop"><a href="#" onclick="goto('#shop', this); return false"><img src="img/navShop.png" />shop</a></div> <div id="navContact"><a href="#" onclick="goto('#contact', this); return false">contact<img src="img/navContact.png" /></a></div> </div> <!-- Content Section --> <div id="content"> <div class="contentBoxWrapper"> <div id="home" class="contentBox"> <h1>Home</h1> <p>This will be the home page</p> </div> <div id="shop" class="contentBox"> <h1>Shop</h1> <p>This will be the shop page</p> </div> <div id="contact" class="contentBox"> <h1>Contact</h1> <p>This will be the contact page</p> </div> </div> </div> </div> <div id="title"></div> <div id="controlContainer"></div> </body> </html>
  6. var http = require('http'); var server = http.createServer(function (request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.end("http://stackoverflow.com/questions/8028957/warning-headers-already-sent-in-php\n"); }); server.listen(8000);
  7. var http = require('http'); var server = http.createServer(function (request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.end("http://stackoverflow.com/questions/10383886/how-to-store-video-in-database-using-mysql\n"); }); server.listen(8000);
  8. <!DOCTYPE html> <head> <meta charset='utf-8'/> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script> <script type="text/javascript" src="http://www.jacklmoore.com/colorbox/colorbox/jquery.colorbox.js"></script> <link rel="stylesheet" href="http://www.jacklmoore.com/colorbox/example1/colorbox.css" /> <script> $(document).on("click", "#clickme", function() { var html = '<img style="width:500px;" src="http://images4.fanpop.com/image/photos/23600000/Cartman-Respect-My-Authoritah-south-park-23629184-1600-1136.jpg">'; $.colorbox({html:html,innerWidth:500}); return false; }); </script> </head> <body> <a href="#" id="clickme"> <img src="http://images4.fanpop.com/image/photos/23600000/Cartman-Respect-My-Authoritah-south-park-23629184-120-85.jpg"> click me </a> </body> </html>
  9. Thanks for your responses fellas. There's been something else bothering me though. We all know that job search market is almost entirely usurped by recruitment agencies: http://www.kernelmag.com/features/report/2401/tech-recruiters-part-i-desperate-times/ http://www.kernelmag.com/features/report/2403/tech-recruiters-part-ii-fear-and-loathing/ http://www.kernelmag.com/features/report/2404/the-10-sleaziest-tech-recruiter-scams/ I was wondering what should I put in my CV, specifically should I put in the name of current company I'm working in or not? If I do, bunch of vultures (recruiters) will immediately pick up on it and start calling my company offering candidates (I know they will) and that's gonna screw up my whole plan of not telling my employer that I'm looking for another job. Now I could just not put my current company's name into my CV, but I have to mention some projects that I've worked with and that's pretty much the same thing, because all of them have my company's name in the footer. I have all those questions, because this is gonna be my first job change and as a programmer I'm trying to predict all possible angles of crap that I'm about to drag myself into.
  10. I always thought you need a reference to get into a new job, otherwise it kind of defeats the purpose of reference, wouldn't you agree? I want to leave this job because it sucks and I'm not worried about them finding a replacement, I'm worried that they will find out I'm looking for another job and make it harder for me to find it (go to interviews in particular) because of reasons in my first post.
  11. Well, because they will find out that I'm looking for another job sooner or later, especially when I'm gonna start asking for half-day offs on short notice so that I could go to interviews. Or if somebody calls for a reference. They will be pissed in that case if I don't warn them. The point is that if I find another job without them knowing and give them my notice they'd be totally screwed, because it wouldn't be enough time for them to find my replacement, let alone there would be no overlapping period so that I could pass my work to the new guy.
  12. JSON stands for Javascript Object Notation and it is a data structure, a successor to XML, you don't need to install it anywhere. The only thing that is related to installing is possibly some library that has some JSON functionality like parsing or encoding, but most of current development stacks already support JSON natively.
  13. I don’t know if this is the best place to discuss this, but since I work in the industry I figured I’d ask for opinions of fellow colleagues regarding certain cases. I work at UK based web design company as a web developer and I’m thinking of looking for another job, but… Should I tell my boss that I’m looking for another job straight away or sneak around for a while? Upside: no confusion, everybody knows what’s going on. Downsides: 1. The boss will not like it, because company works with a specific set of technologies/products and there is virtually no developer out there who would know them all from the day one hence considerable amount of time will be required for a new guy to get used to the work and become efficient (company will have to invest in his training). I know that because I experienced that first hand myself. 2. I usually have a bit of trouble getting off work especially on short notice. This is something I will need, because looking for a job means going to interviews which usually take longer than a lunch break. Company might try to make it for me even harder to get off work to interviews, because they might be pissed off with me leaving. 3. What if the company finds my replacement sooner than I find another job? Can they fire me before I quit? You can’t make the new guy wait indefinitely either, so does that make sense? The worst possible thing I can see in such a situation is that I only have one reference and that is from the company that I work in now. If a potential company calls, how can I prevent my boss of possibly giving me a bad reference? Without a reference I don’t stand a chance for a decent job, do I? On a side note – what is the current web based jobs market situation? Is it worth it for a LAMP developer to look for a job, or should I wait?

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.