Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

In theory, there is no difference between theory and practice. In practice, there is.


devel / comp.lang.php / Re: Interaction with pictures or files and with self photo, made with php(programming language)

SubjectAuthor
* Re: Interaction with pictures or files and with self photo, made with php(prograRich and beautiful man
`* Re: Interaction with pictures or files and with self photo, made with php(prograBen Bacarisse
 `* Re: Interaction with pictures or files and with self photo, made withRo Bam
  `* Re: Interaction with pictures or files and with self photo, made with php(prograBen Bacarisse
   `* Re: Interaction with pictures or files and with self photo, made with php(prograDimitry Jenkovich
    `* Re: Interaction with pictures or files and with self photo, made withMysterious Stranger
     `- Re: Interaction with pictures or files and with self photo, made withWe

1
Re: Interaction with pictures or files and with self photo, made with php(programming language)

<161d7b48-d33d-45f7-8d83-eb4ec90de845n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=370&group=comp.lang.php#370

  copy link   Newsgroups: comp.lang.php
X-Received: by 2002:a05:6214:a49:: with SMTP id ee9mr3037883qvb.44.1634892292626; Fri, 22 Oct 2021 01:44:52 -0700 (PDT)
X-Received: by 2002:a25:641:: with SMTP id 62mr12494910ybg.162.1634892292376; Fri, 22 Oct 2021 01:44:52 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.php
Date: Fri, 22 Oct 2021 01:44:52 -0700 (PDT)
In-Reply-To: <2dfdaf77-c41f-4274-89b4-4e4e8e59b32dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=193.40.120.146; posting-account=s3OxiwkAAABE2kqiXXKi7ZVC4Hsq_zQz
NNTP-Posting-Host: 193.40.120.146
References: <2dfdaf77-c41f-4274-89b4-4e4e8e59b32dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <161d7b48-d33d-45f7-8d83-eb4ec90de845n@googlegroups.com>
Subject: Re: Interaction with pictures or files and with self photo, made with php(programming language)
From: ya12983@mail.com (Rich and beautiful man)
Injection-Date: Fri, 22 Oct 2021 08:44:52 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 2
 by: Rich and beautiful m - Fri, 22 Oct 2021 08:44 UTC

Update.

https://groups.google.com/g/comp.programming/c/QP_19QEH7ik

Re: Interaction with pictures or files and with self photo, made with php(programming language)

<87k0i55qns.fsf@bsb.me.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=371&group=comp.lang.php#371

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.usenet@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.php
Subject: Re: Interaction with pictures or files and with self photo, made with php(programming language)
Date: Fri, 22 Oct 2021 10:56:23 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <87k0i55qns.fsf@bsb.me.uk>
References: <2dfdaf77-c41f-4274-89b4-4e4e8e59b32dn@googlegroups.com>
<161d7b48-d33d-45f7-8d83-eb4ec90de845n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="a3bb1bc3dae98cca541349f73000b53d";
logging-data="14934"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dtB4eoEgWJjHuQzYTkLGNTij64lSWGzg="
Cancel-Lock: sha1:ZLet0XQng+fqFltQ5pTyfKLiQbQ=
sha1:YYEif3itBVuqr7PdRssZBb12X9M=
X-BSB-Auth: 1.e2e31f528ae3153a664f.20211022105623BST.87k0i55qns.fsf@bsb.me.uk
 by: Ben Bacarisse - Fri, 22 Oct 2021 09:56 UTC

Rich and beautiful man <ya12983@mail.com> writes:

> Update.
>
> https://groups.google.com/g/comp.programming/c/QP_19QEH7ik

Tips to get more helpful replies:

(a) Format the code nicely.

(b) Make a cut-down example that exhibits the same problem. For
example, how must of the CSS and client-side scripting is needed to show
the problem?

(c) Describe intention behind the code and how it fails to live up to
it.

(d) Cross post rather than multi-post if there really are multiple
groups where your question is topical.

--
Ben.

Re: Interaction with pictures or files and with self photo, made with php(programming language)

<c068d4d6-6f74-4ce1-9db6-1921d72adfb9n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=372&group=comp.lang.php#372

  copy link   Newsgroups: comp.lang.php
X-Received: by 2002:a05:6214:27e1:: with SMTP id jt1mr12993966qvb.62.1635150963602;
Mon, 25 Oct 2021 01:36:03 -0700 (PDT)
X-Received: by 2002:a25:ad4a:: with SMTP id l10mr10649813ybe.443.1635150963393;
Mon, 25 Oct 2021 01:36:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.php
Date: Mon, 25 Oct 2021 01:36:03 -0700 (PDT)
In-Reply-To: <87k0i55qns.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=193.40.120.146; posting-account=wXTMUQoAAADJv6bh2a9IGlcpEEjr1O4x
NNTP-Posting-Host: 193.40.120.146
References: <2dfdaf77-c41f-4274-89b4-4e4e8e59b32dn@googlegroups.com>
<161d7b48-d33d-45f7-8d83-eb4ec90de845n@googlegroups.com> <87k0i55qns.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c068d4d6-6f74-4ce1-9db6-1921d72adfb9n@googlegroups.com>
Subject: Re: Interaction with pictures or files and with self photo, made with
php(programming language)
From: rob999999999@yahoo.com (Ro Bam)
Injection-Date: Mon, 25 Oct 2021 08:36:03 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 35
 by: Ro Bam - Mon, 25 Oct 2021 08:36 UTC

Ben Bacarisse kirjutas reede, 22. oktoober 2021 kl 12:56:31 UTC+3:
> Rich and beautiful man <ya1...@mail.com> writes:
>
> > Update.
> >
> > https://groups.google.com/g/comp.programming/c/QP_19QEH7ik
>
> Tips to get more helpful replies:
>
> (a) Format the code nicely.

One problem that I see here is that when I post a long program code, then
they will hide some parts. To put it together again can be very hard.

>
> (b) Make a cut-down example that exhibits the same problem. For
> example, how must of the CSS and client-side scripting is needed to show
> the problem?

It is all server side.

>
> (c) Describe intention behind the code and how it fails to live up to
> it.

It seems to work now already.

>
> (d) Cross post rather than multi-post if there really are multiple
> groups where your question is topical.
>

Yes, I'll keep that in mind.

> --
> Ben.

Re: Interaction with pictures or files and with self photo, made with php(programming language)

<8735op2q2g.fsf@bsb.me.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=374&group=comp.lang.php#374

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.usenet@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.php
Subject: Re: Interaction with pictures or files and with self photo, made with php(programming language)
Date: Mon, 25 Oct 2021 14:26:31 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <8735op2q2g.fsf@bsb.me.uk>
References: <2dfdaf77-c41f-4274-89b4-4e4e8e59b32dn@googlegroups.com>
<161d7b48-d33d-45f7-8d83-eb4ec90de845n@googlegroups.com>
<87k0i55qns.fsf@bsb.me.uk>
<c068d4d6-6f74-4ce1-9db6-1921d72adfb9n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="09b849f8281868abc1c72fad6e5d61bb";
logging-data="9576"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+WJB7st7NcWBgo7NUAz82DHI3VJ5PBcDU="
Cancel-Lock: sha1:pk3uczOpE7pNjinBuKqaSKbs52c=
sha1:hVNperjqdkgFkgLX6HafQENhsBc=
X-BSB-Auth: 1.76b1225bfd2c6f252c4e.20211025142631BST.8735op2q2g.fsf@bsb.me.uk
 by: Ben Bacarisse - Mon, 25 Oct 2021 13:26 UTC

Ro Bam <rob999999999@yahoo.com> writes:

> Ben Bacarisse kirjutas reede, 22. oktoober 2021 kl 12:56:31 UTC+3:
>> Rich and beautiful man <ya1...@mail.com> writes:
>>
>> > Update.
>> >
>> > https://groups.google.com/g/comp.programming/c/QP_19QEH7ik
>>
>> Tips to get more helpful replies:
>>
>> (a) Format the code nicely.
>
> One problem that I see here is that when I post a long program code, then
> they will hide some parts. To put it together again can be very hard.

Hmm... Not sure why that prevents you from using the space bar!
>> (b) Make a cut-down example that exhibits the same problem. For
>> example, how must of the CSS and client-side scripting is needed to
s/much/must/
>> show the problem?
>
> It is all server side.

You posted both sever and client side code with no indication of where
you suspected the problem lay.

--
Ben.

Re: Interaction with pictures or files and with self photo, made with php(programming language)

<e134657c-a21f-4696-bafb-1d054b17e2dcn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=375&group=comp.lang.php#375

  copy link   Newsgroups: comp.lang.php
X-Received: by 2002:a05:6214:2407:: with SMTP id fv7mr26239968qvb.24.1635322262588; Wed, 27 Oct 2021 01:11:02 -0700 (PDT)
X-Received: by 2002:a25:3755:: with SMTP id e82mr7609088yba.96.1635322262375; Wed, 27 Oct 2021 01:11:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.php
Date: Wed, 27 Oct 2021 01:11:02 -0700 (PDT)
In-Reply-To: <8735op2q2g.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=193.40.120.146; posting-account=H1DgzwoAAAAcnnKoBEKPKfkBn0SpwfVw
NNTP-Posting-Host: 193.40.120.146
References: <2dfdaf77-c41f-4274-89b4-4e4e8e59b32dn@googlegroups.com> <161d7b48-d33d-45f7-8d83-eb4ec90de845n@googlegroups.com> <87k0i55qns.fsf@bsb.me.uk> <c068d4d6-6f74-4ce1-9db6-1921d72adfb9n@googlegroups.com> <8735op2q2g.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e134657c-a21f-4696-bafb-1d054b17e2dcn@googlegroups.com>
Subject: Re: Interaction with pictures or files and with self photo, made with php(programming language)
From: he6655442211@email.com (Dimitry Jenkovich)
Injection-Date: Wed, 27 Oct 2021 08:11:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 39
 by: Dimitry Jenkovich - Wed, 27 Oct 2021 08:11 UTC

Ben Bacarisse kirjutas esmaspäev, 25. oktoober 2021 kl 16:26:38 UTC+3:
> Ro Bam <rob999...@yahoo.com> writes:
>
> > Ben Bacarisse kirjutas reede, 22. oktoober 2021 kl 12:56:31 UTC+3:
> >> Rich and beautiful man <ya1...@mail.com> writes:
> >>
> >> > Update.
> >> >
> >> > https://groups.google.com/g/comp.programming/c/QP_19QEH7ik
> >>
> >> Tips to get more helpful replies:
> >>
> >> (a) Format the code nicely.
> >
> > One problem that I see here is that when I post a long program code, then
> > they will hide some parts. To put it together again can be very hard.
> Hmm... Not sure why that prevents you from using the space bar!

I think your not using the google groups. That's why you maybe see the code correctly (from some usenet client).
With google groups, there are serious troubles at the moment ......................

> >> (b) Make a cut-down example that exhibits the same problem. For
> >> example, how must of the CSS and client-side scripting is needed to
> s/much/must/
> >> show the problem?
> >
> > It is all server side.
> You posted both server and client side code with no indication of where
> you suspected the problem lay.

Becuase it is mixed (php). But now everything should work fine.

>
> --
> Ben.

Re: Interaction with pictures or files and with self photo, made with php(programming language)

<2f1dea58-55d5-4ed2-aa7e-328602f883e4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=380&group=comp.lang.php#380

  copy link   Newsgroups: comp.lang.php
X-Received: by 2002:a05:620a:103c:: with SMTP id a28mr4601708qkk.271.1636449263787;
Tue, 09 Nov 2021 01:14:23 -0800 (PST)
X-Received: by 2002:a25:acdd:: with SMTP id x29mr6775858ybd.96.1636449263575;
Tue, 09 Nov 2021 01:14:23 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.php
Date: Tue, 9 Nov 2021 01:14:23 -0800 (PST)
In-Reply-To: <e134657c-a21f-4696-bafb-1d054b17e2dcn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=193.40.120.146; posting-account=H1DgzwoAAAAcnnKoBEKPKfkBn0SpwfVw
NNTP-Posting-Host: 193.40.120.146
References: <2dfdaf77-c41f-4274-89b4-4e4e8e59b32dn@googlegroups.com>
<161d7b48-d33d-45f7-8d83-eb4ec90de845n@googlegroups.com> <87k0i55qns.fsf@bsb.me.uk>
<c068d4d6-6f74-4ce1-9db6-1921d72adfb9n@googlegroups.com> <8735op2q2g.fsf@bsb.me.uk>
<e134657c-a21f-4696-bafb-1d054b17e2dcn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2f1dea58-55d5-4ed2-aa7e-328602f883e4n@googlegroups.com>
Subject: Re: Interaction with pictures or files and with self photo, made with
php(programming language)
From: he6655442211@email.com (Mysterious Stranger)
Injection-Date: Tue, 09 Nov 2021 09:14:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Mysterious Stranger - Tue, 9 Nov 2021 09:14 UTC

Unlimited messaging frequency now in index2.php:

<!DOCTYPE html>
<html>
<head>
<link rel="icon" style="width:15px; height=15px; background-color: #76FEFF; color: #76FEFF;"/>

<style>
input {
color: #76FEFF;
}

body {
background-color: #76FEFF;
}

..file1 {
text-decoration: none;
color: #76FEFF;
}

..main1 {
text-decoration:none;
color: #76FEFF;
background-color: white;
border: 1px solid white;
border-radius: 5px 5px;
padding: 5px;
font-weight:bold;
width:100px;
}

..main2 {
color: white;
margin-top:-15px;
}

..main3 {
text-decoration:none;
color: #76FEFF;
background-color: white;
border: 1px solid white;
border-radius: 5px 5px;
padding: 5px;
font-weight:bold;
width:100px;
}

..main4 {
color: white;
width: 140px;
}

..main5 {
color: white;
margin-top:-15px;
margin-bottom:1px;
} ..main6 {
color: white;
margin-top:15px;
width:600px;
overflow-wrap: break-word;
} ..main7 {
margin-bottom:1px;
}

..text1 {
color: #76FEFF;
width: 538px;
height: 29px;
margin-top:-15px;
overflow-wrap: break-word;
}

textarea {
color: black;
} form {
line-height: 1.4;
}

..a1 {
line-height: 1.4;
width: 561px;
height: 377px;
overflow-y: auto;
overflow-x: hidden;
background-color: white;
overflow-wrap: break-word;
color: #76FEFF;
}

..a1 p {
height:0.001%;
margin-bottom:-15px;
} ..nameslist {
margin-bottom:15px;
} </style>
<script>
function imgError(image) {
image.onerror = "";
image.src = "../noimage.jpg";
image.style="background-color: #848587;";
image.width="40px";
image.height="40px";
return true;
} </script>
</head>
<body onload="a00000()">

<?php

include("func.php");

$size = 0;

$files = glob('uploads/*.*');
usort($files, function($a, $b) {
return filemtime($a) < filemtime($b);
});
$idx=0;

$files = array_reverse($files, true);

if(is_dir("uploads")) {
foreach($files as $file) {
if($idx==count($files)-1) break;
$filesize = filesize($file);
$size+=$filesize;
$idx++;
} $idx=0;
if($size>5000000) {
foreach($files as $file) {
if($idx==count($files)-1) break;
unlink($file);
$idx++;
} }
}

$size = 0;

$files = glob('dpic/*.*');
usort($files, function($a, $b) {
return filemtime($a) < filemtime($b);
});
$idx=0;

$files = array_reverse($files, true);

if(is_dir("dpic")) {
foreach($files as $file) {
if($idx==count($files)-1) break;
$filesize = filesize($file);
$size+=$filesize;
$idx++;
} $idx=0;
if($size>5000000) {
foreach($files as $file) {
if($idx==count($files)-1) break;
unlink($file);
$idx++;
} }
}

include("../data.php");

class Password extends Dobj{
var $content;
}

class Msg extends Dobj{
var $text;
var $messagenumber;
}

class Inimene extends Dobj{
var $name;
var $time;
var $dpic;
var $inr;
}

class Picture extends Dobj{
var $name;
var $time;
}

$myd=new Data();

$myd->loadobjecttables();

$itime2=$myd->gettime();
$itime2=date( 'd.m.Y H:i:s', strtotime( '+3 hour' , strtotime($itime2) ) );

if(!is_dir("uploads")) {
mkdir("uploads", 0777);
}

if(!is_dir("dpic")) {
mkdir("dpic", 0777);
}

$files1 = scandir("uploads");

if(count($files1)>270) {
rrmdir("uploads");
mkdir("uploads", 0777);
}

$msg=new Msg();
$name1 = strip_tags($_POST['text0']);

if($name1!="") {
$name1=substr($name1,0, 646);
}

$addline=true;

$tabls=$myd->dtables;

$time=null;
$tidx=-1;
$nooutput=false;
$oput="";

$pwd1="";

$newmessagenr=1;
$newinumber=1;

if($tabls!=null) {
for($i=0; $i<count($tabls); $i++) {
$oc=$tabls[$i][0]->getNameOfClass();
if($oc=="Msg") {
$biggestnr=0;
for($j=0; $j<count($tabls[$i]); $j++) {
if($tabls[$i][$j]->messagenumber>$biggestnr) $biggestnr=$tabls[$i][$j]->messagenumber;
}
$newmessagenr=$biggestnr+1;
} }
}

if($tabls!=null) {
for($i=0; $i<count($tabls); $i++) {
$oc=$tabls[$i][0]->getNameOfClass();
if($oc=="Inimene") {
$biggestnr=0;
for($j=0; $j<count($tabls[$i]); $j++) {
if($tabls[$i][$j]->inr>$biggestnr) $biggestnr=$tabls[$i][$j]->inr;
}
$newinumber=$biggestnr+1;
} }
}

if($tabls!=null) {
for($i=0; $i<count($tabls); $i++) {
$oc=$tabls[$i][0]->getNameOfClass();
if ($oc=="Password") {
$pwd1=$tabls[$i][0]->content;
} }
}

$pwdactive=0;
if($pwd1!="") {

$pwdactive=1;

if($pwd1!=$_GET['code']) exit(0);

}

$pic_uploaded=false;

$newpic1=null;

if(isset($_POST["submit"])&&$_FILES["fileToUpload"]['error']==0) {

$target_dir = "uploads/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));

if (file_exists($target_file)) {
$uploadOk = 0;
} if ($_FILES["fileToUpload"]["size"] > 5000000) {
$uploadOk = 0;
} if($imageFileType=="php") {
$uploadOk = 0;
} $time1212=time();

if ($uploadOk == 0) {
} else {
if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], str_replace('.', $time1212.'.', $target_file))) {
$pic_uploaded=true;
} else {
} }

