-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inputs size #214
Closed
Closed
Inputs size #214
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
8937389
Nettoyage git
e6caa0f
Nettoyage
971414e
Réinitialisation config.php
c971056
Merge branch 'master' of https://github.com/pluxml/PluXml
728c944
Chgt config.php
62934c5
Désindexation config.php
dbdd9bf
Modif PlxShow::staticUrl
b384331
Merge remote-tracking branch 'upstream/master'
b4ca86d
Merge branch 'master' of https://github.com/pluxml/PluXml
c503f33
Merge branch 'master' of https://github.com/pluxml/PluXml
496574c
Merge branch 'master' of https://github.com/pluxml/PluXml
81880cc
Merge branch 'master' of https://github.com/pluxml/PluXml
f0ee538
Merge branch 'master' of https://github.com/pluxml/PluXml
863e4f6
Merge branch 'master' of https://github.com/pluxml/PluXml
9b890ee
Merge branch 'master' of https://github.com/pluxml/PluXml
888335c
Merge branch 'master' of https://github.com/pluxml/PluXml
09a987f
Merge branch 'master' of https://github.com/pluxml/PluXml
75a2f05
Merge branch 'master' of https://github.com/pluxml/PluXml
e32a075
ajout fichiers
4badd65
dragdrop
c1c8655
drag & drop medias
bb45968
drap & drop: gestion erreur upload fichiers
3a22be4
err propriété css hover
7e03d9e
ajout hook plxMotorRedir301 + fct redir301
1b89929
maj changelog
8e25c2b
Merge branch 'master' of https://github.com/pluxml/PluXml
c3ce0b9
Merge branch 'dragdrop' of https://github.com/pluxml/PluXml
0c34105
Merge branch 'master' of https://github.com/pluxml/PluXml
de0f025
Merge branch 'master' of https://github.com/pluxml/PluXml
d57c162
dim. et tailles miniatures meme cols que images
47ce70f
Merge branch 'master' of https://github.com/pluxml/PluXml
0d46920
Merge branch 'master' of https://github.com/pluxml/PluXml
e52625a
Synchro core/admin/medias.php avec site PluXml
98573d0
Merge branch 'thumb_size'
6ecfebe
Merge branch 'master' of https://github.com/pluxml/PluXml
d495d39
Merge branch 'master' of https://github.com/pluxml/PluXml
fbc2e57
Merge branch 'master' of https://github.com/pluxml/PluXml
4448985
Merge branch 'master' of https://github.com/pluxml/PluXml
22afa21
Ajout colonne email dans tableau utilisateurs
f873e59
synchro core/admin/themes/admin.css avec upstream
24c0339
Merge branch 'master' of https://github.com/pluxml/PluXml
056e160
Merge branch 'master' into email_users
a307b23
bugfix dans core/lib/class.plx.admin.php (email)
1017665
Merge branch 'master' of https://github.com/pluxml/PluXml
aed79b7
Gestion de <input size="xxx" dans les tableaux
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<?php | ||
define('PLX_CONFIG_PATH', 'data/configuration/'); | ||
?> | ||
<?php | ||
define('PLX_CONFIG_PATH', 'echecs/configuration/'); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
|
||
/** | ||
* Traitement de l'upload des fichiers sur le serveur � partir du gestionnaire de m�dias | ||
* | ||
* @package PLX | ||
* @author Stephane F | ||
**/ | ||
|
||
include(dirname(__FILE__).'/prepend.php'); | ||
|
||
# validation du token de s�curit� | ||
if($_SERVER['REQUEST_METHOD']=='POST' AND isset($_SESSION['formtoken'])) { | ||
if(empty($_POST['token']) OR plxUtils::getValue($_SESSION['formtoken'][$_POST['token']]) < time() - 3600) { # 3600 seconds | ||
unset($_SESSION['formtoken']); | ||
die('Security error : invalid or expired token'); | ||
} | ||
} else { | ||
die; | ||
} | ||
|
||
# S�curisation du chemin du dossier | ||
if(isset($_POST['folder']) AND $_POST['folder']!='.' AND !plxUtils::checkSource($_POST['folder'])) { | ||
$_POST['folder']='.'; | ||
} | ||
|
||
# Recherche du type de medias � afficher via la session | ||
if(empty($_SESSION['medias'])) { | ||
$_SESSION['medias'] = $plxAdmin->aConf['medias']; | ||
$_SESSION['folder'] = ''; | ||
} | ||
elseif(!empty($_POST['folder'])) { | ||
$_SESSION['currentfolder']= (isset($_SESSION['folder'])?$_SESSION['folder']:''); | ||
$_SESSION['folder'] = ($_POST['folder']=='.'?'':$_POST['folder']); | ||
} | ||
# Nouvel objet de type plxMedias | ||
if($plxAdmin->aConf['userfolders'] AND $_SESSION['profil']==PROFIL_WRITER) | ||
$plxMedias = new plxMedias(PLX_ROOT.$_SESSION['medias'].$_SESSION['user'].'/',$_SESSION['folder']); | ||
else | ||
$plxMedias = new plxMedias(PLX_ROOT.$_SESSION['medias'],$_SESSION['folder']); | ||
|
||
if(!empty($_POST['token'])) { | ||
$res = $plxMedias->uploadFile($_FILES, $_POST); | ||
/* | ||
switch($res) { | ||
case L_PLXMEDIAS_WRONG_FILESIZE: | ||
plxMsg::Error(L_PLXMEDIAS_WRONG_FILESIZE); | ||
break; | ||
case L_PLXMEDIAS_WRONG_FILEFORMAT: | ||
plxMsg::Error(L_PLXMEDIAS_WRONG_FILEFORMAT); | ||
break; | ||
case L_PLXMEDIAS_UPLOAD_ERR: | ||
plxMsg::Error(L_PLXMEDIAS_UPLOAD_ERR); | ||
break; | ||
case L_PLXMEDIAS_UPLOAD_SUCCESSFUL: | ||
plxMsg::Info(L_PLXMEDIAS_UPLOAD_SUCCESSFUL); | ||
break; | ||
} | ||
*/ | ||
$plxMedias->outputJSON($res, ($res == L_PLXMEDIAS_UPLOAD_SUCCESSFUL ? '' : 'error')); | ||
|
||
} | ||
|
||
exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coquille: $params[] = 'readonly';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, merci.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Après coup, je pense qu'on peut simplifier la déclatation de la fonction plx::printInput(...) en évitant l'emploi de chaines vides comme ceci :