$newpic=null;
$tabls0=null;
if($pic_uploaded==true) {
$tabls0=$myd->dtables;
$picstidx=-1;
if($tabls0!=null) {
for($i=0; $i<count($tabls0); $i++) {
$oc0=$tabls0[$i][0]->getNameOfClass();
if ($oc0=="Picture") {
$picstidx=$i;
} }
if($picstidx==-1) {
$picstidx=count($tabls0);
$tabls0[]=array();
} } else {
$tabls0=array();
$tabls0[]=array();
$picstidx=0;
}

$newpic=new Picture();
$newpic->name=basename(str_replace('.', $time1212.'.', $_FILES["fileToUpload"]["name"]));
$newpic->time=$itime2;
$newpic1=$newpic;
$tabls0[$picstidx][]=$newpic;
$myd->dtables=$tabls0;
$myd->saveobjecttable("Picture");
}

}

$url = isset($_SERVER['HTTPS']) ? 'https://' : 'http://';
$url .= $_SERVER['SERVER_NAME'];
$url .= $_SERVER['REQUEST_URI'];
$info = parse_url($url);
$info["path"]=dirname($info["path"]);

$new_url = $info["scheme"]."://".$info["host"];

$new_url = str_replace(' ', '', $new_url);

echo "<a class='main1' href='".$new_url."'>Avalehele</a><p></p>";

function strip($var) {
$allowed = '<font>';
return strip_tags($var, $allowed);
}

function closetags ( $html )
{ preg_match_all ( "#<([a-z]+)( .*)?(?!/)>#iU", $html, $result );
$openedtags = $result[1];

preg_match_all ( "#</([a-z]+)>#iU", $html, $result );
$closedtags = $result[1];
$len_opened = count ( $openedtags );

if( count ( $closedtags ) == $len_opened )
{ return $html;
} $openedtags = array_reverse ( $openedtags );

for( $i = 0; $i < $len_opened; $i++ )
{ if ( !in_array ( $openedtags[$i], $closedtags ) )
{ $html .= "</" . $openedtags[$i] . ">";
} else
{ unset ( $closedtags[array_search ( $openedtags[$i],
$closedtags)] );
} }
return $html;
}

$ind=array();
$itidx=-1;
if($tabls!=null) {
for($i=0; $i<count($tabls); $i++) {
$oc=$tabls[$i][0]->getNameOfClass();
if ($oc=="Inimene") {
$ind=$tabls[$i];
$itidx=$i;
} }
}

if($ind!=null) {
if(count($ind)>2499) {
echo "Topic full(2500).";
exit(0);
} }

$iexists=false;
$currenti=null;
for($i=0; $i<count($ind); $i++) {
if($ind[$i]->name==$name1) {
$iexists=true;
$currenti=$ind[$i];
} }

$havewritten=false;

$myname = strip_tags($_POST['myname']);

if($myname!="") {
$myname=substr($myname,0, 646);
}

if($myname!="") {
$havewritten=true;
}

if(count($ind)>0) {

if($name1!=""&&$havewritten==false&&$iexists==false) {
$curi=new Inimene();
$curi->name=$name1;
$myname=$name1;
$curi->time=$itime2;
$curi->inr=$newinumber;
$ind[]=$curi;
$tabls[$itidx]=$ind;
$myd->dtables=$tabls;
$myd->saveobjecttable("Inimene");
$currenti=$curi;
} else if($name1!=""&&$havewritten==true&&$iexists==false) {
for($i=0; $i<count($ind); $i++) {
if($ind[$i]->name==$myname) {
$currenti=$ind[$i];
}
Click here to read the complete article

Re: Interaction with pictures or files and with self photo, made with php(programming language)

<bfbf4df0-2459-4029-bcd7-c692b112eac5n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=388&group=comp.lang.php#388

  copy link   Newsgroups: comp.lang.php
X-Received: by 2002:a05:6214:27c7:: with SMTP id ge7mr5068254qvb.44.1637744651609;
Wed, 24 Nov 2021 01:04:11 -0800 (PST)
X-Received: by 2002:a25:ac23:: with SMTP id w35mr13662601ybi.341.1637744651201;
Wed, 24 Nov 2021 01:04:11 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.php
Date: Wed, 24 Nov 2021 01:04:10 -0800 (PST)
In-Reply-To: <2f1dea58-55d5-4ed2-aa7e-328602f883e4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=193.40.120.146; posting-account=s3OxiwkAAABE2kqiXXKi7ZVC4Hsq_zQz
NNTP-Posting-Host: 193.40.120.146
References: <2dfdaf77-c41f-4274-89b4-4e4e8e59b32dn@googlegroups.com>
<161d7b48-d33d-45f7-8d83-eb4ec90de845n@googlegroups.com> <87k0i55qns.fsf@bsb.me.uk>
<c068d4d6-6f74-4ce1-9db6-1921d72adfb9n@googlegroups.com> <8735op2q2g.fsf@bsb.me.uk>
<e134657c-a21f-4696-bafb-1d054b17e2dcn@googlegroups.com> <2f1dea58-55d5-4ed2-aa7e-328602f883e4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bfbf4df0-2459-4029-bcd7-c692b112eac5n@googlegroups.com>
Subject: Re: Interaction with pictures or files and with self photo, made with
php(programming language)
From: ya12983@mail.com (We)
Injection-Date: Wed, 24 Nov 2021 09:04:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 803
 by: We - Wed, 24 Nov 2021 09:04 UTC

New index2.php:

<!DOCTYPE html>
<html>
<head>
<link rel="icon" style="width:15px; height=15px; background-color: #76FEFF; color: #76FEFF;"/>

<style>
input {
color: #76FEFF;
}

body {
background-color: #76FEFF;
}

..file1 {
text-decoration: none;
color: #76FEFF;
}

..main1 {
text-decoration:none;
color: #76FEFF;
background-color: white;
border: 1px solid white;
border-radius: 5px 5px;
padding: 5px;
font-weight:bold;
width:100px;
}

..main2 {
color: white;
margin-top:-15px;
}

..main3 {
text-decoration:none;
color: #76FEFF;
background-color: white;
border: 1px solid white;
border-radius: 5px 5px;
padding: 5px;
font-weight:bold;
width:100px;
}

..main4 {
color: white;
width: 140px;
}

..main5 {
color: white;
margin-top:-15px;
margin-bottom:1px;
} ..main6 {
color: white;
margin-top:15px;
width:600px;
overflow-wrap: break-word;
} ..main7 {
margin-bottom:1px;
}

..text1 {
color: #76FEFF;
width: 538px;
height: 29px;
margin-top:-15px;
overflow-wrap: break-word;
}

textarea {
color: black;
} form {
line-height: 1.4;
}

..a1 {
line-height: 1.4;
width: 561px;
height: 357px;
overflow-y: auto;
overflow-x: hidden;
background-color: white;
overflow-wrap: break-word;
color: #76FEFF;
}

..a1 p {
height:0.001%;
margin-bottom:-15px;
} ..nameslist {
margin-bottom:15px;
} </style>
<script>
function imgError(image) {
image.onerror = "";
image.src = "../noimage.jpg";
image.style="background-color: #848587;";
image.width="40px";
image.height="40px";
return true;
} </script>
</head>
<body onload="a00000()">

<?php

include("func.php");

$size = 0;

$files = glob('uploads/*.*');
usort($files, function($a, $b) {
return filemtime($a) < filemtime($b);
});
$idx=0;

$files = array_reverse($files, true);

if(is_dir("uploads")) {
foreach($files as $file) {
if($idx==count($files)-1) break;
$filesize = filesize($file);
$size+=$filesize;
$idx++;
} $idx=0;
if($size>5000000) {
foreach($files as $file) {
if($idx==count($files)-1) break;
unlink($file);
$idx++;
} }
}

$size = 0;

$files = glob('dpic/*.*');
usort($files, function($a, $b) {
return filemtime($a) < filemtime($b);
});
$idx=0;

$files = array_reverse($files, true);

if(is_dir("dpic")) {
foreach($files as $file) {
if($idx==count($files)-1) break;
$filesize = filesize($file);
$size+=$filesize;
$idx++;
} $idx=0;
if($size>5000000) {
foreach($files as $file) {
if($idx==count($files)-1) break;
unlink($file);
$idx++;
} }
}

include("../data.php");

class Password extends Dobj{
var $content;
}

class Msg extends Dobj{
var $text;
var $messagenumber;
}

class Inimene extends Dobj{
var $name;
var $time;
var $dpic;
var $inr;
}

class Picture extends Dobj{
var $name;
var $time;
}

$myd=new Data();

$myd->loadobjecttables();

$itime2=$myd->gettime();
$itime2=date( 'd.m.Y H:i:s', strtotime( '+3 hour' , strtotime($itime2) ) );

if(!is_dir("uploads")) {
mkdir("uploads", 0777);
}

if(!is_dir("dpic")) {
mkdir("dpic", 0777);
}

$files1 = scandir("uploads");

if(count($files1)>270) {
rrmdir("uploads");
mkdir("uploads", 0777);
}

$msg=new Msg();
$name1 = strip_tags($_POST['text0']);

if($name1!="") {
$name1=substr($name1,0, 646);
}

$addline=true;

$tabls=$myd->dtables;

$time=null;
$tidx=-1;
$nooutput=false;
$oput="";

$pwd1="";

if($tabls!=null) {
for($i=0; $i<count($tabls); $i++) {
$oc=$tabls[$i][0]->getNameOfClass();
if ($oc=="Password") {
$pwd1=$tabls[$i][0]->content;
} }
}

$pwdactive=0;
if($pwd1!="") {

$pwdactive=1;

if($pwd1!=$_GET['code']) exit(0);

}

$pic_uploaded=false;

$newpic1=null;

if(isset($_POST["submit"])&&$_FILES["fileToUpload"]['error']==0) {

$target_dir = "uploads/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));

if (file_exists($target_file)) {
$uploadOk = 0;
} if ($_FILES["fileToUpload"]["size"] > 5000000) {
$uploadOk = 0;
} if($imageFileType=="php") {
$uploadOk = 0;
} $time1212=time();

if ($uploadOk == 0) {
} else {
if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], str_replace('.', $time1212.'.', $target_file))) {
$pic_uploaded=true;
} else {
} }

$newpic=null;
$tabls0=null;
if($pic_uploaded==true) {
$tabls0=$myd->dtables;
$picstidx=-1;
if($tabls0!=null) {
for($i=0; $i<count($tabls0); $i++) {
$oc0=$tabls0[$i][0]->getNameOfClass();
if ($oc0=="Picture") {
$picstidx=$i;
} }
if($picstidx==-1) {
$picstidx=count($tabls0);
$tabls0[]=array();
} } else {
$tabls0=array();
$tabls0[]=array();
$picstidx=0;
}

$newpic=new Picture();
$newpic->name=basename(str_replace('.', $time1212.'.', $_FILES["fileToUpload"]["name"]));
$newpic->time=$itime2;
$newpic1=$newpic;
$tabls0[$picstidx][]=$newpic;
$myd->dtables=$tabls0;
$myd->saveobjecttable("Picture");
}

}

$url = isset($_SERVER['HTTPS']) ? 'https://' : 'http://';
$url .= $_SERVER['SERVER_NAME'];
$url .= $_SERVER['REQUEST_URI'];
$info = parse_url($url);
$info["path"]=dirname($info["path"]);

$new_url = $info["scheme"]."://".$info["host"];

$new_url = str_replace(' ', '', $new_url);

echo "<a class='main1' href='".$new_url."'>Avalehele</a><p></p>";

function strip($var) {
$allowed = '<font>';
return strip_tags($var, $allowed);
}

function closetags ( $html )
{ preg_match_all ( "#<([a-z]+)( .*)?(?!/)>#iU", $html, $result );
$openedtags = $result[1];

preg_match_all ( "#</([a-z]+)>#iU", $html, $result );
$closedtags = $result[1];
$len_opened = count ( $openedtags );

if( count ( $closedtags ) == $len_opened )
{ return $html;
} $openedtags = array_reverse ( $openedtags );

for( $i = 0; $i < $len_opened; $i++ )
{ if ( !in_array ( $openedtags[$i], $closedtags ) )
{ $html .= "</" . $openedtags[$i] . ">";
} else
{ unset ( $closedtags[array_search ( $openedtags[$i],
$closedtags)] );
} }
return $html;
}

$ind=array();
$itidx=-1;
if($tabls!=null) {
for($i=0; $i<count($tabls); $i++) {
$oc=$tabls[$i][0]->getNameOfClass();
if ($oc=="Inimene") {
$ind=$tabls[$i];
$itidx=$i;
} }
}

if($ind!=null) {
if(count($ind)>2499) {
echo "Topic full(2500).";
exit(0);
} }

$iexists=false;
$currenti=null;
for($i=0; $i<count($ind); $i++) {
if($ind[$i]->name==$name1) {
$iexists=true;
$currenti=$ind[$i];
} }

$havewritten=false;

$myname = strip_tags($_POST['myname']);

if($myname!="") {
$myname=substr($myname,0, 646);
}

if($myname!="") {
$havewritten=true;
}

if(count($ind)>0) {

if($name1!=""&&$havewritten==false&&$iexists==false) {
$curi=new Inimene();
$curi->name=$name1;
$myname=$name1;
$curi->time=$itime2;
$ind[]=$curi;
$tabls[$itidx]=$ind;
$myd->dtables=$tabls;
$myd->saveobjecttable("Inimene");
$currenti=$curi;
} else if($name1!=""&&$havewritten==true&&$iexists==false) {
for($i=0; $i<count($ind); $i++) {
if($ind[$i]->name==$myname) {
$currenti=$ind[$i];
} }
$currenti->name=$name1;
$myname=$name1;
$currenti->time=$itime2;
$myd->dtables=$tabls;
$myd->saveobjecttable("Inimene");

}
else if($name1!=""&&$currenti->name==$name1&&$iexists==true) {
$currenti->time=$itime2;
$itime=$itime2;
$myd->dtables=$tabls;
$myd->saveobjecttable("Inimene");
}

} else {

if($name1!=""&&$iexists==false) {
$curi=new Inimene();
$curi->name=$name1;
$curi->time=$itime2;
$myname=$name1;
$ind12=array();
$ind12[]=$curi;
$tabls[]=$ind12;
$myd->dtables=$tabls;
$myd->saveobjecttables();
$currenti=$curi;
} else if($name1!=""&&$iexists==true) {
echo "User exists.";
exit(0);
}
Click here to read the complete article

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor